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
  • Field Details

  • Constructor Details

    • AmazonWebServicesCredentialsBinding

      @DataBoundConstructor public AmazonWebServicesCredentialsBinding(@Nullable String accessKeyVariable, @Nullable String secretKeyVariable, String credentialsId)
      Parameters:
      accessKeyVariable - if null, "AWS_ACCESS_KEY_ID" will be used.
      secretKeyVariable - if null, "AWS_SECRET_ACCESS_KEY" will be used.
      credentialsId - identifier which should be referenced when accessing the credentials from a job/pipeline.
  • Method Details

    • getAccessKeyVariable

      @NonNull public String getAccessKeyVariable()
    • getSecretKeyVariable

      @NonNull public String getSecretKeyVariable()
    • getRoleArn

      @Nullable public String getRoleArn()
    • getRoleSessionName

      @Nullable public String getRoleSessionName()
    • getRoleSessionDurationSeconds

      public int getRoleSessionDurationSeconds()
    • setRoleArn

      @DataBoundSetter public void setRoleArn(String roleArn)
    • setRoleSessionName

      @DataBoundSetter public void setRoleSessionName(String roleSessionName)
    • setRoleSessionDurationSeconds

      @DataBoundSetter public void setRoleSessionDurationSeconds(int roleSessionDurationSeconds)
    • type

      Specified by:
      type in class org.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 class org.jenkinsci.plugins.credentialsbinding.MultiBinding<AmazonWebServicesCredentials>
      Throws:
      IOException
      InterruptedException
    • variables

      public Set<String> variables()
      Overrides:
      variables in class org.jenkinsci.plugins.credentialsbinding.MultiBinding<AmazonWebServicesCredentials>