@Generated(value="software.amazon.awssdk:codegen") public final class ServiceConnectServiceResource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ServiceConnectServiceResource.Builder,ServiceConnectServiceResource>
The Service Connect resource. Each configuration maps a discovery name to a Cloud Map service name. The data is stored in Cloud Map as part of the Service Connect configuration for each discovery name of this Amazon ECS service.
A task can resolve the dnsName for each of the clientAliases of a service. However a task
can't resolve the discovery names. If you want to connect to a service, refer to the
ServiceConnectConfiguration of that service for the list of clientAliases that you can use.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ServiceConnectServiceResource.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ServiceConnectServiceResource.Builder |
builder() |
String |
discoveryArn()
The Amazon Resource Name (ARN) for the namespace in Cloud Map that matches the discovery name for this Service
Connect resource.
|
String |
discoveryName()
The discovery name of this Service Connect resource.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ServiceConnectServiceResource.Builder> |
serializableBuilderClass() |
ServiceConnectServiceResource.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String discoveryName()
The discovery name of this Service Connect resource.
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 in
portName.namespace.
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
in portName.namespace.
public final String discoveryArn()
The Amazon Resource Name (ARN) for the namespace in Cloud Map that matches the discovery name for this Service Connect resource. You can use this ARN in other integrations with Cloud Map. However, Service Connect can't ensure connectivity outside of Amazon ECS.
public ServiceConnectServiceResource.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ServiceConnectServiceResource.Builder,ServiceConnectServiceResource>public static ServiceConnectServiceResource.Builder builder()
public static Class<? extends ServiceConnectServiceResource.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.