Class CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty>
- Enclosing interface:
CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty
@Stability(Stable)
public static final class CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawsLogsConfiguration(CfnExpressGatewayServicePropsMixin.ExpressGatewayServiceAwsLogsConfigurationProperty awsLogsConfiguration) awsLogsConfiguration(IResolvable awsLogsConfiguration) build()Builds the configured instance.containerPort(Number containerPort) environment(List<? extends Object> environment) environment(IResolvable environment) repositoryCredentials(CfnExpressGatewayServicePropsMixin.ExpressGatewayRepositoryCredentialsProperty repositoryCredentials) repositoryCredentials(IResolvable repositoryCredentials) secrets(IResolvable secrets)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsLogsConfiguration
@Stability(Stable) public CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.Builder awsLogsConfiguration(IResolvable awsLogsConfiguration) Sets the value ofCfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.getAwsLogsConfiguration()- Parameters:
awsLogsConfiguration- The log configuration for the container.- Returns:
this
-
awsLogsConfiguration
@Stability(Stable) public CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.Builder awsLogsConfiguration(CfnExpressGatewayServicePropsMixin.ExpressGatewayServiceAwsLogsConfigurationProperty awsLogsConfiguration) Sets the value ofCfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.getAwsLogsConfiguration()- Parameters:
awsLogsConfiguration- The log configuration for the container.- Returns:
this
-
command
@Stability(Stable) public CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.Builder command(List<String> command) - Parameters:
command- The command that is passed to the container.- Returns:
this
-
containerPort
@Stability(Stable) public CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.Builder containerPort(Number containerPort) Sets the value ofCfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.getContainerPort()- Parameters:
containerPort- The port number on the container that receives traffic from the load balancer. Default is 80.- Returns:
this
-
environment
@Stability(Stable) public CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.Builder environment(IResolvable environment) Sets the value ofCfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.getEnvironment()- Parameters:
environment- The environment variables to pass to the container.- Returns:
this
-
environment
@Stability(Stable) public CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.Builder environment(List<? extends Object> environment) Sets the value ofCfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.getEnvironment()- Parameters:
environment- The environment variables to pass to the container.- Returns:
this
-
image
@Stability(Stable) public CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.Builder image(String image) - Parameters:
image- The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with eitherrepository-url/image:tagorrepository-url/image@digest.For Express services, the image typically contains a web application that listens on the specified container port. The image can be stored in Amazon ECR, Docker Hub, or any other container registry accessible to your execution role.
- Returns:
this
-
repositoryCredentials
@Stability(Stable) public CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.Builder repositoryCredentials(IResolvable repositoryCredentials) Sets the value ofCfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.getRepositoryCredentials()- Parameters:
repositoryCredentials- The configuration for repository credentials for private registry authentication.- Returns:
this
-
repositoryCredentials
@Stability(Stable) public CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.Builder repositoryCredentials(CfnExpressGatewayServicePropsMixin.ExpressGatewayRepositoryCredentialsProperty repositoryCredentials) Sets the value ofCfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.getRepositoryCredentials()- Parameters:
repositoryCredentials- The configuration for repository credentials for private registry authentication.- Returns:
this
-
secrets
@Stability(Stable) public CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.Builder secrets(IResolvable secrets) - Parameters:
secrets- The secrets to pass to the container.- Returns:
this
-
secrets
@Stability(Stable) public CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty.Builder secrets(List<? extends Object> secrets) - Parameters:
secrets- The secrets to pass to the container.- Returns:
this
-
build
@Stability(Stable) public CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty>- Returns:
- a new instance of
CfnExpressGatewayServicePropsMixin.ExpressGatewayContainerProperty - Throws:
NullPointerException- if any required attribute was not provided
-