amazonka-ecs-2.0: Amazon EC2 Container Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ECS.Types.ServiceConnectServiceResource

Description

 
Synopsis

Documentation

data ServiceConnectServiceResource Source #

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.

See: newServiceConnectServiceResource smart constructor.

Constructors

ServiceConnectServiceResource' 

Fields

  • discoveryArn :: Maybe Text

    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.

  • discoveryName :: Maybe Text

    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 this parameter isn't specified, the default value of discoveryName.namespace is used. If the discoveryName isn't specified, the port mapping name from the task definition is used in portName.namespace.

Instances

Instances details
FromJSON ServiceConnectServiceResource Source # 
Instance details

Defined in Amazonka.ECS.Types.ServiceConnectServiceResource

Generic ServiceConnectServiceResource Source # 
Instance details

Defined in Amazonka.ECS.Types.ServiceConnectServiceResource

Associated Types

type Rep ServiceConnectServiceResource :: Type -> Type #

Read ServiceConnectServiceResource Source # 
Instance details

Defined in Amazonka.ECS.Types.ServiceConnectServiceResource

Show ServiceConnectServiceResource Source # 
Instance details

Defined in Amazonka.ECS.Types.ServiceConnectServiceResource

NFData ServiceConnectServiceResource Source # 
Instance details

Defined in Amazonka.ECS.Types.ServiceConnectServiceResource

Eq ServiceConnectServiceResource Source # 
Instance details

Defined in Amazonka.ECS.Types.ServiceConnectServiceResource

Hashable ServiceConnectServiceResource Source # 
Instance details

Defined in Amazonka.ECS.Types.ServiceConnectServiceResource

type Rep ServiceConnectServiceResource Source # 
Instance details

Defined in Amazonka.ECS.Types.ServiceConnectServiceResource

type Rep ServiceConnectServiceResource = D1 ('MetaData "ServiceConnectServiceResource" "Amazonka.ECS.Types.ServiceConnectServiceResource" "amazonka-ecs-2.0-3xFxVqi9x5nBZ44jBEC5G8" 'False) (C1 ('MetaCons "ServiceConnectServiceResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "discoveryArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "discoveryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newServiceConnectServiceResource :: ServiceConnectServiceResource Source #

Create a value of ServiceConnectServiceResource with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:discoveryArn:ServiceConnectServiceResource', serviceConnectServiceResource_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.

$sel:discoveryName:ServiceConnectServiceResource', serviceConnectServiceResource_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 this parameter isn't specified, the default value of discoveryName.namespace is used. If the discoveryName isn't specified, the port mapping name from the task definition is used in portName.namespace.

serviceConnectServiceResource_discoveryArn :: Lens' ServiceConnectServiceResource (Maybe Text) Source #

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.

serviceConnectServiceResource_discoveryName :: Lens' ServiceConnectServiceResource (Maybe Text) Source #

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 this parameter isn't specified, the default value of discoveryName.namespace is used. If the discoveryName isn't specified, the port mapping name from the task definition is used in portName.namespace.