Class CfnTaskDefinition.RepositoryCredentialsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.RepositoryCredentialsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.RepositoryCredentialsProperty>
- Enclosing interface:
CfnTaskDefinition.RepositoryCredentialsProperty
@Stability(Stable)
public static final class CfnTaskDefinition.RepositoryCredentialsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.RepositoryCredentialsProperty>
A builder for
CfnTaskDefinition.RepositoryCredentialsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.credentialsParameter
(String credentialsParameter)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
credentialsParameter
@Stability(Stable) public CfnTaskDefinition.RepositoryCredentialsProperty.Builder credentialsParameter(String credentialsParameter) - Parameters:
credentialsParameter
- The Amazon Resource Name (ARN) of the secret containing the private repository credentials.When you use the Amazon ECS API, AWS CLI , or AWS SDK, if the secret exists in the same Region as the task that you're launching then you can use either the full ARN or the name of the secret. When you use the AWS Management Console, you must specify the full ARN of the secret.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.RepositoryCredentialsProperty>
- Returns:
- a new instance of
CfnTaskDefinition.RepositoryCredentialsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-