Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data ServiceInfo = ServiceInfo' {
- arn :: Maybe Text
- createDate :: Maybe POSIX
- creatorRequestId :: Maybe Text
- description :: Maybe Text
- dnsConfig :: Maybe DnsConfig
- healthCheckConfig :: Maybe HealthCheckConfig
- healthCheckCustomConfig :: Maybe HealthCheckCustomConfig
- id :: Maybe Text
- instanceCount :: Maybe Int
- name :: Maybe Text
- namespaceId :: Maybe Text
- type' :: Maybe ServiceType
- newServiceInfo :: ServiceInfo
- serviceInfo_arn :: Lens' ServiceInfo (Maybe Text)
- serviceInfo_createDate :: Lens' ServiceInfo (Maybe UTCTime)
- serviceInfo_creatorRequestId :: Lens' ServiceInfo (Maybe Text)
- serviceInfo_description :: Lens' ServiceInfo (Maybe Text)
- serviceInfo_dnsConfig :: Lens' ServiceInfo (Maybe DnsConfig)
- serviceInfo_healthCheckConfig :: Lens' ServiceInfo (Maybe HealthCheckConfig)
- serviceInfo_healthCheckCustomConfig :: Lens' ServiceInfo (Maybe HealthCheckCustomConfig)
- serviceInfo_id :: Lens' ServiceInfo (Maybe Text)
- serviceInfo_instanceCount :: Lens' ServiceInfo (Maybe Int)
- serviceInfo_name :: Lens' ServiceInfo (Maybe Text)
- serviceInfo_namespaceId :: Lens' ServiceInfo (Maybe Text)
- serviceInfo_type :: Lens' ServiceInfo (Maybe ServiceType)
Documentation
data ServiceInfo Source #
A complex type that contains information about the specified service.
See: newServiceInfo
smart constructor.
ServiceInfo' | |
|
Instances
newServiceInfo :: ServiceInfo Source #
Create a value of ServiceInfo
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:arn:ServiceInfo'
, serviceInfo_arn
- The Amazon Resource Name (ARN) that Cloud Map assigns to the service
when you create it.
$sel:createDate:ServiceInfo'
, serviceInfo_createDate
- The date and time that the service was created, in Unix format and
Coordinated Universal Time (UTC). The value of CreateDate
is accurate
to milliseconds. For example, the value 1516925490.087
represents
Friday, January 26, 2018 12:11:30.087 AM.
$sel:creatorRequestId:ServiceInfo'
, serviceInfo_creatorRequestId
- A unique string that identifies the request and that allows failed
requests to be retried without the risk of running the operation twice.
CreatorRequestId
can be any unique string (for example, a
date/timestamp).
$sel:description:ServiceInfo'
, serviceInfo_description
- The description of the service.
$sel:dnsConfig:ServiceInfo'
, serviceInfo_dnsConfig
- A complex type that contains information about the Route 53 DNS records
that you want Cloud Map to create when you register an instance.
The record types of a service can only be changed by deleting the
service and recreating it with a new Dnsconfig
.
$sel:healthCheckConfig:ServiceInfo'
, serviceInfo_healthCheckConfig
- Public DNS and HTTP namespaces only. A complex type that contains
settings for an optional health check. If you specify settings for a
health check, Cloud Map associates the health check with the records
that you specify in DnsConfig
.
For information about the charges for health checks, see Amazon Route 53 Pricing.
$sel:healthCheckCustomConfig:ServiceInfo'
, serviceInfo_healthCheckCustomConfig
- A complex type that contains information about an optional custom health
check.
If you specify a health check configuration, you can specify either
HealthCheckCustomConfig
or HealthCheckConfig
but not both.
$sel:id:ServiceInfo'
, serviceInfo_id
- The ID that Cloud Map assigned to the service when you created it.
$sel:instanceCount:ServiceInfo'
, serviceInfo_instanceCount
- The number of instances that are currently associated with the service.
Instances that were previously associated with the service but that are
deleted aren't included in the count. The count might not reflect
pending registrations and deregistrations.
$sel:name:ServiceInfo'
, serviceInfo_name
- The name of the service.
ServiceInfo
, serviceInfo_namespaceId
- The ID of the namespace that was used to create the service.
ServiceInfo
, serviceInfo_type
- Describes the systems that can be used to discover the service
instances.
- DNS_HTTP
- The service instances can be discovered using either DNS queries or
the
DiscoverInstances
API operation. - HTTP
- The service instances can only be discovered using the
DiscoverInstances
API operation. - DNS
- Reserved.
serviceInfo_arn :: Lens' ServiceInfo (Maybe Text) Source #
The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.
serviceInfo_createDate :: Lens' ServiceInfo (Maybe UTCTime) Source #
The date and time that the service was created, in Unix format and
Coordinated Universal Time (UTC). The value of CreateDate
is accurate
to milliseconds. For example, the value 1516925490.087
represents
Friday, January 26, 2018 12:11:30.087 AM.
serviceInfo_creatorRequestId :: Lens' ServiceInfo (Maybe Text) Source #
A unique string that identifies the request and that allows failed
requests to be retried without the risk of running the operation twice.
CreatorRequestId
can be any unique string (for example, a
date/timestamp).
serviceInfo_description :: Lens' ServiceInfo (Maybe Text) Source #
The description of the service.
serviceInfo_dnsConfig :: Lens' ServiceInfo (Maybe DnsConfig) Source #
A complex type that contains information about the Route 53 DNS records that you want Cloud Map to create when you register an instance.
The record types of a service can only be changed by deleting the
service and recreating it with a new Dnsconfig
.
serviceInfo_healthCheckConfig :: Lens' ServiceInfo (Maybe HealthCheckConfig) Source #
Public DNS and HTTP namespaces only. A complex type that contains
settings for an optional health check. If you specify settings for a
health check, Cloud Map associates the health check with the records
that you specify in DnsConfig
.
For information about the charges for health checks, see Amazon Route 53 Pricing.
serviceInfo_healthCheckCustomConfig :: Lens' ServiceInfo (Maybe HealthCheckCustomConfig) Source #
A complex type that contains information about an optional custom health check.
If you specify a health check configuration, you can specify either
HealthCheckCustomConfig
or HealthCheckConfig
but not both.
serviceInfo_id :: Lens' ServiceInfo (Maybe Text) Source #
The ID that Cloud Map assigned to the service when you created it.
serviceInfo_instanceCount :: Lens' ServiceInfo (Maybe Int) Source #
The number of instances that are currently associated with the service. Instances that were previously associated with the service but that are deleted aren't included in the count. The count might not reflect pending registrations and deregistrations.
serviceInfo_name :: Lens' ServiceInfo (Maybe Text) Source #
The name of the service.
serviceInfo_namespaceId :: Lens' ServiceInfo (Maybe Text) Source #
The ID of the namespace that was used to create the service.
serviceInfo_type :: Lens' ServiceInfo (Maybe ServiceType) Source #
Describes the systems that can be used to discover the service instances.
- DNS_HTTP
- The service instances can be discovered using either DNS queries or
the
DiscoverInstances
API operation. - HTTP
- The service instances can only be discovered using the
DiscoverInstances
API operation. - DNS
- Reserved.