« blib/lib/Paws/Route53/TestDNSAnswerResponse.pm
↑ Summary
blib/lib/Paws/Route53/TrafficPolicyInstance.pm »
| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::Route53::TrafficPolicy; | ||
| 3 | use Moose; | ||
| 4 | has Comment => (is => 'ro', isa => 'Str'); | ||
| 5 | has Document => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has Id => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has Name => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | has Type => (is => 'ro', isa => 'Str', required => 1); | ||
| 9 | has Version => (is => 'ro', isa => 'Int', required => 1); | ||
| 10 | |||
| 11 | 1; | ||
| 12 | |||
| 13 | ### main pod documentation begin ### | ||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | Paws::Route53::TrafficPolicy | ||
| 18 | |||
| 19 | =head1 USAGE | ||
| 20 | |||
| 21 | This class represents one of two things: | ||
| 22 | |||
| 23 | =head3 Arguments in a call to a service | ||
| 24 | |||
| 25 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 26 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 27 | |||
| 28 | As an example, if Att1 is expected to be a Paws::Route53::TrafficPolicy object: | ||
| 29 | |||
| 30 | $service_obj->Method(Att1 => { Comment => $value, ..., Version => $value }); | ||
| 31 | |||
| 32 | =head3 Results returned from an API call | ||
| 33 | |||
| 34 | Use accessors for each attribute. If Att1 is expected to be an Paws::Route53::TrafficPolicy object: | ||
| 35 | |||
| 36 | $result = $service_obj->Method(...); | ||
| 37 | $result->Att1->Comment | ||
| 38 | |||
| 39 | =head1 DESCRIPTION | ||
| 40 | |||
| 41 | A complex type that contains settings for a traffic policy. | ||
| 42 | |||
| 43 | =head1 ATTRIBUTES | ||
| 44 | |||
| 45 | |||
| 46 | =head2 Comment => Str | ||
| 47 | |||
| 48 | The comment that you specify in the C<CreateTrafficPolicy> request, if | ||
| 49 | any. | ||
| 50 | |||
| 51 | |||
| 52 | =head2 B<REQUIRED> Document => Str | ||
| 53 | |||
| 54 | The definition of a traffic policy in JSON format. You specify the JSON | ||
| 55 | document to use for a new traffic policy in the C<CreateTrafficPolicy> | ||
| 56 | request. For more information about the JSON format, see Traffic Policy | ||
| 57 | Document Format | ||
| 58 | (https://docs.aws.amazon.com/Route53/latest/APIReference/api-policies-traffic-policy-document-format.html). | ||
| 59 | |||
| 60 | |||
| 61 | =head2 B<REQUIRED> Id => Str | ||
| 62 | |||
| 63 | The ID that Amazon Route 53 assigned to a traffic policy when you | ||
| 64 | created it. | ||
| 65 | |||
| 66 | |||
| 67 | =head2 B<REQUIRED> Name => Str | ||
| 68 | |||
| 69 | The name that you specified when you created the traffic policy. | ||
| 70 | |||
| 71 | |||
| 72 | =head2 B<REQUIRED> Type => Str | ||
| 73 | |||
| 74 | The DNS type of the resource record sets that Amazon Route 53 creates | ||
| 75 | when you use a traffic policy to create a traffic policy instance. | ||
| 76 | |||
| 77 | |||
| 78 | =head2 B<REQUIRED> Version => Int | ||
| 79 | |||
| 80 | The version number that Amazon Route 53 assigns to a traffic policy. | ||
| 81 | For a new traffic policy, the value of C<Version> is always 1. | ||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | =head1 SEE ALSO | ||
| 86 | |||
| 87 | This class forms part of L<Paws>, describing an object used in L<Paws::Route53> | ||
| 88 | |||
| 89 | =head1 BUGS and CONTRIBUTIONS | ||
| 90 | |||
| 91 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 92 | |||
| 93 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 94 | |||
| 95 | =cut | ||
| 96 |