Marco Fontani > Net-Amazon-Route53 > Net::Amazon::Route53::ResourceRecordSet

Download:
Net-Amazon-Route53-0.123250.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.123250   Source  

SYNOPSIS

    my $resource = Net::Amazon::Route53::ResourceRecordSet->new(...);
    # use methods on $resource

ATTRIBUTES

route53

A Net::Amazon::Route53 object, needed and used to perform requests to Amazon's Route 53 service

hostedzone

The Net::Amazon::Route53::HostedZone object this hosted zone refers to

name

The name for this resource record

ttl

The TTL associated with this resource record

type

The type of this resource record (A, AAAA, NS, etc)

values

The values associated with this resource record.

METHODS

create

    my $record = Net::Amazon::Route53::ResourceRecordSet->new( ... );
    $record->create;

Creates a new record. Needs all the attributes (name, ttl, type and values).

Takes an optional boolean parameter, wait, to indicate whether the request should return straightaway (default, or when wait is 0) or it should wait until the request is INSYNC according to the Change's status.

Returns a Net::Amazon::Route53::Change object representing the change requested.

delete

    $rrs->delete();

Asks Route 53 to delete the associated record. This should be used only when you want to delete the resource, not when changing a resource. In that case, use the change method instead, which takes care of creating a unique change in which the record is first deleted with the current details and then created with the new details.

Takes an optional boolean parameter, wait, to indicate whether the request should return straightaway (default, or when wait is 0) or it should wait until the request is INSYNC according to the Change's status.

Returns a Net::Amazon::Route53::Change object representing the change requested.

AUTHOR ^

Marco FONTANI <mfontani@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011 by Marco FONTANI.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: