Class AmazonWebServicesCredentialsBinding
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.credentialsbinding.MultiBinding<C>>
org.jenkinsci.plugins.credentialsbinding.MultiBinding<AmazonWebServicesCredentials>
com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentialsBinding
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.credentialsbinding.MultiBinding<AmazonWebServicesCredentials>>
public class AmazonWebServicesCredentialsBinding
extends org.jenkinsci.plugins.credentialsbinding.MultiBinding<AmazonWebServicesCredentials>
- Author:
- Nicolas De Loof
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.plugins.credentialsbinding.MultiBinding
org.jenkinsci.plugins.credentialsbinding.MultiBinding.MultiEnvironment, org.jenkinsci.plugins.credentialsbinding.MultiBinding.NullUnbinder, org.jenkinsci.plugins.credentialsbinding.MultiBinding.Unbinder
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAmazonWebServicesCredentialsBinding
(String accessKeyVariable, String secretKeyVariable, String credentialsId) -
Method Summary
Modifier and TypeMethodDescriptionorg.jenkinsci.plugins.credentialsbinding.MultiBinding.MultiEnvironment
bind
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) int
void
setRoleArn
(String roleArn) void
setRoleSessionDurationSeconds
(int roleSessionDurationSeconds) void
setRoleSessionName
(String roleSessionName) protected Class<AmazonWebServicesCredentials>
type()
Methods inherited from class org.jenkinsci.plugins.credentialsbinding.MultiBinding
getCredentials, getCredentialsId, getDescriptor, variables
-
Field Details
-
DEFAULT_ACCESS_KEY_ID_VARIABLE_NAME
- See Also:
-
-
Constructor Details
-
AmazonWebServicesCredentialsBinding
@DataBoundConstructor public AmazonWebServicesCredentialsBinding(@Nullable String accessKeyVariable, @Nullable String secretKeyVariable, String credentialsId) - Parameters:
accessKeyVariable
- ifnull
, "AWS_ACCESS_KEY_ID" will be used.secretKeyVariable
- ifnull
, "AWS_SECRET_ACCESS_KEY" will be used.credentialsId
- identifier which should be referenced when accessing the credentials from a job/pipeline.
-
-
Method Details
-
getAccessKeyVariable
-
getSecretKeyVariable
-
getRoleArn
-
getRoleSessionName
-
getRoleSessionDurationSeconds
public int getRoleSessionDurationSeconds() -
setRoleArn
-
setRoleSessionName
-
setRoleSessionDurationSeconds
@DataBoundSetter public void setRoleSessionDurationSeconds(int roleSessionDurationSeconds) -
type
- Specified by:
type
in classorg.jenkinsci.plugins.credentialsbinding.MultiBinding<AmazonWebServicesCredentials>
-
bind
public org.jenkinsci.plugins.credentialsbinding.MultiBinding.MultiEnvironment bind(@NonNull Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException- Specified by:
bind
in classorg.jenkinsci.plugins.credentialsbinding.MultiBinding<AmazonWebServicesCredentials>
- Throws:
IOException
InterruptedException
-
variables
- Overrides:
variables
in classorg.jenkinsci.plugins.credentialsbinding.MultiBinding<AmazonWebServicesCredentials>
-