« blib/lib/Paws/LicenseManager/ConsumptionConfiguration.pm
↑ Summary
blib/lib/Paws/LicenseManager/CreateGrantResponse.pm »
| 1 | |||
| 2 | package Paws::LicenseManager::CreateGrant; | ||
| 3 | use Moose; | ||
| 4 | has AllowedOperations => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1); | ||
| 5 | has ClientToken => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has GrantName => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has HomeRegion => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | has LicenseArn => (is => 'ro', isa => 'Str', required => 1); | ||
| 9 | has Principals => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1); | ||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | |||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateGrant'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LicenseManager::CreateGrantResponse'); | ||
| 15 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 16 | 1; | ||
| 17 | |||
| 18 | ### main pod documentation begin ### | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Paws::LicenseManager::CreateGrant - Arguments for method CreateGrant on L<Paws::LicenseManager> | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents the parameters used for calling the method CreateGrant on the | ||
| 27 | L<AWS License Manager|Paws::LicenseManager> service. Use the attributes of this class | ||
| 28 | as arguments to method CreateGrant. | ||
| 29 | |||
| 30 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateGrant. | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $license-manager = Paws->service('LicenseManager'); | ||
| 35 | my $CreateGrantResponse = $license -manager->CreateGrant( | ||
| 36 | AllowedOperations => [ | ||
| 37 | 'CreateGrant', | ||
| 38 | ... # values: CreateGrant, CheckoutLicense, CheckoutBorrowLicense, CheckInLicense, ExtendConsumptionLicense, ListPurchasedLicenses, CreateToken | ||
| 39 | ], | ||
| 40 | ClientToken => 'MyClientToken', | ||
| 41 | GrantName => 'MyString', | ||
| 42 | HomeRegion => 'MyString', | ||
| 43 | LicenseArn => 'MyArn', | ||
| 44 | Principals => [ | ||
| 45 | 'MyArn', ... # max: 2048 | ||
| 46 | ], | ||
| 47 | |||
| 48 | ); | ||
| 49 | |||
| 50 | # Results: | ||
| 51 | my $GrantArn = $CreateGrantResponse->GrantArn; | ||
| 52 | my $Status = $CreateGrantResponse->Status; | ||
| 53 | my $Version = $CreateGrantResponse->Version; | ||
| 54 | |||
| 55 | # Returns a L<Paws::LicenseManager::CreateGrantResponse> object. | ||
| 56 | |||
| 57 | 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. | ||
| 58 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/license-manager/CreateGrant> | ||
| 59 | |||
| 60 | =head1 ATTRIBUTES | ||
| 61 | |||
| 62 | |||
| 63 | =head2 B<REQUIRED> AllowedOperations => ArrayRef[Str|Undef] | ||
| 64 | |||
| 65 | Allowed operations for the grant. | ||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | =head2 B<REQUIRED> ClientToken => Str | ||
| 70 | |||
| 71 | Unique, case-sensitive identifier that you provide to ensure the | ||
| 72 | idempotency of the request. | ||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | =head2 B<REQUIRED> GrantName => Str | ||
| 77 | |||
| 78 | Grant name. | ||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | =head2 B<REQUIRED> HomeRegion => Str | ||
| 83 | |||
| 84 | Home Region of the grant. | ||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | =head2 B<REQUIRED> LicenseArn => Str | ||
| 89 | |||
| 90 | Amazon Resource Name (ARN) of the license. | ||
| 91 | |||
| 92 | |||
| 93 | |||
| 94 | =head2 B<REQUIRED> Principals => ArrayRef[Str|Undef] | ||
| 95 | |||
| 96 | The grant principals. | ||
| 97 | |||
| 98 | |||
| 99 | |||
| 100 | |||
| 101 | =head1 SEE ALSO | ||
| 102 | |||
| 103 | This class forms part of L<Paws>, documenting arguments for method CreateGrant in L<Paws::LicenseManager> | ||
| 104 | |||
| 105 | =head1 BUGS and CONTRIBUTIONS | ||
| 106 | |||
| 107 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 108 | |||
| 109 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 110 | |||
| 111 | =cut | ||
| 112 |