AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateHealthCheckInput

import "github.com/aws/aws-sdk-go/service/route53"

type CreateHealthCheckInput struct { CallerReference *string `min:"1" type:"string" required:"true"` HealthCheckConfig *HealthCheckConfig `type:"structure" required:"true"` }

A complex type that contains the health check request information.

CallerReference

Type: *string

A unique string that identifies the request and that allows you to retry a failed CreateHealthCheck request without the risk of creating two identical health checks:

  • If you send a CreateHealthCheck request with the same CallerReference and settings as a previous request, and if the health check doesn't exist, Amazon Route 53 creates the health check. If the health check does exist, Route 53 returns the settings for the existing health check.

  • If you send a CreateHealthCheck request with the same CallerReference as a deleted health check, regardless of the settings, Route 53 returns a HealthCheckAlreadyExists error.

  • If you send a CreateHealthCheck request with the same CallerReference as an existing health check but with different settings, Route 53 returns a HealthCheckAlreadyExists error.

  • If you send a CreateHealthCheck request with a unique CallerReference but settings identical to an existing health check, Route 53 creates the health check.

CallerReference is a required field

HealthCheckConfig

A complex type that contains information about the health check.

Method

GoString

func (s CreateHealthCheckInput) GoString() string

GoString returns the string representation

SetCallerReference

func (s *CreateHealthCheckInput) SetCallerReference(v string) *CreateHealthCheckInput

SetCallerReference sets the CallerReference field's value.

SetHealthCheckConfig

func (s *CreateHealthCheckInput) SetHealthCheckConfig(v *HealthCheckConfig) *CreateHealthCheckInput

SetHealthCheckConfig sets the HealthCheckConfig field's value.

String

func (s CreateHealthCheckInput) String() string

String returns the string representation

Validate

func (s *CreateHealthCheckInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: