Class CredentialsAwsGlobalConfiguration

    • Constructor Detail

      • CredentialsAwsGlobalConfiguration

        public CredentialsAwsGlobalConfiguration()
      • CredentialsAwsGlobalConfiguration

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

      • 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

        public com.amazonaws.auth.AWSSessionCredentials sessionCredentials​(@NonNull
                                                                           com.amazonaws.client.builder.AwsClientBuilder<?,​?> builder,
                                                                           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.
      • getSessionDuration

        public int getSessionDuration()
      • doFillRegionItems

        public ListBoxModel doFillRegionItems()
      • doFillCredentialsIdItems

        public ListBoxModel doFillCredentialsIdItems()