Paws::Route53::CreateHostedZone - Arguments for method CreateHostedZone on Paws::Route53


This class represents the parameters used for calling the method CreateHostedZone on the Amazon Route 53 service. Use the attributes of this class as arguments to method CreateHostedZone.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateHostedZone.


    my $route53 = Paws->service('Route53');
    my $CreateHostedZoneResponse = $route53->CreateHostedZone(
      CallerReference  => 'MyNonce',
      Name             => 'MyDNSName',
      DelegationSetId  => 'MyResourceId',    # OPTIONAL
      HostedZoneConfig => {
        Comment     => 'MyResourceDescription',    # max: 256; OPTIONAL
        PrivateZone => 1,                          # OPTIONAL
      },    # OPTIONAL
      VPC => {
        VPCId     => 'MyVPCId',    # max: 1024; OPTIONAL
        VPCRegion => 'us-east-1'
        , # 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, 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-1min: 1, max: 64; OPTIONAL
      },    # OPTIONAL

    # Results:
    my $ChangeInfo    = $CreateHostedZoneResponse->ChangeInfo;
    my $DelegationSet = $CreateHostedZoneResponse->DelegationSet;
    my $HostedZone    = $CreateHostedZoneResponse->HostedZone;
    my $Location      = $CreateHostedZoneResponse->Location;
    my $VPC           = $CreateHostedZoneResponse->VPC;

    # Returns a L<Paws::Route53::CreateHostedZoneResponse> object.

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. For the AWS API documentation, see


REQUIRED CallerReference => Str

A unique string that identifies the request and that allows failed CreateHostedZone requests to be retried without the risk of executing the operation twice. You must use a unique CallerReference string every time you submit a CreateHostedZone request. CallerReference can be any unique string, for example, a date/time stamp.

DelegationSetId => Str

If you want to associate a reusable delegation set with this hosted zone, the ID that Amazon Route 53 assigned to the reusable delegation set when you created it. For more information about reusable delegation sets, see CreateReusableDelegationSet (

HostedZoneConfig => Paws::Route53::HostedZoneConfig

(Optional) A complex type that contains the following optional values:

  • For public and private hosted zones, an optional comment

  • For private hosted zones, an optional PrivateZone element

If you don't specify a comment or the PrivateZone element, omit HostedZoneConfig and the other elements.

REQUIRED Name => Str

The name of the domain. Specify a fully qualified domain name, for example, The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Route 53 treats (without a trailing dot) and (with a trailing dot) as identical.

If you're creating a public hosted zone, this is the name you have registered with your DNS registrar. If your domain name is registered with a registrar other than Route 53, change the name servers for your domain to the set of NameServers that CreateHostedZone returns in DelegationSet.

VPC => Paws::Route53::VPC

(Private hosted zones only) A complex type that contains information about the Amazon VPC that you're associating with this hosted zone.

You can specify only one Amazon VPC when you create a private hosted zone. To associate additional Amazon VPCs with the hosted zone, use AssociateVPCWithHostedZone ( after you create a hosted zone.


This class forms part of Paws, documenting arguments for method CreateHostedZone in Paws::Route53


The source code is located here:

Please report bugs to: