Class CredentialsAwsGlobalConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.aws.global_configuration.AbstractAwsGlobalConfiguration
io.jenkins.plugins.aws.global_configuration.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
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
ModifierConstructorDescriptionprotected
CredentialsAwsGlobalConfiguration
(boolean test) Testing only -
Method Summary
Modifier and TypeMethodDescriptiondoCheckRegion
(String region) get()
com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentials
com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentials
getCredentials
(String credentialsId) int
com.amazonaws.auth.AWSSessionCredentials
sessionCredentials
(com.amazonaws.client.builder.AwsClientBuilder<?, ?> builder) Deprecated.com.amazonaws.auth.AWSSessionCredentials
sessionCredentials
(com.amazonaws.client.builder.AwsClientBuilder<?, ?> builder, String region, String credentialsId) Deprecated.software.amazon.awssdk.auth.credentials.AwsSessionCredentials
sessionCredentials
(String region, String credentialsId) Select the type of AWS credential that has to be created based on the configuration.void
setCredentialsId
(String credentialsId) void
Methods inherited from class io.jenkins.plugins.aws.global_configuration.AbstractAwsGlobalConfiguration
getCategory, processExceptionMessage
Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPage
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
CredentialsAwsGlobalConfiguration
public CredentialsAwsGlobalConfiguration() -
CredentialsAwsGlobalConfiguration
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) protected CredentialsAwsGlobalConfiguration(boolean test) Testing only
-
-
Method Details
-
getRegion
-
setRegion
-
getCredentialsId
-
setCredentialsId
-
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 IOExceptionDeprecated.- 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 IOExceptionDeprecated.- Throws:
IOException
-
getSessionDuration
public int getSessionDuration() -
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<GlobalConfiguration>
-
get
-
doFillRegionItems
-
doFillCredentialsIdItems
-
doCheckRegion
-
sessionCredentials(String, String)