Class CfnServicePropsMixin.ServiceConnectClientAliasProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServicePropsMixin.ServiceConnectClientAliasProperty>
- Enclosing interface:
CfnServicePropsMixin.ServiceConnectClientAliasProperty
CfnServicePropsMixin.ServiceConnectClientAliasProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnServicePropsMixin.ServiceConnectClientAliasProperty.getDnsName()Sets the value ofCfnServicePropsMixin.ServiceConnectClientAliasProperty.getPort()testTrafficRules(CfnServicePropsMixin.ServiceConnectTestTrafficRulesProperty testTrafficRules) testTrafficRules(IResolvable testTrafficRules)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dnsName
@Stability(Stable) public CfnServicePropsMixin.ServiceConnectClientAliasProperty.Builder dnsName(String dnsName) Sets the value ofCfnServicePropsMixin.ServiceConnectClientAliasProperty.getDnsName()- Parameters:
dnsName- ThednsNameis the name that you use in the applications of client tasks to connect to this service. The name must be a valid DNS name but doesn't need to be fully-qualified. The name can include up to 127 characters. The name can include lowercase letters, numbers, underscores (_), hyphens (-), and periods (.). The name can't start with a hyphen.If this parameter isn't specified, the default value of
discoveryName.namespaceis used. If thediscoveryNameisn't specified, the port mapping name from the task definition is used inportName.namespace.To avoid changing your applications in client Amazon ECS services, set this to the same name that the client application uses by default. For example, a few common names are
database,db, or the lowercase name of a database, such asmysqlorredis. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide .- Returns:
this
-
port
@Stability(Stable) public CfnServicePropsMixin.ServiceConnectClientAliasProperty.Builder port(Number port) Sets the value ofCfnServicePropsMixin.ServiceConnectClientAliasProperty.getPort()- Parameters:
port- The listening port number for the Service Connect proxy. This port is available inside of all of the tasks within the same namespace.To avoid changing your applications in client Amazon ECS services, set this to the same port that the client application uses by default. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide .
- Returns:
this
-
testTrafficRules
@Stability(Stable) public CfnServicePropsMixin.ServiceConnectClientAliasProperty.Builder testTrafficRules(IResolvable testTrafficRules) - Parameters:
testTrafficRules- The configuration for test traffic routing rules used during blue/green deployments with Amazon ECS Service Connect. This allows you to route a portion of traffic to the new service revision of your service for testing before shifting all production traffic.- Returns:
this
-
testTrafficRules
@Stability(Stable) public CfnServicePropsMixin.ServiceConnectClientAliasProperty.Builder testTrafficRules(CfnServicePropsMixin.ServiceConnectTestTrafficRulesProperty testTrafficRules) - Parameters:
testTrafficRules- The configuration for test traffic routing rules used during blue/green deployments with Amazon ECS Service Connect. This allows you to route a portion of traffic to the new service revision of your service for testing before shifting all production traffic.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServicePropsMixin.ServiceConnectClientAliasProperty>- Returns:
- a new instance of
CfnServicePropsMixin.ServiceConnectClientAliasProperty - Throws:
NullPointerException- if any required attribute was not provided
-