Interface ICfnServiceMixinProps
Properties for CfnServicePropsMixin.
Namespace: Amazon.CDK.Mixins.Preview.AWS.ServiceDiscovery.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public interface ICfnServiceMixinProps
Syntax (vb)
Public Interface ICfnServiceMixinProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.ServiceDiscovery.Mixins;
var serviceAttributes;
var cfnServiceMixinProps = new CfnServiceMixinProps {
Description = "description",
DnsConfig = new DnsConfigProperty {
DnsRecords = new [] { new DnsRecordProperty {
Ttl = 123,
Type = "type"
} },
NamespaceId = "namespaceId",
RoutingPolicy = "routingPolicy"
},
HealthCheckConfig = new HealthCheckConfigProperty {
FailureThreshold = 123,
ResourcePath = "resourcePath",
Type = "type"
},
HealthCheckCustomConfig = new HealthCheckCustomConfigProperty {
FailureThreshold = 123
},
Name = "name",
NamespaceId = "namespaceId",
ServiceAttributes = serviceAttributes,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
Type = "type"
};
Synopsis
Properties
| Description | The description of the service. |
| DnsConfig | A complex type that contains information about the Route 53 DNS records that you want AWS Cloud Map to create when you register an instance. |
| 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, AWS Cloud Map associates the health check with the records that you specify in |
| HealthCheckCustomConfig | A complex type that contains information about an optional custom health check. |
| Name | The name of the service. |
| NamespaceId | The ID or Amazon Resource Name (ARN) of the namespace that you want to use to create the service. |
| ServiceAttributes | A complex type that contains information about attributes associated with a specific service. |
| Tags | The tags for the service. |
| Type | If present, specifies that the service instances are only discoverable using the |
Properties
Description
The description of the service.
string? Description { get; }
Property Value
Remarks
DnsConfig
A complex type that contains information about the Route 53 DNS records that you want AWS Cloud Map to create when you register an instance.
object? DnsConfig { get; }
Property Value
Remarks
The record types of a service can only be changed by deleting the service and recreating it with a new <code>Dnsconfig</code> .
Type union: either IResolvable or CfnServicePropsMixin.IDnsConfigProperty
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, AWS Cloud Map associates the health check with the records that you specify in DnsConfig .
object? HealthCheckConfig { get; }
Property Value
Remarks
For information about the charges for health checks, see Amazon Route 53 Pricing .
Type union: either IResolvable or CfnServicePropsMixin.IHealthCheckConfigProperty
HealthCheckCustomConfig
A complex type that contains information about an optional custom health check.
object? HealthCheckCustomConfig { get; }
Property Value
Remarks
If you specify a health check configuration, you can specify either <code>HealthCheckCustomConfig</code> or <code>HealthCheckConfig</code> but not both.
Type union: either IResolvable or CfnServicePropsMixin.IHealthCheckCustomConfigProperty
Name
The name of the service.
string? Name { get; }
Property Value
Remarks
NamespaceId
The ID or Amazon Resource Name (ARN) of the namespace that you want to use to create the service.
string? NamespaceId { get; }
Property Value
Remarks
For namespaces shared with your AWS account, specify the namespace ARN. For more information about shared namespaces, see Cross-account AWS Cloud Map namespace sharing in the AWS Cloud Map Developer Guide .
ServiceAttributes
A complex type that contains information about attributes associated with a specific service.
object? ServiceAttributes { get; }
Property Value
Remarks
Tags
The tags for the service.
ICfnTag[]? Tags { get; }
Property Value
ICfnTag[]
Remarks
Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
Type
If present, specifies that the service instances are only discoverable using the DiscoverInstances API operation.
string? Type { get; }
Property Value
Remarks
No DNS records is registered for the service instances. The only valid value is HTTP .