« blib/lib/Paws/Lambda/PutFunctionCodeSigningConfigResponse.pm
↑ Summary
blib/lib/Paws/Lambda/PutFunctionEventInvokeConfig.pm »
| 1 | |||
| 2 | package Paws::Lambda::PutFunctionConcurrency; | ||
| 3 | use Moose; | ||
| 4 | has FunctionName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FunctionName', required => 1); | ||
| 5 | has ReservedConcurrentExecutions => (is => 'ro', isa => 'Int', required => 1); | ||
| 6 | |||
| 7 | use MooseX::ClassAttribute; | ||
| 8 | |||
| 9 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutFunctionConcurrency'); | ||
| 10 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2017-10-31/functions/{FunctionName}/concurrency'); | ||
| 11 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 12 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::Concurrency'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::Lambda::PutFunctionConcurrency - Arguments for method PutFunctionConcurrency on L<Paws::Lambda> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method PutFunctionConcurrency on the | ||
| 24 | L<AWS Lambda|Paws::Lambda> service. Use the attributes of this class | ||
| 25 | as arguments to method PutFunctionConcurrency. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutFunctionConcurrency. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $lambda = Paws->service('Lambda'); | ||
| 32 | # To configure a reserved concurrency limit for a function | ||
| 33 | # The following example configures 100 reserved concurrent executions for the | ||
| 34 | # my-function function. | ||
| 35 | my $Concurrency = $lambda->PutFunctionConcurrency( | ||
| 36 | 'FunctionName' => 'my-function', | ||
| 37 | 'ReservedConcurrentExecutions' => 100 | ||
| 38 | ); | ||
| 39 | |||
| 40 | # Results: | ||
| 41 | my $ReservedConcurrentExecutions = | ||
| 42 | $Concurrency->ReservedConcurrentExecutions; | ||
| 43 | |||
| 44 | # Returns a L<Paws::Lambda::Concurrency> object. | ||
| 45 | |||
| 46 | 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. | ||
| 47 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lambda/PutFunctionConcurrency> | ||
| 48 | |||
| 49 | =head1 ATTRIBUTES | ||
| 50 | |||
| 51 | |||
| 52 | =head2 B<REQUIRED> FunctionName => Str | ||
| 53 | |||
| 54 | The name of the Lambda function. | ||
| 55 | |||
| 56 | B<Name formats> | ||
| 57 | |||
| 58 | =over | ||
| 59 | |||
| 60 | =item * | ||
| 61 | |||
| 62 | B<Function name> - C<my-function>. | ||
| 63 | |||
| 64 | =item * | ||
| 65 | |||
| 66 | B<Function ARN> - | ||
| 67 | C<arn:aws:lambda:us-west-2:123456789012:function:my-function>. | ||
| 68 | |||
| 69 | =item * | ||
| 70 | |||
| 71 | B<Partial ARN> - C<123456789012:function:my-function>. | ||
| 72 | |||
| 73 | =back | ||
| 74 | |||
| 75 | The length constraint applies only to the full ARN. If you specify only | ||
| 76 | the function name, it is limited to 64 characters in length. | ||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | =head2 B<REQUIRED> ReservedConcurrentExecutions => Int | ||
| 81 | |||
| 82 | The number of simultaneous executions to reserve for the function. | ||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | |||
| 87 | =head1 SEE ALSO | ||
| 88 | |||
| 89 | This class forms part of L<Paws>, documenting arguments for method PutFunctionConcurrency in L<Paws::Lambda> | ||
| 90 | |||
| 91 | =head1 BUGS and CONTRIBUTIONS | ||
| 92 | |||
| 93 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 94 | |||
| 95 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 96 | |||
| 97 | =cut | ||
| 98 |