Interface ServiceConnectService.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServiceConnectService.Builder,
,ServiceConnectService> SdkBuilder<ServiceConnectService.Builder,
,ServiceConnectService> SdkPojo
- Enclosing class:
ServiceConnectService
-
Method Summary
Modifier and TypeMethodDescriptionclientAliases
(Collection<ServiceConnectClientAlias> clientAliases) The list of client aliases for this Service Connect service.clientAliases
(Consumer<ServiceConnectClientAlias.Builder>... clientAliases) The list of client aliases for this Service Connect service.clientAliases
(ServiceConnectClientAlias... clientAliases) The list of client aliases for this Service Connect service.discoveryName
(String discoveryName) ThediscoveryName
is the name of the new Cloud Map service that Amazon ECS creates for this Amazon ECS service.ingressPortOverride
(Integer ingressPortOverride) The port number for the Service Connect proxy to listen on.TheportName
must match the name of one of theportMappings
from all the containers in the task definition of this Amazon ECS service.default ServiceConnectService.Builder
timeout
(Consumer<TimeoutConfiguration.Builder> timeout) A reference to an object that represents the configured timeouts for Service Connect.timeout
(TimeoutConfiguration timeout) A reference to an object that represents the configured timeouts for Service Connect.default ServiceConnectService.Builder
A reference to an object that represents a Transport Layer Security (TLS) configuration.A reference to an object that represents a Transport Layer Security (TLS) configuration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
portName
The
portName
must match the name of one of theportMappings
from all the containers in the task definition of this Amazon ECS service.- Parameters:
portName
- TheportName
must match the name of one of theportMappings
from all the containers in the task definition of this Amazon ECS service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
discoveryName
The
discoveryName
is the name of the new Cloud Map service that Amazon ECS creates for this Amazon ECS service. This must be unique within the 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
discoveryName
isn't specified, the port mapping name from the task definition is used inportName.namespace
.- Parameters:
discoveryName
- ThediscoveryName
is the name of the new Cloud Map service that Amazon ECS creates for this Amazon ECS service. This must be unique within the 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
discoveryName
isn't specified, the port mapping name from the task definition is used inportName.namespace
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 oneclientAlias
with oneport
.- 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 oneclientAlias
with oneport
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 oneclientAlias
with oneport
.- 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 oneclientAlias
with oneport
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientAliases
ServiceConnectService.Builder clientAliases(Consumer<ServiceConnectClientAlias.Builder>... 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
This is a convenience method that creates an instance of theServiceConnectService
, you must provide at least oneclientAlias
with oneport
.ServiceConnectClientAlias.Builder
avoiding the need to create one manually viaServiceConnectClientAlias.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toclientAliases(List<ServiceConnectClientAlias>)
.- Parameters:
clientAliases
- a consumer that will call methods onServiceConnectClientAlias.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 named
portMapping
in 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
awsvpc
mode and Fargate, the default value is the container port number. The container port number is in theportMapping
in the task definition. In bridge mode, the default value is the ephemeral port of the Service Connect proxy.- 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 named
portMapping
in 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
awsvpc
mode and Fargate, the default value is the container port number. The container port number is in theportMapping
in the task definition. In bridge mode, the default value is the ephemeral port of the Service Connect proxy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeout
A reference to an object that represents the configured timeouts for Service Connect.
- Parameters:
timeout
- A reference to an object that represents the configured timeouts for Service Connect.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeout
A reference to an object that represents the configured timeouts for Service Connect.
This is a convenience method that creates an instance of theTimeoutConfiguration.Builder
avoiding the need to create one manually viaTimeoutConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totimeout(TimeoutConfiguration)
.- Parameters:
timeout
- a consumer that will call methods onTimeoutConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tls
A reference to an object that represents a Transport Layer Security (TLS) configuration.
- Parameters:
tls
- A reference to an object that represents a Transport Layer Security (TLS) configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tls
A reference to an object that represents a Transport Layer Security (TLS) configuration.
This is a convenience method that creates an instance of theServiceConnectTlsConfiguration.Builder
avoiding the need to create one manually viaServiceConnectTlsConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totls(ServiceConnectTlsConfiguration)
.- Parameters:
tls
- a consumer that will call methods onServiceConnectTlsConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-