Class CfnServicePropsMixin.ServiceConnectServiceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServicePropsMixin.ServiceConnectServiceProperty>
- Enclosing interface:
CfnServicePropsMixin.ServiceConnectServiceProperty
CfnServicePropsMixin.ServiceConnectServiceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clientAliases(List<? extends Object> clientAliases) Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getClientAliases()clientAliases(IResolvable clientAliases) Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getClientAliases()discoveryName(String discoveryName) Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getDiscoveryName()ingressPortOverride(Number ingressPortOverride) Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getPortName()timeout(IResolvable timeout) Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getTimeout()Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getTimeout()tls(IResolvable tls) Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getTls()Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getTls()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientAliases
@Stability(Stable) public CfnServicePropsMixin.ServiceConnectServiceProperty.Builder clientAliases(IResolvable clientAliases) Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getClientAliases()- Parameters:
clientAliases- The list of client aliases for this Service Connect service. You use these to assign names that can be used by client applications. The maximum number of client aliases that you can have in this list is 1.Each alias ("endpoint") is a fully-qualified name and port number that other Amazon ECS tasks ("clients") can use to connect to this service.
Each name and port mapping must be unique within the namespace.
For each
ServiceConnectService, you must provide at least oneclientAliaswith oneport.- Returns:
this
-
clientAliases
@Stability(Stable) public CfnServicePropsMixin.ServiceConnectServiceProperty.Builder clientAliases(List<? extends Object> clientAliases) Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getClientAliases()- Parameters:
clientAliases- The list of client aliases for this Service Connect service. You use these to assign names that can be used by client applications. The maximum number of client aliases that you can have in this list is 1.Each alias ("endpoint") is a fully-qualified name and port number that other Amazon ECS tasks ("clients") can use to connect to this service.
Each name and port mapping must be unique within the namespace.
For each
ServiceConnectService, you must provide at least oneclientAliaswith oneport.- Returns:
this
-
discoveryName
@Stability(Stable) public CfnServicePropsMixin.ServiceConnectServiceProperty.Builder discoveryName(String discoveryName) Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getDiscoveryName()- Parameters:
discoveryName- ThediscoveryNameis the name of the new AWS Cloud Map service that Amazon ECS creates for this Amazon ECS service. This must be unique within the AWS Cloud Map namespace. The name can contain up to 64 characters. The name can include lowercase letters, numbers, underscores (_), and hyphens (-). The name can't start with a hyphen.If the
discoveryNameisn't specified, the port mapping name from the task definition is used inportName.namespace.- Returns:
this
-
ingressPortOverride
@Stability(Stable) public CfnServicePropsMixin.ServiceConnectServiceProperty.Builder ingressPortOverride(Number ingressPortOverride) - Parameters:
ingressPortOverride- The port number for the Service Connect proxy to listen on. Use the value of this field to bypass the proxy for traffic on the port number specified in the namedportMappingin the task definition of this application, and then use it in your VPC security groups to allow traffic into the proxy for this Amazon ECS service.In
awsvpcmode and Fargate, the default value is the container port number. The container port number is in theportMappingin the task definition. In bridge mode, the default value is the ephemeral port of the Service Connect proxy.- Returns:
this
-
portName
@Stability(Stable) public CfnServicePropsMixin.ServiceConnectServiceProperty.Builder portName(String portName) Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getPortName()- Parameters:
portName- TheportNamemust match the name of one of theportMappingsfrom all the containers in the task definition of this Amazon ECS service.- Returns:
this
-
timeout
@Stability(Stable) public CfnServicePropsMixin.ServiceConnectServiceProperty.Builder timeout(IResolvable timeout) Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getTimeout()- Parameters:
timeout- A reference to an object that represents the configured timeouts for Service Connect.- Returns:
this
-
timeout
@Stability(Stable) public CfnServicePropsMixin.ServiceConnectServiceProperty.Builder timeout(CfnServicePropsMixin.TimeoutConfigurationProperty timeout) Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getTimeout()- Parameters:
timeout- A reference to an object that represents the configured timeouts for Service Connect.- Returns:
this
-
tls
@Stability(Stable) public CfnServicePropsMixin.ServiceConnectServiceProperty.Builder tls(IResolvable tls) Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getTls()- Parameters:
tls- A reference to an object that represents a Transport Layer Security (TLS) configuration.- Returns:
this
-
tls
@Stability(Stable) public CfnServicePropsMixin.ServiceConnectServiceProperty.Builder tls(CfnServicePropsMixin.ServiceConnectTlsConfigurationProperty tls) Sets the value ofCfnServicePropsMixin.ServiceConnectServiceProperty.getTls()- Parameters:
tls- A reference to an object that represents a Transport Layer Security (TLS) configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServicePropsMixin.ServiceConnectServiceProperty>- Returns:
- a new instance of
CfnServicePropsMixin.ServiceConnectServiceProperty - Throws:
NullPointerException- if any required attribute was not provided
-