« blib/lib/Paws/Route53/ChangeTagsForResource.pm
↑ Summary
blib/lib/Paws/Route53/CreateQueryLoggingConfig.pm »
| 1 | |||
| 2 | package Paws::Route53::CreateHostedZone; | ||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | has CallerReference => (is => 'ro', isa => 'Str', required => 1); | |
| 5 | 1 | has DelegationSetId => (is => 'ro', isa => 'Str'); | |
| 6 | 1 | has HostedZoneConfig => (is => 'ro', isa => 'Paws::Route53::HostedZoneConfig'); | |
| 7 | 1 | has Name => (is => 'ro', isa => 'Str', required => 1); | |
| 8 | 1 | has VPC => (is => 'ro', isa => 'Paws::Route53::VPC'); | |
| 9 | |||
| 10 | |||
| 11 | 1 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 1 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateHostedZone'); | |
| 14 | 1 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2013-04-01/hostedzone'); | |
| 15 | 1 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | |
| 16 | 1 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Route53::CreateHostedZoneResponse'); | |
| 17 | 1 | class_has _result_key => (isa => 'Str', is => 'ro'); | |
| 18 | 1 | class_has _top_level_element => (isa => 'Str', is => 'ro', default => 'CreateHostedZoneRequest'); | |
| 19 | 1 | class_has _top_level_namespace => (isa => 'Str', is => 'ro', default => 'https://route53.amazonaws.com/doc/2013-04-01/'); | |
| 20 | 1 | 1; | |
| 21 | |||
| 22 | ### main pod documentation begin ### | ||
| 23 | |||
| 24 | =head1 NAME | ||
| 25 | |||
| 26 | Paws::Route53::CreateHostedZone - Arguments for method CreateHostedZone on L<Paws::Route53> | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | This class represents the parameters used for calling the method CreateHostedZone on the | ||
| 31 | L<Amazon Route 53|Paws::Route53> service. Use the attributes of this class | ||
| 32 | as arguments to method CreateHostedZone. | ||
| 33 | |||
| 34 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateHostedZone. | ||
| 35 | |||
| 36 | =head1 SYNOPSIS | ||
| 37 | |||
| 38 | my $route53 = Paws->service('Route53'); | ||
| 39 | my $CreateHostedZoneResponse = $route53->CreateHostedZone( | ||
| 40 | CallerReference => 'MyNonce', | ||
| 41 | Name => 'MyDNSName', | ||
| 42 | DelegationSetId => 'MyResourceId', # OPTIONAL | ||
| 43 | HostedZoneConfig => { | ||
| 44 | Comment => 'MyResourceDescription', # max: 256; OPTIONAL | ||
| 45 | PrivateZone => 1, # OPTIONAL | ||
| 46 | }, # OPTIONAL | ||
| 47 | VPC => { | ||
| 48 | VPCId => 'MyVPCId', # max: 1024; OPTIONAL | ||
| 49 | VPCRegion => 'us-east-1' | ||
| 50 | , # values: us-east-1, us-east-2, us-west-1, us-west-2, eu-west-1, eu-west-2, eu-west-3, eu-central-1, ap-east-1, me-south-1, us-gov-west-1, us-gov-east-1, us-iso-east-1, us-isob-east-1, ap-southeast-1, ap-southeast-2, ap-south-1, ap-northeast-1, ap-northeast-2, ap-northeast-3, eu-north-1, sa-east-1, ca-central-1, cn-north-1, af-south-1, eu-south-1min: 1, max: 64; OPTIONAL | ||
| 51 | }, # OPTIONAL | ||
| 52 | ); | ||
| 53 | |||
| 54 | # Results: | ||
| 55 | my $ChangeInfo = $CreateHostedZoneResponse->ChangeInfo; | ||
| 56 | my $DelegationSet = $CreateHostedZoneResponse->DelegationSet; | ||
| 57 | my $HostedZone = $CreateHostedZoneResponse->HostedZone; | ||
| 58 | my $Location = $CreateHostedZoneResponse->Location; | ||
| 59 | my $VPC = $CreateHostedZoneResponse->VPC; | ||
| 60 | |||
| 61 | # Returns a L<Paws::Route53::CreateHostedZoneResponse> object. | ||
| 62 | |||
| 63 | 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. | ||
| 64 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/route53/CreateHostedZone> | ||
| 65 | |||
| 66 | =head1 ATTRIBUTES | ||
| 67 | |||
| 68 | |||
| 69 | =head2 B<REQUIRED> CallerReference => Str | ||
| 70 | |||
| 71 | A unique string that identifies the request and that allows failed | ||
| 72 | C<CreateHostedZone> requests to be retried without the risk of | ||
| 73 | executing the operation twice. You must use a unique C<CallerReference> | ||
| 74 | string every time you submit a C<CreateHostedZone> request. | ||
| 75 | C<CallerReference> can be any unique string, for example, a date/time | ||
| 76 | stamp. | ||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | =head2 DelegationSetId => Str | ||
| 81 | |||
| 82 | If you want to associate a reusable delegation set with this hosted | ||
| 83 | zone, the ID that Amazon Route 53 assigned to the reusable delegation | ||
| 84 | set when you created it. For more information about reusable delegation | ||
| 85 | sets, see CreateReusableDelegationSet | ||
| 86 | (https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateReusableDelegationSet.html). | ||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | =head2 HostedZoneConfig => L<Paws::Route53::HostedZoneConfig> | ||
| 91 | |||
| 92 | (Optional) A complex type that contains the following optional values: | ||
| 93 | |||
| 94 | =over | ||
| 95 | |||
| 96 | =item * | ||
| 97 | |||
| 98 | For public and private hosted zones, an optional comment | ||
| 99 | |||
| 100 | =item * | ||
| 101 | |||
| 102 | For private hosted zones, an optional C<PrivateZone> element | ||
| 103 | |||
| 104 | =back | ||
| 105 | |||
| 106 | If you don't specify a comment or the C<PrivateZone> element, omit | ||
| 107 | C<HostedZoneConfig> and the other elements. | ||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | =head2 B<REQUIRED> Name => Str | ||
| 112 | |||
| 113 | The name of the domain. Specify a fully qualified domain name, for | ||
| 114 | example, I<www.example.com>. The trailing dot is optional; Amazon Route | ||
| 115 | 53 assumes that the domain name is fully qualified. This means that | ||
| 116 | Route 53 treats I<www.example.com> (without a trailing dot) and | ||
| 117 | I<www.example.com.> (with a trailing dot) as identical. | ||
| 118 | |||
| 119 | If you're creating a public hosted zone, this is the name you have | ||
| 120 | registered with your DNS registrar. If your domain name is registered | ||
| 121 | with a registrar other than Route 53, change the name servers for your | ||
| 122 | domain to the set of C<NameServers> that C<CreateHostedZone> returns in | ||
| 123 | C<DelegationSet>. | ||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | =head2 VPC => L<Paws::Route53::VPC> | ||
| 128 | |||
| 129 | (Private hosted zones only) A complex type that contains information | ||
| 130 | about the Amazon VPC that you're associating with this hosted zone. | ||
| 131 | |||
| 132 | You can specify only one Amazon VPC when you create a private hosted | ||
| 133 | zone. To associate additional Amazon VPCs with the hosted zone, use | ||
| 134 | AssociateVPCWithHostedZone | ||
| 135 | (https://docs.aws.amazon.com/Route53/latest/APIReference/API_AssociateVPCWithHostedZone.html) | ||
| 136 | after you create a hosted zone. | ||
| 137 | |||
| 138 | |||
| 139 | |||
| 140 | |||
| 141 | =head1 SEE ALSO | ||
| 142 | |||
| 143 | This class forms part of L<Paws>, documenting arguments for method CreateHostedZone in L<Paws::Route53> | ||
| 144 | |||
| 145 | =head1 BUGS and CONTRIBUTIONS | ||
| 146 | |||
| 147 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 148 | |||
| 149 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 150 | |||
| 151 | =cut | ||
| 152 | |||