package awsservicediscovery // Basic props needed to create a service in a given namespace. // // Used by HttpNamespace.createService // // 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 BaseServiceProps struct { // Structure containing failure threshold for a custom health checker. // // Only one of healthCheckConfig or healthCheckCustomConfig can be specified. // See: https://docs.aws.amazon.com/cloud-map/latest/api/API_HealthCheckCustomConfig.html CustomHealthCheck *HealthCheckCustomConfig `field:"optional" json:"customHealthCheck" yaml:"customHealthCheck"` // A description of the service. Description *string `field:"optional" json:"description" yaml:"description"` // Settings for an optional health check. // // If you specify health check settings, AWS Cloud Map associates the health // check with the records that you specify in DnsConfig. Only one of healthCheckConfig or healthCheckCustomConfig can // be specified. Not valid for PrivateDnsNamespaces. If you use healthCheck, you can only register IP instances to // this service. HealthCheck *HealthCheckConfig `field:"optional" json:"healthCheck" yaml:"healthCheck"` // A name for the Service. Name *string `field:"optional" json:"name" yaml:"name"` }