« blib/lib/Paws/Lightsail/CreateContainerServiceResult.pm
↑ Summary
blib/lib/Paws/Lightsail/CreateDiskFromSnapshot.pm »
| 1 | |||
| 2 | package Paws::Lightsail::CreateDisk; | ||
| 3 | use Moose; | ||
| 4 | has AddOns => (is => 'ro', isa => 'ArrayRef[Paws::Lightsail::AddOnRequest]', traits => ['NameInRequest'], request_name => 'addOns' ); | ||
| 5 | has AvailabilityZone => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'availabilityZone' , required => 1); | ||
| 6 | has DiskName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'diskName' , required => 1); | ||
| 7 | has SizeInGb => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'sizeInGb' , required => 1); | ||
| 8 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::Lightsail::Tag]', traits => ['NameInRequest'], request_name => 'tags' ); | ||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateDisk'); | ||
| 13 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lightsail::CreateDiskResult'); | ||
| 14 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::Lightsail::CreateDisk - Arguments for method CreateDisk on L<Paws::Lightsail> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method CreateDisk on the | ||
| 26 | L<Amazon Lightsail|Paws::Lightsail> service. Use the attributes of this class | ||
| 27 | as arguments to method CreateDisk. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateDisk. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $lightsail = Paws->service('Lightsail'); | ||
| 34 | my $CreateDiskResult = $lightsail->CreateDisk( | ||
| 35 | AvailabilityZone => 'MyNonEmptyString', | ||
| 36 | DiskName => 'MyResourceName', | ||
| 37 | SizeInGb => 1, | ||
| 38 | AddOns => [ | ||
| 39 | { | ||
| 40 | AddOnType => 'AutoSnapshot', # values: AutoSnapshot | ||
| 41 | AutoSnapshotAddOnRequest => { | ||
| 42 | SnapshotTimeOfDay => 'MyTimeOfDay', # OPTIONAL | ||
| 43 | }, # OPTIONAL | ||
| 44 | }, | ||
| 45 | ... | ||
| 46 | ], # OPTIONAL | ||
| 47 | Tags => [ | ||
| 48 | { | ||
| 49 | Key => 'MyTagKey', # OPTIONAL | ||
| 50 | Value => 'MyTagValue', # OPTIONAL | ||
| 51 | }, | ||
| 52 | ... | ||
| 53 | ], # OPTIONAL | ||
| 54 | ); | ||
| 55 | |||
| 56 | # Results: | ||
| 57 | my $Operations = $CreateDiskResult->Operations; | ||
| 58 | |||
| 59 | # Returns a L<Paws::Lightsail::CreateDiskResult> object. | ||
| 60 | |||
| 61 | 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. | ||
| 62 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lightsail/CreateDisk> | ||
| 63 | |||
| 64 | =head1 ATTRIBUTES | ||
| 65 | |||
| 66 | |||
| 67 | =head2 AddOns => ArrayRef[L<Paws::Lightsail::AddOnRequest>] | ||
| 68 | |||
| 69 | An array of objects that represent the add-ons to enable for the new | ||
| 70 | disk. | ||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head2 B<REQUIRED> AvailabilityZone => Str | ||
| 75 | |||
| 76 | The Availability Zone where you want to create the disk (e.g., | ||
| 77 | C<us-east-2a>). Use the same Availability Zone as the Lightsail | ||
| 78 | instance to which you want to attach the disk. | ||
| 79 | |||
| 80 | Use the C<get regions> operation to list the Availability Zones where | ||
| 81 | Lightsail is currently available. | ||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | =head2 B<REQUIRED> DiskName => Str | ||
| 86 | |||
| 87 | The unique Lightsail disk name (e.g., C<my-disk>). | ||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | =head2 B<REQUIRED> SizeInGb => Int | ||
| 92 | |||
| 93 | The size of the disk in GB (e.g., C<32>). | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head2 Tags => ArrayRef[L<Paws::Lightsail::Tag>] | ||
| 98 | |||
| 99 | The tag keys and optional values to add to the resource during create. | ||
| 100 | |||
| 101 | Use the C<TagResource> action to tag a resource after it's created. | ||
| 102 | |||
| 103 | |||
| 104 | |||
| 105 | |||
| 106 | =head1 SEE ALSO | ||
| 107 | |||
| 108 | This class forms part of L<Paws>, documenting arguments for method CreateDisk in L<Paws::Lightsail> | ||
| 109 | |||
| 110 | =head1 BUGS and CONTRIBUTIONS | ||
| 111 | |||
| 112 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 113 | |||
| 114 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 115 | |||
| 116 | =cut | ||
| 117 |