Class CfnExpressGatewayService.ExpressGatewayContainerProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnExpressGatewayService.ExpressGatewayContainerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnExpressGatewayService.ExpressGatewayContainerProperty>
- Enclosing interface:
CfnExpressGatewayService.ExpressGatewayContainerProperty
@Stability(Stable)
public static final class CfnExpressGatewayService.ExpressGatewayContainerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnExpressGatewayService.ExpressGatewayContainerProperty>
A builder for
CfnExpressGatewayService.ExpressGatewayContainerProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawsLogsConfiguration(IResolvable awsLogsConfiguration) awsLogsConfiguration(CfnExpressGatewayService.ExpressGatewayServiceAwsLogsConfigurationProperty awsLogsConfiguration) build()Builds the configured instance.Sets the value ofCfnExpressGatewayService.ExpressGatewayContainerProperty.getCommand()containerPort(Number containerPort) environment(List<? extends Object> environment) environment(IResolvable environment) Sets the value ofCfnExpressGatewayService.ExpressGatewayContainerProperty.getImage()repositoryCredentials(IResolvable repositoryCredentials) repositoryCredentials(CfnExpressGatewayService.ExpressGatewayRepositoryCredentialsProperty repositoryCredentials) Sets the value ofCfnExpressGatewayService.ExpressGatewayContainerProperty.getSecrets()secrets(IResolvable secrets) Sets the value ofCfnExpressGatewayService.ExpressGatewayContainerProperty.getSecrets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
image
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayContainerProperty.Builder image(String image) Sets the value ofCfnExpressGatewayService.ExpressGatewayContainerProperty.getImage()- Parameters:
image- The image used to start a container. This parameter is required. 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
-
awsLogsConfiguration
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayContainerProperty.Builder awsLogsConfiguration(IResolvable awsLogsConfiguration) Sets the value ofCfnExpressGatewayService.ExpressGatewayContainerProperty.getAwsLogsConfiguration()- Parameters:
awsLogsConfiguration- The log configuration for the container.- Returns:
this
-
awsLogsConfiguration
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayContainerProperty.Builder awsLogsConfiguration(CfnExpressGatewayService.ExpressGatewayServiceAwsLogsConfigurationProperty awsLogsConfiguration) Sets the value ofCfnExpressGatewayService.ExpressGatewayContainerProperty.getAwsLogsConfiguration()- Parameters:
awsLogsConfiguration- The log configuration for the container.- Returns:
this
-
command
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayContainerProperty.Builder command(List<String> command) Sets the value ofCfnExpressGatewayService.ExpressGatewayContainerProperty.getCommand()- Parameters:
command- The command that is passed to the container.- Returns:
this
-
containerPort
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayContainerProperty.Builder containerPort(Number containerPort) - Parameters:
containerPort- The port number on the container that receives traffic from the load balancer. Default is 80.- Returns:
this
-
environment
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayContainerProperty.Builder environment(IResolvable environment) - Parameters:
environment- The environment variables to pass to the container.- Returns:
this
-
environment
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayContainerProperty.Builder environment(List<? extends Object> environment) - Parameters:
environment- The environment variables to pass to the container.- Returns:
this
-
repositoryCredentials
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayContainerProperty.Builder repositoryCredentials(IResolvable repositoryCredentials) Sets the value ofCfnExpressGatewayService.ExpressGatewayContainerProperty.getRepositoryCredentials()- Parameters:
repositoryCredentials- The configuration for repository credentials for private registry authentication.- Returns:
this
-
repositoryCredentials
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayContainerProperty.Builder repositoryCredentials(CfnExpressGatewayService.ExpressGatewayRepositoryCredentialsProperty repositoryCredentials) Sets the value ofCfnExpressGatewayService.ExpressGatewayContainerProperty.getRepositoryCredentials()- Parameters:
repositoryCredentials- The configuration for repository credentials for private registry authentication.- Returns:
this
-
secrets
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayContainerProperty.Builder secrets(IResolvable secrets) Sets the value ofCfnExpressGatewayService.ExpressGatewayContainerProperty.getSecrets()- Parameters:
secrets- The secrets to pass to the container.- Returns:
this
-
secrets
@Stability(Stable) public CfnExpressGatewayService.ExpressGatewayContainerProperty.Builder secrets(List<? extends Object> secrets) Sets the value ofCfnExpressGatewayService.ExpressGatewayContainerProperty.getSecrets()- Parameters:
secrets- The secrets to pass to the container.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnExpressGatewayService.ExpressGatewayContainerProperty>- Returns:
- a new instance of
CfnExpressGatewayService.ExpressGatewayContainerProperty - Throws:
NullPointerException- if any required attribute was not provided
-