-
Notifications
You must be signed in to change notification settings - Fork 17
/
IpInstanceBaseProps.go
65 lines (62 loc) · 2.43 KB
/
IpInstanceBaseProps.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
package awsservicediscovery
// Example:
// import "github.com/aws/aws-cdk-go/awscdk"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// app := cdk.NewApp()
// stack := cdk.NewStack(app, jsii.String("aws-servicediscovery-integ"))
//
// namespace := servicediscovery.NewHttpNamespace(stack, jsii.String("MyNamespace"), &HttpNamespaceProps{
// Name: jsii.String("MyHTTPNamespace"),
// })
//
// service1 := namespace.CreateService(jsii.String("NonIpService"), &BaseServiceProps{
// Description: jsii.String("service registering non-ip instances"),
// })
//
// service1.RegisterNonIpInstance(jsii.String("NonIpInstance"), &NonIpInstanceBaseProps{
// CustomAttributes: map[string]*string{
// "arn": jsii.String("arn:aws:s3:::mybucket"),
// },
// })
//
// service2 := namespace.CreateService(jsii.String("IpService"), &BaseServiceProps{
// Description: jsii.String("service registering ip instances"),
// HealthCheck: &HealthCheckConfig{
// Type: servicediscovery.HealthCheckType_HTTP,
// ResourcePath: jsii.String("/check"),
// },
// })
//
// service2.RegisterIpInstance(jsii.String("IpInstance"), &IpInstanceBaseProps{
// Ipv4: jsii.String("54.239.25.192"),
// })
//
// app.Synth()
//
type IpInstanceBaseProps struct {
// Custom attributes of the instance.
// Default: none.
//
CustomAttributes *map[string]*string `field:"optional" json:"customAttributes" yaml:"customAttributes"`
// The id of the instance resource.
// Default: Automatically generated name.
//
InstanceId *string `field:"optional" json:"instanceId" yaml:"instanceId"`
// If the service that you specify contains a template for an A record, the IPv4 address that you want AWS Cloud Map to use for the value of the A record.
// Default: none.
//
Ipv4 *string `field:"optional" json:"ipv4" yaml:"ipv4"`
// If the service that you specify contains a template for an AAAA record, the IPv6 address that you want AWS Cloud Map to use for the value of the AAAA record.
// Default: none.
//
Ipv6 *string `field:"optional" json:"ipv6" yaml:"ipv6"`
// The port on the endpoint that you want AWS Cloud Map to perform health checks on.
//
// This value is also used for
// the port value in an SRV record if the service that you specify includes an SRV record. You can also specify a
// default port that is applied to all instances in the Service configuration.
// Default: 80.
//
Port *float64 `field:"optional" json:"port" yaml:"port"`
}