Interface CfnService.ServiceConnectServiceProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnService.ServiceConnectServiceProperty.Jsii$Proxy
- Enclosing class:
CfnService
For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
ServiceConnectServiceProperty serviceConnectServiceProperty = ServiceConnectServiceProperty.builder()
.portName("portName")
// the properties below are optional
.clientAliases(List.of(ServiceConnectClientAliasProperty.builder()
.port(123)
// the properties below are optional
.dnsName("dnsName")
.testTrafficRules(ServiceConnectTestTrafficRulesProperty.builder()
.header(ServiceConnectTestTrafficRulesHeaderProperty.builder()
.name("name")
// the properties below are optional
.value(ServiceConnectTestTrafficRulesHeaderValueProperty.builder()
.exact("exact")
.build())
.build())
.build())
.build()))
.discoveryName("discoveryName")
.ingressPortOverride(123)
.timeout(TimeoutConfigurationProperty.builder()
.idleTimeoutSeconds(123)
.perRequestTimeoutSeconds(123)
.build())
.tls(ServiceConnectTlsConfigurationProperty.builder()
.issuerCertificateAuthority(ServiceConnectTlsCertificateAuthorityProperty.builder()
.awsPcaAuthorityArn("awsPcaAuthorityArn")
.build())
// the properties below are optional
.kmsKey("kmsKey")
.roleArn("roleArn")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnService.ServiceConnectServicePropertystatic final classAn implementation forCfnService.ServiceConnectServiceProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe list of client aliases for this Service Connect service.default StringThediscoveryNameis the name of the new AWS Cloud Map service that Amazon ECS creates for this Amazon ECS service.default NumberThe port number for the Service Connect proxy to listen on.TheportNamemust match the name of one of theportMappingsfrom all the containers in the task definition of this Amazon ECS service.default ObjectA reference to an object that represents the configured timeouts for Service Connect.default ObjectgetTls()A reference to an object that represents a Transport Layer Security (TLS) configuration.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPortName
TheportNamemust match the name of one of theportMappingsfrom all the containers in the task definition of this Amazon ECS service.- See Also:
-
getClientAliases
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 union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnService.ServiceConnectClientAliasProperty>- See Also:
-
getDiscoveryName
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.- See Also:
-
getIngressPortOverride
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
portMappingin 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.- See Also:
-
getTimeout
A reference to an object that represents the configured timeouts for Service Connect.Returns union: either
IResolvableorCfnService.TimeoutConfigurationProperty- See Also:
-
getTls
A reference to an object that represents a Transport Layer Security (TLS) configuration.Returns union: either
IResolvableorCfnService.ServiceConnectTlsConfigurationProperty- See Also:
-
builder
-