Package software.amazon.awscdk.pipelines
Class EcrDockerCredentialOptions.Builder
java.lang.Object
software.amazon.awscdk.pipelines.EcrDockerCredentialOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcrDockerCredentialOptions>
- Enclosing interface:
EcrDockerCredentialOptions
@Stability(Stable)
public static final class EcrDockerCredentialOptions.Builder
extends Object
implements software.amazon.jsii.Builder<EcrDockerCredentialOptions>
A builder for
EcrDockerCredentialOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassumeRole(IRole assumeRole) Sets the value ofEcrDockerCredentialOptions.getAssumeRole()build()Builds the configured instance.usages(List<? extends DockerCredentialUsage> usages) Sets the value ofEcrDockerCredentialOptions.getUsages()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assumeRole
Sets the value ofEcrDockerCredentialOptions.getAssumeRole()- Parameters:
assumeRole- An IAM role to assume prior to accessing the secret.- Returns:
this
-
usages
@Stability(Stable) public EcrDockerCredentialOptions.Builder usages(List<? extends DockerCredentialUsage> usages) Sets the value ofEcrDockerCredentialOptions.getUsages()- Parameters:
usages- Defines which stages of the pipeline should be granted access to these credentials.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EcrDockerCredentialOptions>- Returns:
- a new instance of
EcrDockerCredentialOptions - Throws:
NullPointerException- if any required attribute was not provided
-