Class CfnExpressGatewayServicePropsMixin.SecretProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnExpressGatewayServicePropsMixin.SecretProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnExpressGatewayServicePropsMixin.SecretProperty>
- Enclosing interface:
CfnExpressGatewayServicePropsMixin.SecretProperty
@Stability(Stable)
public static final class CfnExpressGatewayServicePropsMixin.SecretProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnExpressGatewayServicePropsMixin.SecretProperty>
A builder for
CfnExpressGatewayServicePropsMixin.SecretProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnExpressGatewayServicePropsMixin.SecretProperty.getName()Sets the value ofCfnExpressGatewayServicePropsMixin.SecretProperty.getValueFrom()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
@Stability(Stable) public CfnExpressGatewayServicePropsMixin.SecretProperty.Builder name(String name) Sets the value ofCfnExpressGatewayServicePropsMixin.SecretProperty.getName()- Parameters:
name- The name of the secret.- Returns:
this
-
valueFrom
@Stability(Stable) public CfnExpressGatewayServicePropsMixin.SecretProperty.Builder valueFrom(String valueFrom) Sets the value ofCfnExpressGatewayServicePropsMixin.SecretProperty.getValueFrom()- Parameters:
valueFrom- The secret to expose to the container. The supported values are either the full ARN of the AWS Secrets Manager secret or the full ARN of the parameter in the SSM Parameter Store.For information about the require AWS Identity and Access Management permissions, see Required IAM permissions for Amazon ECS secrets (for Secrets Manager) or Required IAM permissions for Amazon ECS secrets (for Systems Manager Parameter store) in the Amazon Elastic Container Service Developer Guide .
If the SSM Parameter Store parameter exists in the same Region as the task you're launching, then you can use either the full ARN or name of the parameter. If the parameter exists in a different Region, then the full ARN must be specified.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnExpressGatewayServicePropsMixin.SecretProperty>- Returns:
- a new instance of
CfnExpressGatewayServicePropsMixin.SecretProperty - Throws:
NullPointerException- if any required attribute was not provided
-