« blib/lib/Paws/Lambda/UpdateFunctionConfiguration.pm
↑ Summary
blib/lib/Paws/Lambda/VpcConfigResponse.pm »
| 1 | |||
| 2 | package Paws::Lambda::UpdateFunctionEventInvokeConfig; | ||
| 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 => 'UpdateFunctionEventInvokeConfig'); | ||
| 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 => 'POST'); | ||
| 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::UpdateFunctionEventInvokeConfig - Arguments for method UpdateFunctionEventInvokeConfig on L<Paws::Lambda> | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This class represents the parameters used for calling the method UpdateFunctionEventInvokeConfig on the | ||
| 27 | L<AWS Lambda|Paws::Lambda> service. Use the attributes of this class | ||
| 28 | as arguments to method UpdateFunctionEventInvokeConfig. | ||
| 29 | |||
| 30 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateFunctionEventInvokeConfig. | ||
| 31 | |||
| 32 | =head1 SYNOPSIS | ||
| 33 | |||
| 34 | my $lambda = Paws->service('Lambda'); | ||
| 35 | # To update an asynchronous invocation configuration | ||
| 36 | # The following example adds an on-failure destination to the existing | ||
| 37 | # asynchronous invocation configuration for a function named my-function. | ||
| 38 | my $FunctionEventInvokeConfig = $lambda->UpdateFunctionEventInvokeConfig( | ||
| 39 | 'DestinationConfig' => { | ||
| 40 | 'OnFailure' => { | ||
| 41 | 'Destination' => 'arn:aws:sqs:us-east-2:123456789012:destination' | ||
| 42 | } | ||
| 43 | }, | ||
| 44 | 'FunctionName' => 'my-function' | ||
| 45 | ); | ||
| 46 | |||
| 47 | # Results: | ||
| 48 | my $DestinationConfig = $FunctionEventInvokeConfig->DestinationConfig; | ||
| 49 | my $FunctionArn = $FunctionEventInvokeConfig->FunctionArn; | ||
| 50 | my $LastModified = $FunctionEventInvokeConfig->LastModified; | ||
| 51 | my $MaximumEventAgeInSeconds = | ||
| 52 | $FunctionEventInvokeConfig->MaximumEventAgeInSeconds; | ||
| 53 | my $MaximumRetryAttempts = $FunctionEventInvokeConfig->MaximumRetryAttempts; | ||
| 54 | |||
| 55 | # Returns a L<Paws::Lambda::FunctionEventInvokeConfig> 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/lambda/UpdateFunctionEventInvokeConfig> | ||
| 59 | |||
| 60 | =head1 ATTRIBUTES | ||
| 61 | |||
| 62 | |||
| 63 | =head2 DestinationConfig => L<Paws::Lambda::DestinationConfig> | ||
| 64 | |||
| 65 | A destination for events after they have been sent to a function for | ||
| 66 | processing. | ||
| 67 | |||
| 68 | B<Destinations> | ||
| 69 | |||
| 70 | =over | ||
| 71 | |||
| 72 | =item * | ||
| 73 | |||
| 74 | B<Function> - The Amazon Resource Name (ARN) of a Lambda function. | ||
| 75 | |||
| 76 | =item * | ||
| 77 | |||
| 78 | B<Queue> - The ARN of an SQS queue. | ||
| 79 | |||
| 80 | =item * | ||
| 81 | |||
| 82 | B<Topic> - The ARN of an SNS topic. | ||
| 83 | |||
| 84 | =item * | ||
| 85 | |||
| 86 | B<Event Bus> - The ARN of an Amazon EventBridge event bus. | ||
| 87 | |||
| 88 | =back | ||
| 89 | |||
| 90 | |||
| 91 | |||
| 92 | |||
| 93 | =head2 B<REQUIRED> FunctionName => Str | ||
| 94 | |||
| 95 | The name of the Lambda function, version, or alias. | ||
| 96 | |||
| 97 | B<Name formats> | ||
| 98 | |||
| 99 | =over | ||
| 100 | |||
| 101 | =item * | ||
| 102 | |||
| 103 | B<Function name> - C<my-function> (name-only), C<my-function:v1> (with | ||
| 104 | alias). | ||
| 105 | |||
| 106 | =item * | ||
| 107 | |||
| 108 | B<Function ARN> - | ||
| 109 | C<arn:aws:lambda:us-west-2:123456789012:function:my-function>. | ||
| 110 | |||
| 111 | =item * | ||
| 112 | |||
| 113 | B<Partial ARN> - C<123456789012:function:my-function>. | ||
| 114 | |||
| 115 | =back | ||
| 116 | |||
| 117 | You can append a version number or alias to any of the formats. The | ||
| 118 | length constraint applies only to the full ARN. If you specify only the | ||
| 119 | function name, it is limited to 64 characters in length. | ||
| 120 | |||
| 121 | |||
| 122 | |||
| 123 | =head2 MaximumEventAgeInSeconds => Int | ||
| 124 | |||
| 125 | The maximum age of a request that Lambda sends to a function for | ||
| 126 | processing. | ||
| 127 | |||
| 128 | |||
| 129 | |||
| 130 | =head2 MaximumRetryAttempts => Int | ||
| 131 | |||
| 132 | The maximum number of times to retry when the function returns an | ||
| 133 | error. | ||
| 134 | |||
| 135 | |||
| 136 | |||
| 137 | =head2 Qualifier => Str | ||
| 138 | |||
| 139 | A version number or alias name. | ||
| 140 | |||
| 141 | |||
| 142 | |||
| 143 | |||
| 144 | =head1 SEE ALSO | ||
| 145 | |||
| 146 | This class forms part of L<Paws>, documenting arguments for method UpdateFunctionEventInvokeConfig in L<Paws::Lambda> | ||
| 147 | |||
| 148 | =head1 BUGS and CONTRIBUTIONS | ||
| 149 | |||
| 150 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 151 | |||
| 152 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 153 | |||
| 154 | =cut | ||
| 155 |