« blib/lib/Paws/Route53/CloudWatchAlarmConfiguration.pm
↑ Summary
blib/lib/Paws/Route53/CreateHealthCheckResponse.pm »
| 1 | |||
| 2 | package Paws::Route53::CreateHealthCheck; | ||
| 3 | use Moose; | ||
| 4 | has CallerReference => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has HealthCheckConfig => (is => 'ro', isa => 'Paws::Route53::HealthCheckConfig', required => 1); | ||
| 6 | |||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateHealthCheck'); | ||
| 11 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2013-04-01/healthcheck'); | ||
| 12 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 13 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53::CreateHealthCheckResponse'); | ||
| 14 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 15 | class_has _top_level_element => (isa => 'Str', is => 'ro', default => 'CreateHealthCheckRequest'); | ||
| 16 | class_has _top_level_namespace => (isa => 'Str', is => 'ro', default => 'https://route53.amazonaws.com/doc/2013-04-01/'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::Route53::CreateHealthCheck - Arguments for method CreateHealthCheck on L<Paws::Route53> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method CreateHealthCheck on the | ||
| 28 | L<Amazon Route 53|Paws::Route53> service. Use the attributes of this class | ||
| 29 | as arguments to method CreateHealthCheck. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateHealthCheck. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $route53 = Paws->service('Route53'); | ||
| 36 | my $CreateHealthCheckResponse = $route53->CreateHealthCheck( | ||
| 37 | CallerReference => 'MyHealthCheckNonce', | ||
| 38 | HealthCheckConfig => { | ||
| 39 | Type => 'HTTP' | ||
| 40 | , # values: HTTP, HTTPS, HTTP_STR_MATCH, HTTPS_STR_MATCH, TCP, CALCULATED, CLOUDWATCH_METRIC | ||
| 41 | AlarmIdentifier => { | ||
| 42 | Name => 'MyAlarmName', # min: 1, max: 256 | ||
| 43 | Region => 'us-east-1' | ||
| 44 | , # values: us-east-1, us-east-2, us-west-1, us-west-2, ca-central-1, eu-central-1, eu-west-1, eu-west-2, eu-west-3, ap-east-1, me-south-1, ap-south-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, ap-northeast-2, ap-northeast-3, eu-north-1, sa-east-1, cn-northwest-1, cn-north-1, af-south-1, eu-south-1, us-gov-west-1, us-gov-east-1, us-iso-east-1, us-isob-east-1min: 1, max: 64 | ||
| 45 | |||
| 46 | }, # OPTIONAL | ||
| 47 | ChildHealthChecks => [ | ||
| 48 | 'MyHealthCheckId', ... # max: 64 | ||
| 49 | ], # max: 256; OPTIONAL | ||
| 50 | Disabled => 1, # OPTIONAL | ||
| 51 | EnableSNI => 1, # OPTIONAL | ||
| 52 | FailureThreshold => 1, # min: 1, max: 10; OPTIONAL | ||
| 53 | FullyQualifiedDomainName => | ||
| 54 | 'MyFullyQualifiedDomainName', # max: 255; OPTIONAL | ||
| 55 | HealthThreshold => 1, # max: 256; OPTIONAL | ||
| 56 | IPAddress => 'MyIPAddress', # max: 45; OPTIONAL | ||
| 57 | InsufficientDataHealthStatus => | ||
| 58 | 'Healthy', # values: Healthy, Unhealthy, LastKnownStatus; OPTIONAL | ||
| 59 | Inverted => 1, # OPTIONAL | ||
| 60 | MeasureLatency => 1, # OPTIONAL | ||
| 61 | Port => 1, # min: 1, max: 65535; OPTIONAL | ||
| 62 | Regions => [ | ||
| 63 | 'us-east-1', | ||
| 64 | ... # values: us-east-1, us-west-1, us-west-2, eu-west-1, ap-southeast-1, ap-southeast-2, ap-northeast-1, sa-east-1min: 1, max: 64 | ||
| 65 | ], # min: 3, max: 64; OPTIONAL | ||
| 66 | RequestInterval => 1, # min: 10, max: 30; OPTIONAL | ||
| 67 | ResourcePath => 'MyResourcePath', # max: 255; OPTIONAL | ||
| 68 | SearchString => 'MySearchString', # max: 255; OPTIONAL | ||
| 69 | }, | ||
| 70 | |||
| 71 | ); | ||
| 72 | |||
| 73 | # Results: | ||
| 74 | my $HealthCheck = $CreateHealthCheckResponse->HealthCheck; | ||
| 75 | my $Location = $CreateHealthCheckResponse->Location; | ||
| 76 | |||
| 77 | # Returns a L<Paws::Route53::CreateHealthCheckResponse> object. | ||
| 78 | |||
| 79 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 80 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/route53/CreateHealthCheck> | ||
| 81 | |||
| 82 | =head1 ATTRIBUTES | ||
| 83 | |||
| 84 | |||
| 85 | =head2 B<REQUIRED> CallerReference => Str | ||
| 86 | |||
| 87 | A unique string that identifies the request and that allows you to | ||
| 88 | retry a failed C<CreateHealthCheck> request without the risk of | ||
| 89 | creating two identical health checks: | ||
| 90 | |||
| 91 | =over | ||
| 92 | |||
| 93 | =item * | ||
| 94 | |||
| 95 | If you send a C<CreateHealthCheck> request with the same | ||
| 96 | C<CallerReference> and settings as a previous request, and if the | ||
| 97 | health check doesn't exist, Amazon Route 53 creates the health check. | ||
| 98 | If the health check does exist, Route 53 returns the settings for the | ||
| 99 | existing health check. | ||
| 100 | |||
| 101 | =item * | ||
| 102 | |||
| 103 | If you send a C<CreateHealthCheck> request with the same | ||
| 104 | C<CallerReference> as a deleted health check, regardless of the | ||
| 105 | settings, Route 53 returns a C<HealthCheckAlreadyExists> error. | ||
| 106 | |||
| 107 | =item * | ||
| 108 | |||
| 109 | If you send a C<CreateHealthCheck> request with the same | ||
| 110 | C<CallerReference> as an existing health check but with different | ||
| 111 | settings, Route 53 returns a C<HealthCheckAlreadyExists> error. | ||
| 112 | |||
| 113 | =item * | ||
| 114 | |||
| 115 | If you send a C<CreateHealthCheck> request with a unique | ||
| 116 | C<CallerReference> but settings identical to an existing health check, | ||
| 117 | Route 53 creates the health check. | ||
| 118 | |||
| 119 | =back | ||
| 120 | |||
| 121 | |||
| 122 | |||
| 123 | |||
| 124 | =head2 B<REQUIRED> HealthCheckConfig => L<Paws::Route53::HealthCheckConfig> | ||
| 125 | |||
| 126 | A complex type that contains settings for a new health check. | ||
| 127 | |||
| 128 | |||
| 129 | |||
| 130 | |||
| 131 | =head1 SEE ALSO | ||
| 132 | |||
| 133 | This class forms part of L<Paws>, documenting arguments for method CreateHealthCheck in L<Paws::Route53> | ||
| 134 | |||
| 135 | =head1 BUGS and CONTRIBUTIONS | ||
| 136 | |||
| 137 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 138 | |||
| 139 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 140 | |||
| 141 | =cut | ||
| 142 |