« blib/lib/Paws/Route53/CreateTrafficPolicy.pm
↑ Summary
blib/lib/Paws/Route53/CreateTrafficPolicyInstanceResponse.pm »
| 1 | |||
| 2 | package Paws::Route53::CreateTrafficPolicyInstance; | ||
| 3 | use Moose; | ||
| 4 | has HostedZoneId => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has Name => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has TrafficPolicyId => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has TrafficPolicyVersion => (is => 'ro', isa => 'Int', required => 1); | ||
| 8 | has TTL => (is => 'ro', isa => 'Int', required => 1); | ||
| 9 | |||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | |||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateTrafficPolicyInstance'); | ||
| 14 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2013-04-01/trafficpolicyinstance'); | ||
| 15 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53::CreateTrafficPolicyInstanceResponse'); | ||
| 17 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 18 | class_has _top_level_element => (isa => 'Str', is => 'ro', default => 'CreateTrafficPolicyInstanceRequest'); | ||
| 19 | class_has _top_level_namespace => (isa => 'Str', is => 'ro', default => 'https://route53.amazonaws.com/doc/2013-04-01/'); | ||
| 20 | 1; | ||
| 21 | |||
| 22 | ### main pod documentation begin ### | ||
| 23 | |||
| 24 | =head1 NAME | ||
| 25 | |||
| 26 | Paws::Route53::CreateTrafficPolicyInstance - Arguments for method CreateTrafficPolicyInstance on L<Paws::Route53> | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | This class represents the parameters used for calling the method CreateTrafficPolicyInstance on the | ||
| 31 | L<Amazon Route 53|Paws::Route53> service. Use the attributes of this class | ||
| 32 | as arguments to method CreateTrafficPolicyInstance. | ||
| 33 | |||
| 34 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateTrafficPolicyInstance. | ||
| 35 | |||
| 36 | =head1 SYNOPSIS | ||
| 37 | |||
| 38 | my $route53 = Paws->service('Route53'); | ||
| 39 | my $CreateTrafficPolicyInstanceResponse = | ||
| 40 | $route53->CreateTrafficPolicyInstance( | ||
| 41 | HostedZoneId => 'MyResourceId', | ||
| 42 | Name => 'MyDNSName', | ||
| 43 | TTL => 1, | ||
| 44 | TrafficPolicyId => 'MyTrafficPolicyId', | ||
| 45 | TrafficPolicyVersion => 1, | ||
| 46 | |||
| 47 | ); | ||
| 48 | |||
| 49 | # Results: | ||
| 50 | my $Location = $CreateTrafficPolicyInstanceResponse->Location; | ||
| 51 | my $TrafficPolicyInstance = | ||
| 52 | $CreateTrafficPolicyInstanceResponse->TrafficPolicyInstance; | ||
| 53 | |||
| 54 | # Returns a L<Paws::Route53::CreateTrafficPolicyInstanceResponse> object. | ||
| 55 | |||
| 56 | 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. | ||
| 57 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/route53/CreateTrafficPolicyInstance> | ||
| 58 | |||
| 59 | =head1 ATTRIBUTES | ||
| 60 | |||
| 61 | |||
| 62 | =head2 B<REQUIRED> HostedZoneId => Str | ||
| 63 | |||
| 64 | The ID of the hosted zone that you want Amazon Route 53 to create | ||
| 65 | resource record sets in by using the configuration in a traffic policy. | ||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | =head2 B<REQUIRED> Name => Str | ||
| 70 | |||
| 71 | The domain name (such as example.com) or subdomain name (such as | ||
| 72 | www.example.com) for which Amazon Route 53 responds to DNS queries by | ||
| 73 | using the resource record sets that Route 53 creates for this traffic | ||
| 74 | policy instance. | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | =head2 B<REQUIRED> TrafficPolicyId => Str | ||
| 79 | |||
| 80 | The ID of the traffic policy that you want to use to create resource | ||
| 81 | record sets in the specified hosted zone. | ||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | =head2 B<REQUIRED> TrafficPolicyVersion => Int | ||
| 86 | |||
| 87 | The version of the traffic policy that you want to use to create | ||
| 88 | resource record sets in the specified hosted zone. | ||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | =head2 B<REQUIRED> TTL => Int | ||
| 93 | |||
| 94 | (Optional) The TTL that you want Amazon Route 53 to assign to all of | ||
| 95 | the resource record sets that it creates in the specified hosted zone. | ||
| 96 | |||
| 97 | |||
| 98 | |||
| 99 | |||
| 100 | =head1 SEE ALSO | ||
| 101 | |||
| 102 | This class forms part of L<Paws>, documenting arguments for method CreateTrafficPolicyInstance in L<Paws::Route53> | ||
| 103 | |||
| 104 | =head1 BUGS and CONTRIBUTIONS | ||
| 105 | |||
| 106 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 107 | |||
| 108 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 109 | |||
| 110 | =cut | ||
| 111 |