-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnServiceProps.go
97 lines (94 loc) · 5.01 KB
/
CfnServiceProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package awsservicediscovery
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// Properties for defining a `CfnService`.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// cfnServiceProps := &CfnServiceProps{
// Description: jsii.String("description"),
// DnsConfig: &DnsConfigProperty{
// DnsRecords: []interface{}{
// &DnsRecordProperty{
// Ttl: jsii.Number(123),
// Type: jsii.String("type"),
// },
// },
//
// // the properties below are optional
// NamespaceId: jsii.String("namespaceId"),
// RoutingPolicy: jsii.String("routingPolicy"),
// },
// HealthCheckConfig: &HealthCheckConfigProperty{
// Type: jsii.String("type"),
//
// // the properties below are optional
// FailureThreshold: jsii.Number(123),
// ResourcePath: jsii.String("resourcePath"),
// },
// HealthCheckCustomConfig: &HealthCheckCustomConfigProperty{
// FailureThreshold: jsii.Number(123),
// },
// Name: jsii.String("name"),
// NamespaceId: jsii.String("namespaceId"),
// Tags: []cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// Type: jsii.String("type"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html
//
type CfnServiceProps struct {
// The description of the service.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-description
//
Description *string `field:"optional" json:"description" yaml:"description"`
// 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.
//
// > The record types of a service can only be changed by deleting the service and recreating it with a new `Dnsconfig` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-dnsconfig
//
DnsConfig interface{} `field:"optional" json:"dnsConfig" yaml:"dnsConfig"`
// *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` .
//
// For information about the charges for health checks, see [Amazon Route 53 Pricing](https://docs.aws.amazon.com/route53/pricing/) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-healthcheckconfig
//
HealthCheckConfig interface{} `field:"optional" json:"healthCheckConfig" yaml:"healthCheckConfig"`
// 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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-healthcheckcustomconfig
//
HealthCheckCustomConfig interface{} `field:"optional" json:"healthCheckCustomConfig" yaml:"healthCheckCustomConfig"`
// The name of the service.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-name
//
Name *string `field:"optional" json:"name" yaml:"name"`
// The ID of the namespace that was used to create the service.
//
// > You must specify a value for `NamespaceId` either for the service properties or for [DnsConfig](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-servicediscovery-service-dnsconfig.html) . Don't specify a value in both places.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-namespaceid
//
NamespaceId *string `field:"optional" json:"namespaceId" yaml:"namespaceId"`
// The tags for the service.
//
// 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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-tags
//
Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
// If present, specifies that the service instances are only discoverable using the `DiscoverInstances` API operation.
//
// No DNS records is registered for the service instances. The only valid value is `HTTP` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-type
//
Type *string `field:"optional" json:"type" yaml:"type"`
}