-
Notifications
You must be signed in to change notification settings - Fork 17
/
ServiceAttributes.go
32 lines (29 loc) · 1.3 KB
/
ServiceAttributes.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
package awsservicediscovery
// 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"
//
// var namespace iNamespace
//
// serviceAttributes := &ServiceAttributes{
// DnsRecordType: awscdk.Aws_servicediscovery.DnsRecordType_A,
// Namespace: namespace,
// RoutingPolicy: awscdk.*Aws_servicediscovery.RoutingPolicy_WEIGHTED,
// ServiceArn: jsii.String("serviceArn"),
// ServiceId: jsii.String("serviceId"),
// ServiceName: jsii.String("serviceName"),
//
// // the properties below are optional
// DiscoveryType: awscdk.*Aws_servicediscovery.DiscoveryType_API,
// }
//
type ServiceAttributes struct {
DnsRecordType DnsRecordType `field:"required" json:"dnsRecordType" yaml:"dnsRecordType"`
Namespace INamespace `field:"required" json:"namespace" yaml:"namespace"`
RoutingPolicy RoutingPolicy `field:"required" json:"routingPolicy" yaml:"routingPolicy"`
ServiceArn *string `field:"required" json:"serviceArn" yaml:"serviceArn"`
ServiceId *string `field:"required" json:"serviceId" yaml:"serviceId"`
ServiceName *string `field:"required" json:"serviceName" yaml:"serviceName"`
DiscoveryType DiscoveryType `field:"optional" json:"discoveryType" yaml:"discoveryType"`
}