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

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

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

origin: spinnaker/halyard

 @Override
 protected Provider editProvider(AwsProvider provider) {
  provider.setAccessKeyId(isSet(accessKeyId) ? accessKeyId : provider.getAccessKeyId());
  provider.setSecretAccessKey(isSet(secretAccessKey) ? secretAccessKey : provider.getSecretAccessKey());
  return provider;
 }
}
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

bindings.put("aws.default.account", awsProvider.getPrimaryAccount());
if (awsProvider.getPrimaryAccount() != null) {
 AwsAccount awsAccount = (AwsAccount) accountService.getProviderAccount(deploymentConfiguration.getName(), "aws", awsProvider.getPrimaryAccount());
 List<AwsProvider.AwsRegion> regionList = awsAccount.getRegions();
 if (!regionList.isEmpty() && regionList.get(0) != null) {
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);
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

bindings.put("aws.default.account", awsProvider.getPrimaryAccount());
if (awsProvider.getPrimaryAccount() != null) {
 AwsAccount awsAccount = (AwsAccount) accountService.getProviderAccount(deploymentConfiguration.getName(), "aws", awsProvider.getPrimaryAccount());
 AwsProvider.AwsRegion firstRegion = awsAccount.getRegions().get(0);
 if (firstRegion != null) {
origin: com.netflix.spinnaker.halyard/halyard-cli

 @Override
 protected Provider editProvider(AwsProvider provider) {
  provider.setAccessKeyId(isSet(accessKeyId) ? accessKeyId : provider.getAccessKeyId());
  provider.setSecretAccessKey(isSet(secretAccessKey) ? secretAccessKey : provider.getSecretAccessKey());
  return provider;
 }
}
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();
 }
}
com.netflix.spinnaker.halyard.config.model.v1.providers.awsAwsProvider

Most used methods

  • getAccessKeyId
  • getSecretAccessKey
  • getPrimaryAccount
  • isEnabled
  • setAccessKeyId
  • setSecretAccessKey

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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