« blib/lib/Paws/Lambda/PutFunctionConcurrency.pm
↑ Summary
blib/lib/Paws/Lambda/PutProvisionedConcurrencyConfig.pm »
| 1 | |||
| 2 | package Paws::Lambda::PutFunctionEventInvokeConfig; | ||
| 3 | use Moose; | ||
| 4 | has DestinationConfig => (is => 'ro', isa => 'Paws::Lambda::DestinationConfig'); | ||
| 5 | has FunctionName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'FunctionName', required => 1); | ||
| 6 | has MaximumEventAgeInSeconds => (is => 'ro', isa => 'Int'); | ||
| 7 | has MaximumRetryAttempts => (is => 'ro', isa => 'Int'); | ||
| 8 | has Qualifier => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'Qualifier'); | ||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutFunctionEventInvokeConfig'); | ||
| 13 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2019-09-25/functions/{FunctionName}/event-invoke-config'); | ||
| 14 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::FunctionEventInvokeConfig'); | ||
| 16 | 1; | ||
| 17 | |||
| 18 | ### main pod documentation begin ### | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Paws::Lambda::PutFunctionEventInvokeConfig - Arguments for method PutFunctionEventInvokeConfig on L<Paws::Lambda> | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents the parameters used for calling the method PutFunctionEventInvokeConfig on the | ||
| 27 | L<AWS Lambda|Paws::Lambda> service. Use the attributes of this class | ||
| 28 | as arguments to method PutFunctionEventInvokeConfig. | ||
| 29 | |||
| 30 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutFunctionEventInvokeConfig. | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $lambda = Paws->service('Lambda'); | ||
| 35 | # To configure error handling for asynchronous invocation | ||
| 36 | # The following example sets a maximum event age of one hour and disables | ||
| 37 | # retries for the specified function. | ||
| 38 | my $FunctionEventInvokeConfig = $lambda->PutFunctionEventInvokeConfig( | ||
| 39 | 'FunctionName' => 'my-function', | ||
| 40 | 'MaximumEventAgeInSeconds' => 3600, | ||
| 41 | 'MaximumRetryAttempts' => 0 | ||
| 42 | ); | ||
| 43 | |||
| 44 | # Results: | ||
| 45 | my $DestinationConfig = $FunctionEventInvokeConfig->DestinationConfig; | ||
| 46 | my $FunctionArn = $FunctionEventInvokeConfig->FunctionArn; | ||
| 47 | my $LastModified = $FunctionEventInvokeConfig->LastModified; | ||
| 48 | my $MaximumEventAgeInSeconds = | ||
| 49 | $FunctionEventInvokeConfig->MaximumEventAgeInSeconds; | ||
| 50 | my $MaximumRetryAttempts = $FunctionEventInvokeConfig->MaximumRetryAttempts; | ||
| 51 | |||
| 52 | # Returns a L<Paws::Lambda::FunctionEventInvokeConfig> 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/PutFunctionEventInvokeConfig> | ||
| 56 | |||
| 57 | =head1 ATTRIBUTES | ||
| 58 | |||
| 59 | |||
| 60 | =head2 DestinationConfig => L<Paws::Lambda::DestinationConfig> | ||
| 61 | |||
| 62 | A destination for events after they have been sent to a function for | ||
| 63 | processing. | ||
| 64 | |||
| 65 | B<Destinations> | ||
| 66 | |||
| 67 | =over | ||
| 68 | |||
| 69 | =item * | ||
| 70 | |||
| 71 | B<Function> - The Amazon Resource Name (ARN) of a Lambda function. | ||
| 72 | |||
| 73 | =item * | ||
| 74 | |||
| 75 | B<Queue> - The ARN of an SQS queue. | ||
| 76 | |||
| 77 | =item * | ||
| 78 | |||
| 79 | B<Topic> - The ARN of an SNS topic. | ||
| 80 | |||
| 81 | =item * | ||
| 82 | |||
| 83 | B<Event Bus> - The ARN of an Amazon EventBridge event bus. | ||
| 84 | |||
| 85 | =back | ||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | =head2 B<REQUIRED> FunctionName => Str | ||
| 91 | |||
| 92 | The name of the Lambda function, version, or alias. | ||
| 93 | |||
| 94 | B<Name formats> | ||
| 95 | |||
| 96 | =over | ||
| 97 | |||
| 98 | =item * | ||
| 99 | |||
| 100 | B<Function name> - C<my-function> (name-only), C<my-function:v1> (with | ||
| 101 | alias). | ||
| 102 | |||
| 103 | =item * | ||
| 104 | |||
| 105 | B<Function ARN> - | ||
| 106 | C<arn:aws:lambda:us-west-2:123456789012:function:my-function>. | ||
| 107 | |||
| 108 | =item * | ||
| 109 | |||
| 110 | B<Partial ARN> - C<123456789012:function:my-function>. | ||
| 111 | |||
| 112 | =back | ||
| 113 | |||
| 114 | You can append a version number or alias to any of the formats. The | ||
| 115 | length constraint applies only to the full ARN. If you specify only the | ||
| 116 | function name, it is limited to 64 characters in length. | ||
| 117 | |||
| 118 | |||
| 119 | |||
| 120 | =head2 MaximumEventAgeInSeconds => Int | ||
| 121 | |||
| 122 | The maximum age of a request that Lambda sends to a function for | ||
| 123 | processing. | ||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | =head2 MaximumRetryAttempts => Int | ||
| 128 | |||
| 129 | The maximum number of times to retry when the function returns an | ||
| 130 | error. | ||
| 131 | |||
| 132 | |||
| 133 | |||
| 134 | =head2 Qualifier => Str | ||
| 135 | |||
| 136 | A version number or alias name. | ||
| 137 | |||
| 138 | |||
| 139 | |||
| 140 | |||
| 141 | =head1 SEE ALSO | ||
| 142 | |||
| 143 | This class forms part of L<Paws>, documenting arguments for method PutFunctionEventInvokeConfig in L<Paws::Lambda> | ||
| 144 | |||
| 145 | =head1 BUGS and CONTRIBUTIONS | ||
| 146 | |||
| 147 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 148 | |||
| 149 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 150 | |||
| 151 | =cut | ||
| 152 |