« blib/lib/Paws/Glacier/CompleteMultipartUpload.pm
↑ Summary
blib/lib/Paws/Glacier/CreateVaultOutput.pm »
| 1 | |||
| 2 | package Paws::Glacier::CreateVault; | ||
| 3 | 3 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | has AccountId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'accountId', required => 1); | |
| 5 | 3 | has VaultName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'vaultName', required => 1); | |
| 6 | |||
| 7 | 3 | ▶ | use MooseX::ClassAttribute; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 3 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateVault'); | |
| 10 | 3 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{accountId}/vaults/{vaultName}'); | |
| 11 | 3 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | |
| 12 | 3 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Glacier::CreateVaultOutput'); | |
| 13 | 3 | 1; | |
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::Glacier::CreateVault - Arguments for method CreateVault on L<Paws::Glacier> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method CreateVault on the | ||
| 24 | L<Amazon Glacier|Paws::Glacier> service. Use the attributes of this class | ||
| 25 | as arguments to method CreateVault. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateVault. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $glacier = Paws->service('Glacier'); | ||
| 32 | # To create a new vault | ||
| 33 | # The following example creates a new vault named my-vault. | ||
| 34 | my $CreateVaultOutput = $glacier->CreateVault( | ||
| 35 | 'AccountId' => '-', | ||
| 36 | 'VaultName' => 'my-vault' | ||
| 37 | ); | ||
| 38 | |||
| 39 | # Results: | ||
| 40 | my $location = $CreateVaultOutput->location; | ||
| 41 | |||
| 42 | # Returns a L<Paws::Glacier::CreateVaultOutput> object. | ||
| 43 | |||
| 44 | 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. | ||
| 45 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/glacier/CreateVault> | ||
| 46 | |||
| 47 | =head1 ATTRIBUTES | ||
| 48 | |||
| 49 | |||
| 50 | =head2 B<REQUIRED> AccountId => Str | ||
| 51 | |||
| 52 | The C<AccountId> value is the AWS account ID. This value must match the | ||
| 53 | AWS account ID associated with the credentials used to sign the | ||
| 54 | request. You can either specify an AWS account ID or optionally a | ||
| 55 | single 'C<->' (hyphen), in which case Amazon S3 Glacier uses the AWS | ||
| 56 | account ID associated with the credentials used to sign the request. If | ||
| 57 | you specify your account ID, do not include any hyphens ('-') in the | ||
| 58 | ID. | ||
| 59 | |||
| 60 | |||
| 61 | |||
| 62 | =head2 B<REQUIRED> VaultName => Str | ||
| 63 | |||
| 64 | The name of the vault. | ||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | =head1 SEE ALSO | ||
| 70 | |||
| 71 | This class forms part of L<Paws>, documenting arguments for method CreateVault in L<Paws::Glacier> | ||
| 72 | |||
| 73 | =head1 BUGS and CONTRIBUTIONS | ||
| 74 | |||
| 75 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 76 | |||
| 77 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 78 | |||
| 79 | =cut | ||
| 80 | |||