Class CredentialsAwsGlobalConfiguration

All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Loadable, OnMaster

@Symbol("awsCredentials") @Extension public final class CredentialsAwsGlobalConfiguration extends AbstractAwsGlobalConfiguration
Store the AWS configuration to save it on a separate file
  • Constructor Details

    • CredentialsAwsGlobalConfiguration

      public CredentialsAwsGlobalConfiguration()
    • CredentialsAwsGlobalConfiguration

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) protected CredentialsAwsGlobalConfiguration(boolean test)
      Testing only
  • Method Details

    • getRegion

      public String getRegion()
    • setRegion

      @DataBoundSetter public void setRegion(String region)
    • getCredentialsId

      @CheckForNull public String getCredentialsId()
    • setCredentialsId

      @DataBoundSetter public void setCredentialsId(@CheckForNull String credentialsId)
    • getCredentials

      @CheckForNull public com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentials getCredentials()
    • getCredentials

      @CheckForNull public com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentials getCredentials(@NonNull String credentialsId)
    • sessionCredentials

      @Deprecated public com.amazonaws.auth.AWSSessionCredentials sessionCredentials(@NonNull com.amazonaws.client.builder.AwsClientBuilder<?,?> builder) throws IOException
      Deprecated.
      Throws:
      IOException
    • sessionCredentials

      public software.amazon.awssdk.auth.credentials.AwsSessionCredentials sessionCredentials(String region, String credentialsId) throws IOException
      Select the type of AWS credential that has to be created based on the configuration. If no AWS credential is provided, the IAM instance profile or user AWS configuration is used to create the AWS credentials.
      Returns:
      An AWS session credential.
      Throws:
      IOException - in case of error.
    • sessionCredentials

      @Deprecated public com.amazonaws.auth.AWSSessionCredentials sessionCredentials(@NonNull com.amazonaws.client.builder.AwsClientBuilder<?,?> builder, String region, String credentialsId) throws IOException
      Throws:
      IOException
    • getSessionDuration

      public int getSessionDuration()
    • getDisplayName

      @NonNull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<GlobalConfiguration>
    • get

      @NonNull public static CredentialsAwsGlobalConfiguration get()
    • doFillRegionItems

      public ListBoxModel doFillRegionItems()
    • doFillCredentialsIdItems

      public ListBoxModel doFillCredentialsIdItems()
    • doCheckRegion

      public FormValidation doCheckRegion(@QueryParameter String region)