Codota Logo
AwsProvider.isEnabled
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now