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
dnsNamefor each of theclientAliasesof a service. However a task can't resolve the discovery names. If you want to connect to a service, refer to theServiceConnectConfigurationof that service for the list ofclientAliasesthat you can use.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServiceConnectServiceResource.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceConnectServiceResource.Builderbuilder()StringdiscoveryArn()The Amazon Resource Name (ARN) for the namespace in Cloud Map that matches the discovery name for this Service Connect resource.StringdiscoveryName()The discovery name of this Service Connect resource.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ServiceConnectServiceResource.Builder>serializableBuilderClass()ServiceConnectServiceResource.BuildertoBuilder()StringtoString()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
discoveryNameis 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
discoveryNameisn't specified, the port mapping name from the task definition is used inportName.namespace.- Returns:
- The discovery name of this Service Connect resource.
The
discoveryNameis 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
discoveryNameisn'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:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-