Tabnine Logo
AwsProvider.isEnabled
Code IndexAdd Tabnine to your IDE (free)

How to use
isEnabled
method
in
com.netflix.spinnaker.halyard.config.model.v1.providers.aws.AwsProvider

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.providers.aws.AwsProvider.isEnabled (Showing top 4 results out of 315)

origin: com.netflix.spinnaker.halyard/halyard-deploy

protected Optional<Profile> generateAwsProfile(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints, String spinnakerHome) {
 String name = "aws/clouddriver-credentials" + spinnakerHome.replace("/", "_");
 AwsProvider awsProvider = deploymentConfiguration.getProviders().getAws();
 if (awsProvider.isEnabled()
   && !StringUtils.isEmpty(awsProvider.getAccessKeyId())
   && !StringUtils.isEmpty(awsProvider.getSecretAccessKey())) {
  String outputFile = awsCredentialsProfileFactoryBuilder.getOutputFile(spinnakerHome);
  return Optional.of(awsCredentialsProfileFactoryBuilder
    .setArtifact(SpinnakerArtifact.CLOUDDRIVER)
    .setAccessKeyId(awsProvider.getAccessKeyId())
    .setSecretAccessKey(awsProvider.getSecretAccessKey())
    .build()
    .getProfile(name, outputFile, deploymentConfiguration, endpoints));
 } else {
  return Optional.empty();
 }
}
origin: spinnaker/halyard

protected Optional<Profile> generateAwsProfile(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints, String spinnakerHome) {
 String name = "aws/clouddriver-credentials" + spinnakerHome.replace("/", "_");
 AwsProvider awsProvider = deploymentConfiguration.getProviders().getAws();
 if (awsProvider.isEnabled()
   && !StringUtils.isEmpty(awsProvider.getAccessKeyId())
   && !StringUtils.isEmpty(awsProvider.getSecretAccessKey())) {
  String outputFile = awsCredentialsProfileFactoryBuilder.getOutputFile(spinnakerHome);
  return Optional.of(awsCredentialsProfileFactoryBuilder
    .setArtifact(SpinnakerArtifact.CLOUDDRIVER)
    .setAccessKeyId(awsProvider.getAccessKeyId())
    .setSecretAccessKey(awsProvider.getSecretAccessKey())
    .build()
    .getProfile(name, outputFile, deploymentConfiguration, endpoints));
 } else {
  return Optional.empty();
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 @Override
 protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  super.setProfile(profile, deploymentConfiguration, endpoints);
  profile.appendContents(profile.getBaseContents());

  AwsProvider awsProvider = deploymentConfiguration.getProviders().getAws();
  if (awsProvider.isEnabled()) {
   profile.appendContents("default.bake.account: " + awsProvider.getPrimaryAccount());
   profile.appendContents("default.securityGroups: ");
   profile.appendContents("default.vpc.securityGroups: ");
  }

  String pipelineTemplates = Boolean.toString(deploymentConfiguration.getFeatures().getPipelineTemplates() != null ? deploymentConfiguration.getFeatures().getPipelineTemplates() : false);
  profile.appendContents("pipelineTemplates.enabled: " + pipelineTemplates);
  // For backward compatibility
  profile.appendContents("pipelineTemplate.enabled: " + pipelineTemplates);
 }
}
origin: spinnaker/halyard

@Override
protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
 super.setProfile(profile, deploymentConfiguration, endpoints);
 profile.appendContents(profile.getBaseContents());
 AwsProvider awsProvider = deploymentConfiguration.getProviders().getAws();
 if (awsProvider.isEnabled()) {
  profile.appendContents("default.bake.account: " + awsProvider.getPrimaryAccount());
  profile.appendContents("default.securityGroups: ");
  profile.appendContents("default.vpc.securityGroups: ");
 }
 Webhook webhook = deploymentConfiguration.getWebhook();
 List<String> files = backupRequiredFiles(webhook, deploymentConfiguration.getName());
 profile.setRequiredFiles(files);
 profile.appendContents(yamlToString(new WebhookWrapper(webhook)));
 String pipelineTemplates = Boolean.toString(deploymentConfiguration.getFeatures().getPipelineTemplates() != null ? deploymentConfiguration.getFeatures().getPipelineTemplates() : false);
 profile.appendContents("pipelineTemplates.enabled: " + pipelineTemplates);
 // For backward compatibility
 profile.appendContents("pipelineTemplate.enabled: " + pipelineTemplates);
}
com.netflix.spinnaker.halyard.config.model.v1.providers.awsAwsProviderisEnabled

Popular methods of AwsProvider

  • getAccessKeyId
  • getSecretAccessKey
  • getPrimaryAccount
  • setAccessKeyId
  • setSecretAccessKey

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JButton (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now