@Symbol(value="awsCredentials") @Extension public class CredentialsAwsGlobalConfiguration extends AbstractAwsGlobalConfiguration
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfExtensionPoint.LegacyInstancesAreScopedToHudsonclazz| Modifier | Constructor and Description |
|---|---|
|
CredentialsAwsGlobalConfiguration() |
protected |
CredentialsAwsGlobalConfiguration(boolean test)
Testing only
|
| Modifier and Type | Method and Description |
|---|---|
FormValidation |
doCheckRegion(String region) |
ListBoxModel |
doFillCredentialsIdItems() |
ListBoxModel |
doFillRegionItems() |
static CredentialsAwsGlobalConfiguration |
get() |
com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentials |
getCredentials() |
com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentials |
getCredentials(String credentialsId) |
String |
getCredentialsId() |
String |
getDisplayName() |
String |
getRegion() |
int |
getSessionDuration() |
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)
Select the type of AWS credential that has to be created based on the configuration.
|
void |
setCredentialsId(String credentialsId) |
void |
setRegion(String region) |
getCategory, processExceptionMessageall, configure, getDescriptor, getGlobalConfigPageaddHelpFileRedirect, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic CredentialsAwsGlobalConfiguration()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) protected CredentialsAwsGlobalConfiguration(boolean test)
public String getRegion()
@DataBoundSetter public void setRegion(String region)
public String getCredentialsId()
@DataBoundSetter public void setCredentialsId(String credentialsId)
public com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentials getCredentials()
public com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentials getCredentials(String credentialsId)
@Deprecated public com.amazonaws.auth.AWSSessionCredentials sessionCredentials(@Nonnull com.amazonaws.client.builder.AwsClientBuilder<?,?> builder) throws IOException
IOExceptionpublic com.amazonaws.auth.AWSSessionCredentials sessionCredentials(@Nonnull com.amazonaws.client.builder.AwsClientBuilder<?,?> builder, String region, String credentialsId) throws IOException
IOException - in case of error.public int getSessionDuration()
@Nonnull public String getDisplayName()
getDisplayName in class Descriptor<GlobalConfiguration>@Nonnull public static CredentialsAwsGlobalConfiguration get()
public ListBoxModel doFillRegionItems()
public ListBoxModel doFillCredentialsIdItems()
public FormValidation doCheckRegion(@QueryParameter String region)
Copyright © 2016–2020. All rights reserved.