« blib/lib/Paws/Lambda/AccountUsage.pm
↑ Summary
blib/lib/Paws/Lambda/AddLayerVersionPermissionResponse.pm »
| 1 | |||
| 2 | package Paws::Lambda::AddLayerVersionPermission; | ||
| 3 | use Moose; | ||
| 4 | has Action => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has LayerName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'LayerName', required => 1); | ||
| 6 | has OrganizationId => (is => 'ro', isa => 'Str'); | ||
| 7 | has Principal => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | has RevisionId => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'RevisionId'); | ||
| 9 | has StatementId => (is => 'ro', isa => 'Str', required => 1); | ||
| 10 | has VersionNumber => (is => 'ro', isa => 'Int', traits => ['ParamInURI'], uri_name => 'VersionNumber', required => 1); | ||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'AddLayerVersionPermission'); | ||
| 15 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy'); | ||
| 16 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 17 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::AddLayerVersionPermissionResponse'); | ||
| 18 | 1; | ||
| 19 | |||
| 20 | ### main pod documentation begin ### | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Paws::Lambda::AddLayerVersionPermission - Arguments for method AddLayerVersionPermission on L<Paws::Lambda> | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This class represents the parameters used for calling the method AddLayerVersionPermission on the | ||
| 29 | L<AWS Lambda|Paws::Lambda> service. Use the attributes of this class | ||
| 30 | as arguments to method AddLayerVersionPermission. | ||
| 31 | |||
| 32 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AddLayerVersionPermission. | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | my $lambda = Paws->service('Lambda'); | ||
| 37 | # To add permissions to a layer version | ||
| 38 | # The following example grants permission for the account 223456789012 to use | ||
| 39 | # version 1 of a layer named my-layer. | ||
| 40 | my $AddLayerVersionPermissionResponse = $lambda->AddLayerVersionPermission( | ||
| 41 | 'Action' => 'lambda:GetLayerVersion', | ||
| 42 | 'LayerName' => 'my-layer', | ||
| 43 | 'Principal' => 223456789012, | ||
| 44 | 'StatementId' => 'xaccount', | ||
| 45 | 'VersionNumber' => 1 | ||
| 46 | ); | ||
| 47 | |||
| 48 | # Results: | ||
| 49 | my $RevisionId = $AddLayerVersionPermissionResponse->RevisionId; | ||
| 50 | my $Statement = $AddLayerVersionPermissionResponse->Statement; | ||
| 51 | |||
| 52 | # Returns a L<Paws::Lambda::AddLayerVersionPermissionResponse> object. | ||
| 53 | |||
| 54 | 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. | ||
| 55 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lambda/AddLayerVersionPermission> | ||
| 56 | |||
| 57 | =head1 ATTRIBUTES | ||
| 58 | |||
| 59 | |||
| 60 | =head2 B<REQUIRED> Action => Str | ||
| 61 | |||
| 62 | The API action that grants access to the layer. For example, | ||
| 63 | C<lambda:GetLayerVersion>. | ||
| 64 | |||
| 65 | |||
| 66 | |||
| 67 | =head2 B<REQUIRED> LayerName => Str | ||
| 68 | |||
| 69 | The name or Amazon Resource Name (ARN) of the layer. | ||
| 70 | |||
| 71 | |||
| 72 | |||
| 73 | =head2 OrganizationId => Str | ||
| 74 | |||
| 75 | With the principal set to C<*>, grant permission to all accounts in the | ||
| 76 | specified organization. | ||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | =head2 B<REQUIRED> Principal => Str | ||
| 81 | |||
| 82 | An account ID, or C<*> to grant layer usage permission to all accounts | ||
| 83 | in an organization, or all Amazon Web Services accounts (if | ||
| 84 | C<organizationId> is not specified). For the last case, make sure that | ||
| 85 | you really do want all Amazon Web Services accounts to have usage | ||
| 86 | permission to this layer. | ||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | =head2 RevisionId => Str | ||
| 91 | |||
| 92 | Only update the policy if the revision ID matches the ID specified. Use | ||
| 93 | this option to avoid modifying a policy that has changed since you last | ||
| 94 | read it. | ||
| 95 | |||
| 96 | |||
| 97 | |||
| 98 | =head2 B<REQUIRED> StatementId => Str | ||
| 99 | |||
| 100 | An identifier that distinguishes the policy from others on the same | ||
| 101 | layer version. | ||
| 102 | |||
| 103 | |||
| 104 | |||
| 105 | =head2 B<REQUIRED> VersionNumber => Int | ||
| 106 | |||
| 107 | The version number. | ||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | =head1 SEE ALSO | ||
| 113 | |||
| 114 | This class forms part of L<Paws>, documenting arguments for method AddLayerVersionPermission in L<Paws::Lambda> | ||
| 115 | |||
| 116 | =head1 BUGS and CONTRIBUTIONS | ||
| 117 | |||
| 118 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 119 | |||
| 120 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 121 | |||
| 122 | =cut | ||
| 123 |