Class ServiceConnectServiceResource
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.ServiceConnectServiceResource
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ServiceConnectServiceResource.Builder,ServiceConnectServiceResource>
@Generated("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 theclientAliases
of a service. However a task can't resolve the discovery names. If you want to connect to a service, refer to theServiceConnectConfiguration
of that service for the list ofclientAliases
that you can use.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ServiceConnectServiceResource.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
discoveryName
public 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 inportName.namespace
.- Returns:
- 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 inportName.namespace
.
-
discoveryArn
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.
- Returns:
- 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.
-
toBuilder
public ServiceConnectServiceResource.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ServiceConnectServiceResource.Builder,ServiceConnectServiceResource>
-
builder
public static ServiceConnectServiceResource.Builder builder()
-
serializableBuilderClass
public static Class<? extends ServiceConnectServiceResource.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-