« blib/lib/Paws/Lambda/UpdateCodeSigningConfigResponse.pm
↑ Summary
blib/lib/Paws/Lambda/UpdateFunctionCode.pm »
| 1 | |||
| 2 | package Paws::Lambda::UpdateEventSourceMapping; | ||
| 3 | use Moose; | ||
| 4 | has BatchSize => (is => 'ro', isa => 'Int'); | ||
| 5 | has BisectBatchOnFunctionError => (is => 'ro', isa => 'Bool'); | ||
| 6 | has DestinationConfig => (is => 'ro', isa => 'Paws::Lambda::DestinationConfig'); | ||
| 7 | has Enabled => (is => 'ro', isa => 'Bool'); | ||
| 8 | has FunctionName => (is => 'ro', isa => 'Str'); | ||
| 9 | has FunctionResponseTypes => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); | ||
| 10 | has MaximumBatchingWindowInSeconds => (is => 'ro', isa => 'Int'); | ||
| 11 | has MaximumRecordAgeInSeconds => (is => 'ro', isa => 'Int'); | ||
| 12 | has MaximumRetryAttempts => (is => 'ro', isa => 'Int'); | ||
| 13 | has ParallelizationFactor => (is => 'ro', isa => 'Int'); | ||
| 14 | has SourceAccessConfigurations => (is => 'ro', isa => 'ArrayRef[Paws::Lambda::SourceAccessConfiguration]'); | ||
| 15 | has TumblingWindowInSeconds => (is => 'ro', isa => 'Int'); | ||
| 16 | has UUID => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'UUID', required => 1); | ||
| 17 | |||
| 18 | use MooseX::ClassAttribute; | ||
| 19 | |||
| 20 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateEventSourceMapping'); | ||
| 21 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/2015-03-31/event-source-mappings/{UUID}'); | ||
| 22 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 23 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lambda::EventSourceMappingConfiguration'); | ||
| 24 | 1; | ||
| 25 | |||
| 26 | ### main pod documentation begin ### | ||
| 27 | |||
| 28 | =head1 NAME | ||
| 29 | |||
| 30 | Paws::Lambda::UpdateEventSourceMapping - Arguments for method UpdateEventSourceMapping on L<Paws::Lambda> | ||
| 31 | |||
| 32 | =head1 DESCRIPTION | ||
| 33 | |||
| 34 | This class represents the parameters used for calling the method UpdateEventSourceMapping on the | ||
| 35 | L<AWS Lambda|Paws::Lambda> service. Use the attributes of this class | ||
| 36 | as arguments to method UpdateEventSourceMapping. | ||
| 37 | |||
| 38 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateEventSourceMapping. | ||
| 39 | |||
| 40 | =head1 SYNOPSIS | ||
| 41 | |||
| 42 | my $lambda = Paws->service('Lambda'); | ||
| 43 | # To update a Lambda function event source mapping | ||
| 44 | # This operation updates a Lambda function event source mapping | ||
| 45 | my $EventSourceMappingConfiguration = $lambda->UpdateEventSourceMapping( | ||
| 46 | 'BatchSize' => 123, | ||
| 47 | 'Enabled' => 1, | ||
| 48 | 'FunctionName' => 'myFunction', | ||
| 49 | 'UUID' => '1234xCy789012' | ||
| 50 | ); | ||
| 51 | |||
| 52 | # Results: | ||
| 53 | my $BatchSize = $EventSourceMappingConfiguration->BatchSize; | ||
| 54 | my $EventSourceArn = $EventSourceMappingConfiguration->EventSourceArn; | ||
| 55 | my $FunctionArn = $EventSourceMappingConfiguration->FunctionArn; | ||
| 56 | my $LastModified = $EventSourceMappingConfiguration->LastModified; | ||
| 57 | my $LastProcessingResult = | ||
| 58 | $EventSourceMappingConfiguration->LastProcessingResult; | ||
| 59 | my $State = $EventSourceMappingConfiguration->State; | ||
| 60 | my $StateTransitionReason = | ||
| 61 | $EventSourceMappingConfiguration->StateTransitionReason; | ||
| 62 | my $UUID = $EventSourceMappingConfiguration->UUID; | ||
| 63 | |||
| 64 | # Returns a L<Paws::Lambda::EventSourceMappingConfiguration> object. | ||
| 65 | |||
| 66 | 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. | ||
| 67 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lambda/UpdateEventSourceMapping> | ||
| 68 | |||
| 69 | =head1 ATTRIBUTES | ||
| 70 | |||
| 71 | |||
| 72 | =head2 BatchSize => Int | ||
| 73 | |||
| 74 | The maximum number of items to retrieve in a single batch. | ||
| 75 | |||
| 76 | =over | ||
| 77 | |||
| 78 | =item * | ||
| 79 | |||
| 80 | B<Amazon Kinesis> - Default 100. Max 10,000. | ||
| 81 | |||
| 82 | =item * | ||
| 83 | |||
| 84 | B<Amazon DynamoDB Streams> - Default 100. Max 1,000. | ||
| 85 | |||
| 86 | =item * | ||
| 87 | |||
| 88 | B<Amazon Simple Queue Service> - Default 10. For standard queues the | ||
| 89 | max is 10,000. For FIFO queues the max is 10. | ||
| 90 | |||
| 91 | =item * | ||
| 92 | |||
| 93 | B<Amazon Managed Streaming for Apache Kafka> - Default 100. Max 10,000. | ||
| 94 | |||
| 95 | =item * | ||
| 96 | |||
| 97 | B<Self-Managed Apache Kafka> - Default 100. Max 10,000. | ||
| 98 | |||
| 99 | =back | ||
| 100 | |||
| 101 | |||
| 102 | |||
| 103 | |||
| 104 | =head2 BisectBatchOnFunctionError => Bool | ||
| 105 | |||
| 106 | (Streams only) If the function returns an error, split the batch in two | ||
| 107 | and retry. | ||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | =head2 DestinationConfig => L<Paws::Lambda::DestinationConfig> | ||
| 112 | |||
| 113 | (Streams only) An Amazon SQS queue or Amazon SNS topic destination for | ||
| 114 | discarded records. | ||
| 115 | |||
| 116 | |||
| 117 | |||
| 118 | =head2 Enabled => Bool | ||
| 119 | |||
| 120 | If true, the event source mapping is active. Set to false to pause | ||
| 121 | polling and invocation. | ||
| 122 | |||
| 123 | |||
| 124 | |||
| 125 | =head2 FunctionName => Str | ||
| 126 | |||
| 127 | The name of the Lambda function. | ||
| 128 | |||
| 129 | B<Name formats> | ||
| 130 | |||
| 131 | =over | ||
| 132 | |||
| 133 | =item * | ||
| 134 | |||
| 135 | B<Function name> - C<MyFunction>. | ||
| 136 | |||
| 137 | =item * | ||
| 138 | |||
| 139 | B<Function ARN> - | ||
| 140 | C<arn:aws:lambda:us-west-2:123456789012:function:MyFunction>. | ||
| 141 | |||
| 142 | =item * | ||
| 143 | |||
| 144 | B<Version or Alias ARN> - | ||
| 145 | C<arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD>. | ||
| 146 | |||
| 147 | =item * | ||
| 148 | |||
| 149 | B<Partial ARN> - C<123456789012:function:MyFunction>. | ||
| 150 | |||
| 151 | =back | ||
| 152 | |||
| 153 | The length constraint applies only to the full ARN. If you specify only | ||
| 154 | the function name, it's limited to 64 characters in length. | ||
| 155 | |||
| 156 | |||
| 157 | |||
| 158 | =head2 FunctionResponseTypes => ArrayRef[Str|Undef] | ||
| 159 | |||
| 160 | (Streams only) A list of current response type enums applied to the | ||
| 161 | event source mapping. | ||
| 162 | |||
| 163 | |||
| 164 | |||
| 165 | =head2 MaximumBatchingWindowInSeconds => Int | ||
| 166 | |||
| 167 | (Streams and SQS standard queues) The maximum amount of time to gather | ||
| 168 | records before invoking the function, in seconds. | ||
| 169 | |||
| 170 | |||
| 171 | |||
| 172 | =head2 MaximumRecordAgeInSeconds => Int | ||
| 173 | |||
| 174 | (Streams only) Discard records older than the specified age. The | ||
| 175 | default value is infinite (-1). | ||
| 176 | |||
| 177 | |||
| 178 | |||
| 179 | =head2 MaximumRetryAttempts => Int | ||
| 180 | |||
| 181 | (Streams only) Discard records after the specified number of retries. | ||
| 182 | The default value is infinite (-1). When set to infinite (-1), failed | ||
| 183 | records will be retried until the record expires. | ||
| 184 | |||
| 185 | |||
| 186 | |||
| 187 | =head2 ParallelizationFactor => Int | ||
| 188 | |||
| 189 | (Streams only) The number of batches to process from each shard | ||
| 190 | concurrently. | ||
| 191 | |||
| 192 | |||
| 193 | |||
| 194 | =head2 SourceAccessConfigurations => ArrayRef[L<Paws::Lambda::SourceAccessConfiguration>] | ||
| 195 | |||
| 196 | An array of the authentication protocol, or the VPC components to | ||
| 197 | secure your event source. | ||
| 198 | |||
| 199 | |||
| 200 | |||
| 201 | =head2 TumblingWindowInSeconds => Int | ||
| 202 | |||
| 203 | (Streams only) The duration in seconds of a processing window. The | ||
| 204 | range is between 1 second up to 900 seconds. | ||
| 205 | |||
| 206 | |||
| 207 | |||
| 208 | =head2 B<REQUIRED> UUID => Str | ||
| 209 | |||
| 210 | The identifier of the event source mapping. | ||
| 211 | |||
| 212 | |||
| 213 | |||
| 214 | |||
| 215 | =head1 SEE ALSO | ||
| 216 | |||
| 217 | This class forms part of L<Paws>, documenting arguments for method UpdateEventSourceMapping in L<Paws::Lambda> | ||
| 218 | |||
| 219 | =head1 BUGS and CONTRIBUTIONS | ||
| 220 | |||
| 221 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 222 | |||
| 223 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 224 | |||
| 225 | =cut | ||
| 226 |