public class AmazonWebServicesCredentialsBinding extends org.jenkinsci.plugins.credentialsbinding.MultiBinding<AmazonWebServicesCredentials>
| Modifier and Type | Class and Description |
|---|---|
static class |
AmazonWebServicesCredentialsBinding.DescriptorImpl |
org.jenkinsci.plugins.credentialsbinding.MultiBinding.MultiEnvironment, org.jenkinsci.plugins.credentialsbinding.MultiBinding.NullUnbinder, org.jenkinsci.plugins.credentialsbinding.MultiBinding.UnbinderExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ACCESS_KEY_ID_VARIABLE_NAME |
| Constructor and Description |
|---|
AmazonWebServicesCredentialsBinding(String accessKeyVariable,
String secretKeyVariable,
String credentialsId) |
| Modifier and Type | Method and Description |
|---|---|
org.jenkinsci.plugins.credentialsbinding.MultiBinding.MultiEnvironment |
bind(Run<?,?> build,
FilePath workspace,
Launcher launcher,
TaskListener listener) |
String |
getAccessKeyVariable() |
String |
getSecretKeyVariable() |
void |
setRoleArn(String roleArn) |
void |
setRoleSessionDurationSeconds(int roleSessionDurationSeconds) |
void |
setRoleSessionName(String roleSessionName) |
protected Class<AmazonWebServicesCredentials> |
type() |
Set<String> |
variables() |
public static final String DEFAULT_ACCESS_KEY_ID_VARIABLE_NAME
@DataBoundConstructor
public AmazonWebServicesCredentialsBinding(@Nullable
String accessKeyVariable,
@Nullable
String secretKeyVariable,
String credentialsId)
accessKeyVariable - if null, "AWS_ACCESS_KEY_ID" will be used.secretKeyVariable - if null, will be used.credentialsId - identifier which should be referenced when accessing the credentials from a job/pipeline.@NonNull public String getAccessKeyVariable()
@NonNull public String getSecretKeyVariable()
@DataBoundSetter public void setRoleArn(String roleArn)
@DataBoundSetter public void setRoleSessionName(String roleSessionName)
@DataBoundSetter public void setRoleSessionDurationSeconds(int roleSessionDurationSeconds)
protected Class<AmazonWebServicesCredentials> type()
type in class org.jenkinsci.plugins.credentialsbinding.MultiBinding<AmazonWebServicesCredentials>public org.jenkinsci.plugins.credentialsbinding.MultiBinding.MultiEnvironment bind(@Nonnull Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
bind in class org.jenkinsci.plugins.credentialsbinding.MultiBinding<AmazonWebServicesCredentials>IOExceptionInterruptedExceptionpublic Set<String> variables()
variables in class org.jenkinsci.plugins.credentialsbinding.MultiBinding<AmazonWebServicesCredentials>Copyright © 2016–2022. All rights reserved.