aws-sdk-lambda 1.142.0 → 1.143.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e5715c1a23a2275e2284d80df69dbd5134c1c43787243d1be6a00861f3dfc59
4
- data.tar.gz: 4a26a48397d4fae836d5c2c60cc29cdfba80797dd008f757d63dd54086a9150b
3
+ metadata.gz: 560998fe09783ada881622dda45306f716d982a61e7dbfbe9eeb9120badc0c0b
4
+ data.tar.gz: 0c29b26e537b8e1287a429c772d31fea0d3ef3b366f15b93d45732288660b50c
5
5
  SHA512:
6
- metadata.gz: b7f16c1a28de87d73db3a99834c0448830b4cdf5c4896d6683657ea15c7840ce7f4c052c89709c479adad6c1f4f3be40afe9b7a6eca5f24bc53c278b391e6dbe
7
- data.tar.gz: c8def99084787ab73125f343d086749343cca68f4d7b9bdca11eb7ced4879c5ec2f1157be77d4be4aa3f2cf834954b7a6c0a045903ff8a84e6aeabf34a8ba9ed
6
+ metadata.gz: 1f407b1c438fbee329e6acf9e992c99341e4bb0ccf332aaf5f9131c5e3e13a00b2676096018eb839a4d576aec720b01cf6a1767178159204aaa352282be738aa
7
+ data.tar.gz: ec05e7dea8aab3b2aa5c52525c49ec3d32c2f3b53904a59c233929e662ed4c66f4681ab96ec31b85875a25acab095088b46abafa3efbb5e402311cd781d6098a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.143.0 (2024-11-21)
5
+ ------------------
6
+
7
+ * Feature - Adds support for metrics for event source mappings for AWS Lambda
8
+
4
9
  1.142.0 (2024-11-20)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.142.0
1
+ 1.143.0
@@ -906,15 +906,12 @@ module Aws::Lambda
906
906
  #
907
907
  # * [ Amazon DocumentDB][7]
908
908
  #
909
- # The following error handling options are available only for stream
910
- # sources (DynamoDB and Kinesis):
909
+ # The following error handling options are available only for DynamoDB
910
+ # and Kinesis event sources:
911
911
  #
912
912
  # * `BisectBatchOnFunctionError` – If the function returns an error,
913
913
  # split the batch in two and retry.
914
914
  #
915
- # * `DestinationConfig` – Send discarded records to an Amazon SQS queue
916
- # or Amazon SNS topic.
917
- #
918
915
  # * `MaximumRecordAgeInSeconds` – Discard records older than the
919
916
  # specified age. The default value is infinite (-1). When set to
920
917
  # infinite (-1), failed records are retried until the record expires
@@ -926,6 +923,14 @@ module Aws::Lambda
926
923
  # * `ParallelizationFactor` – Process multiple batches from each shard
927
924
  # concurrently.
928
925
  #
926
+ # For stream sources (DynamoDB, Kinesis, Amazon MSK, and self-managed
927
+ # Apache Kafka), the following option is also available:
928
+ #
929
+ # * `DestinationConfig` – Send discarded records to an Amazon SQS queue,
930
+ # Amazon SNS topic, or Amazon S3 bucket.
931
+ #
932
+ # ^
933
+ #
929
934
  # For information about which configuration parameters apply to each
930
935
  # event source, see the following topics.
931
936
  #
@@ -1144,6 +1149,14 @@ module Aws::Lambda
1144
1149
  #
1145
1150
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
1146
1151
  #
1152
+ # @option params [Types::EventSourceMappingMetricsConfig] :metrics_config
1153
+ # The metrics configuration for your event source. For more information,
1154
+ # see [Event source mapping metrics][1].
1155
+ #
1156
+ #
1157
+ #
1158
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics
1159
+ #
1147
1160
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1148
1161
  #
1149
1162
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
@@ -1176,6 +1189,7 @@ module Aws::Lambda
1176
1189
  # * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
1177
1190
  # * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
1178
1191
  # * {Types::EventSourceMappingConfiguration#event_source_mapping_arn #event_source_mapping_arn} => String
1192
+ # * {Types::EventSourceMappingConfiguration#metrics_config #metrics_config} => Types::EventSourceMappingMetricsConfig
1179
1193
  #
1180
1194
  #
1181
1195
  # @example Example: To create a mapping between an event source and an AWS Lambda function
@@ -1261,6 +1275,9 @@ module Aws::Lambda
1261
1275
  # full_document: "UpdateLookup", # accepts UpdateLookup, Default
1262
1276
  # },
1263
1277
  # kms_key_arn: "KMSKeyArn",
1278
+ # metrics_config: {
1279
+ # metrics: ["EventCount"], # accepts EventCount
1280
+ # },
1264
1281
  # })
1265
1282
  #
1266
1283
  # @example Response structure
@@ -1307,6 +1324,8 @@ module Aws::Lambda
1307
1324
  # resp.filter_criteria_error.error_code #=> String
1308
1325
  # resp.filter_criteria_error.message #=> String
1309
1326
  # resp.event_source_mapping_arn #=> String
1327
+ # resp.metrics_config.metrics #=> Array
1328
+ # resp.metrics_config.metrics[0] #=> String, one of "EventCount"
1310
1329
  #
1311
1330
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping AWS API Documentation
1312
1331
  #
@@ -2066,6 +2085,7 @@ module Aws::Lambda
2066
2085
  # * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
2067
2086
  # * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
2068
2087
  # * {Types::EventSourceMappingConfiguration#event_source_mapping_arn #event_source_mapping_arn} => String
2088
+ # * {Types::EventSourceMappingConfiguration#metrics_config #metrics_config} => Types::EventSourceMappingMetricsConfig
2069
2089
  #
2070
2090
  #
2071
2091
  # @example Example: To delete a Lambda function event source mapping
@@ -2137,6 +2157,8 @@ module Aws::Lambda
2137
2157
  # resp.filter_criteria_error.error_code #=> String
2138
2158
  # resp.filter_criteria_error.message #=> String
2139
2159
  # resp.event_source_mapping_arn #=> String
2160
+ # resp.metrics_config.metrics #=> Array
2161
+ # resp.metrics_config.metrics[0] #=> String, one of "EventCount"
2140
2162
  #
2141
2163
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping AWS API Documentation
2142
2164
  #
@@ -2673,6 +2695,7 @@ module Aws::Lambda
2673
2695
  # * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
2674
2696
  # * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
2675
2697
  # * {Types::EventSourceMappingConfiguration#event_source_mapping_arn #event_source_mapping_arn} => String
2698
+ # * {Types::EventSourceMappingConfiguration#metrics_config #metrics_config} => Types::EventSourceMappingMetricsConfig
2676
2699
  #
2677
2700
  #
2678
2701
  # @example Example: To get a Lambda function's event source mapping
@@ -2751,6 +2774,8 @@ module Aws::Lambda
2751
2774
  # resp.filter_criteria_error.error_code #=> String
2752
2775
  # resp.filter_criteria_error.message #=> String
2753
2776
  # resp.event_source_mapping_arn #=> String
2777
+ # resp.metrics_config.metrics #=> Array
2778
+ # resp.metrics_config.metrics[0] #=> String, one of "EventCount"
2754
2779
  #
2755
2780
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping AWS API Documentation
2756
2781
  #
@@ -4595,6 +4620,8 @@ module Aws::Lambda
4595
4620
  # resp.event_source_mappings[0].filter_criteria_error.error_code #=> String
4596
4621
  # resp.event_source_mappings[0].filter_criteria_error.message #=> String
4597
4622
  # resp.event_source_mappings[0].event_source_mapping_arn #=> String
4623
+ # resp.event_source_mappings[0].metrics_config.metrics #=> Array
4624
+ # resp.event_source_mappings[0].metrics_config.metrics[0] #=> String, one of "EventCount"
4598
4625
  #
4599
4626
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings AWS API Documentation
4600
4627
  #
@@ -6046,12 +6073,17 @@ module Aws::Lambda
6046
6073
  # retain discarded events, configure a dead-letter queue with
6047
6074
  # UpdateFunctionConfiguration.
6048
6075
  #
6049
- # To send an invocation record to a queue, topic, function, or event
6050
- # bus, specify a [destination][2]. You can configure separate
6076
+ # To send an invocation record to a queue, topic, S3 bucket, function,
6077
+ # or event bus, specify a [destination][2]. You can configure separate
6051
6078
  # destinations for successful invocations (on-success) and events that
6052
6079
  # fail all processing attempts (on-failure). You can configure
6053
6080
  # destinations in addition to or instead of a dead-letter queue.
6054
6081
  #
6082
+ # <note markdown="1"> S3 buckets are supported only for on-failure destinations. To retain
6083
+ # records of successful invocations, use another destination type.
6084
+ #
6085
+ # </note>
6086
+ #
6055
6087
  #
6056
6088
  #
6057
6089
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html
@@ -6095,10 +6127,17 @@ module Aws::Lambda
6095
6127
  #
6096
6128
  # * **Queue** - The ARN of a standard SQS queue.
6097
6129
  #
6130
+ # * **Bucket** - The ARN of an Amazon S3 bucket.
6131
+ #
6098
6132
  # * **Topic** - The ARN of a standard SNS topic.
6099
6133
  #
6100
6134
  # * **Event Bus** - The ARN of an Amazon EventBridge event bus.
6101
6135
  #
6136
+ # <note markdown="1"> S3 buckets are supported only for on-failure destinations. To retain
6137
+ # records of successful invocations, use another destination type.
6138
+ #
6139
+ # </note>
6140
+ #
6102
6141
  # @return [Types::FunctionEventInvokeConfig] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6103
6142
  #
6104
6143
  # * {Types::FunctionEventInvokeConfig#last_modified #last_modified} => Time
@@ -6819,15 +6858,12 @@ module Aws::Lambda
6819
6858
  #
6820
6859
  # * [ Amazon DocumentDB][7]
6821
6860
  #
6822
- # The following error handling options are available only for stream
6823
- # sources (DynamoDB and Kinesis):
6861
+ # The following error handling options are available only for DynamoDB
6862
+ # and Kinesis event sources:
6824
6863
  #
6825
6864
  # * `BisectBatchOnFunctionError` – If the function returns an error,
6826
6865
  # split the batch in two and retry.
6827
6866
  #
6828
- # * `DestinationConfig` – Send discarded records to an Amazon SQS queue
6829
- # or Amazon SNS topic.
6830
- #
6831
6867
  # * `MaximumRecordAgeInSeconds` – Discard records older than the
6832
6868
  # specified age. The default value is infinite (-1). When set to
6833
6869
  # infinite (-1), failed records are retried until the record expires
@@ -6839,6 +6875,14 @@ module Aws::Lambda
6839
6875
  # * `ParallelizationFactor` – Process multiple batches from each shard
6840
6876
  # concurrently.
6841
6877
  #
6878
+ # For stream sources (DynamoDB, Kinesis, Amazon MSK, and self-managed
6879
+ # Apache Kafka), the following option is also available:
6880
+ #
6881
+ # * `DestinationConfig` – Send discarded records to an Amazon SQS queue,
6882
+ # Amazon SNS topic, or Amazon S3 bucket.
6883
+ #
6884
+ # ^
6885
+ #
6842
6886
  # For information about which configuration parameters apply to each
6843
6887
  # event source, see the following topics.
6844
6888
  #
@@ -7008,6 +7052,14 @@ module Aws::Lambda
7008
7052
  #
7009
7053
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
7010
7054
  #
7055
+ # @option params [Types::EventSourceMappingMetricsConfig] :metrics_config
7056
+ # The metrics configuration for your event source. For more information,
7057
+ # see [Event source mapping metrics][1].
7058
+ #
7059
+ #
7060
+ #
7061
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics
7062
+ #
7011
7063
  # @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7012
7064
  #
7013
7065
  # * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
@@ -7040,6 +7092,7 @@ module Aws::Lambda
7040
7092
  # * {Types::EventSourceMappingConfiguration#kms_key_arn #kms_key_arn} => String
7041
7093
  # * {Types::EventSourceMappingConfiguration#filter_criteria_error #filter_criteria_error} => Types::FilterCriteriaError
7042
7094
  # * {Types::EventSourceMappingConfiguration#event_source_mapping_arn #event_source_mapping_arn} => String
7095
+ # * {Types::EventSourceMappingConfiguration#metrics_config #metrics_config} => Types::EventSourceMappingMetricsConfig
7043
7096
  #
7044
7097
  #
7045
7098
  # @example Example: To update a Lambda function event source mapping
@@ -7109,6 +7162,9 @@ module Aws::Lambda
7109
7162
  # full_document: "UpdateLookup", # accepts UpdateLookup, Default
7110
7163
  # },
7111
7164
  # kms_key_arn: "KMSKeyArn",
7165
+ # metrics_config: {
7166
+ # metrics: ["EventCount"], # accepts EventCount
7167
+ # },
7112
7168
  # })
7113
7169
  #
7114
7170
  # @example Response structure
@@ -7155,6 +7211,8 @@ module Aws::Lambda
7155
7211
  # resp.filter_criteria_error.error_code #=> String
7156
7212
  # resp.filter_criteria_error.message #=> String
7157
7213
  # resp.event_source_mapping_arn #=> String
7214
+ # resp.metrics_config.metrics #=> Array
7215
+ # resp.metrics_config.metrics[0] #=> String, one of "EventCount"
7158
7216
  #
7159
7217
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping AWS API Documentation
7160
7218
  #
@@ -7864,10 +7922,17 @@ module Aws::Lambda
7864
7922
  #
7865
7923
  # * **Queue** - The ARN of a standard SQS queue.
7866
7924
  #
7925
+ # * **Bucket** - The ARN of an Amazon S3 bucket.
7926
+ #
7867
7927
  # * **Topic** - The ARN of a standard SNS topic.
7868
7928
  #
7869
7929
  # * **Event Bus** - The ARN of an Amazon EventBridge event bus.
7870
7930
  #
7931
+ # <note markdown="1"> S3 buckets are supported only for on-failure destinations. To retain
7932
+ # records of successful invocations, use another destination type.
7933
+ #
7934
+ # </note>
7935
+ #
7871
7936
  # @return [Types::FunctionEventInvokeConfig] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7872
7937
  #
7873
7938
  # * {Types::FunctionEventInvokeConfig#last_modified #last_modified} => Time
@@ -8071,7 +8136,7 @@ module Aws::Lambda
8071
8136
  tracer: tracer
8072
8137
  )
8073
8138
  context[:gem_name] = 'aws-sdk-lambda'
8074
- context[:gem_version] = '1.142.0'
8139
+ context[:gem_version] = '1.143.0'
8075
8140
  Seahorse::Client::Request.new(handlers, context)
8076
8141
  end
8077
8142
 
@@ -103,6 +103,9 @@ module Aws::Lambda
103
103
  EphemeralStorageSize = Shapes::IntegerShape.new(name: 'EphemeralStorageSize')
104
104
  EventSourceMappingArn = Shapes::StringShape.new(name: 'EventSourceMappingArn')
105
105
  EventSourceMappingConfiguration = Shapes::StructureShape.new(name: 'EventSourceMappingConfiguration')
106
+ EventSourceMappingMetric = Shapes::StringShape.new(name: 'EventSourceMappingMetric')
107
+ EventSourceMappingMetricList = Shapes::ListShape.new(name: 'EventSourceMappingMetricList')
108
+ EventSourceMappingMetricsConfig = Shapes::StructureShape.new(name: 'EventSourceMappingMetricsConfig')
106
109
  EventSourceMappingsList = Shapes::ListShape.new(name: 'EventSourceMappingsList')
107
110
  EventSourcePosition = Shapes::StringShape.new(name: 'EventSourcePosition')
108
111
  EventSourceToken = Shapes::StringShape.new(name: 'EventSourceToken')
@@ -533,6 +536,7 @@ module Aws::Lambda
533
536
  CreateEventSourceMappingRequest.add_member(:scaling_config, Shapes::ShapeRef.new(shape: ScalingConfig, location_name: "ScalingConfig"))
534
537
  CreateEventSourceMappingRequest.add_member(:document_db_event_source_config, Shapes::ShapeRef.new(shape: DocumentDBEventSourceConfig, location_name: "DocumentDBEventSourceConfig"))
535
538
  CreateEventSourceMappingRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
539
+ CreateEventSourceMappingRequest.add_member(:metrics_config, Shapes::ShapeRef.new(shape: EventSourceMappingMetricsConfig, location_name: "MetricsConfig"))
536
540
  CreateEventSourceMappingRequest.struct_class = Types::CreateEventSourceMappingRequest
537
541
 
538
542
  CreateFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "FunctionName"))
@@ -711,8 +715,14 @@ module Aws::Lambda
711
715
  EventSourceMappingConfiguration.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
712
716
  EventSourceMappingConfiguration.add_member(:filter_criteria_error, Shapes::ShapeRef.new(shape: FilterCriteriaError, location_name: "FilterCriteriaError"))
713
717
  EventSourceMappingConfiguration.add_member(:event_source_mapping_arn, Shapes::ShapeRef.new(shape: EventSourceMappingArn, location_name: "EventSourceMappingArn"))
718
+ EventSourceMappingConfiguration.add_member(:metrics_config, Shapes::ShapeRef.new(shape: EventSourceMappingMetricsConfig, location_name: "MetricsConfig"))
714
719
  EventSourceMappingConfiguration.struct_class = Types::EventSourceMappingConfiguration
715
720
 
721
+ EventSourceMappingMetricList.member = Shapes::ShapeRef.new(shape: EventSourceMappingMetric)
722
+
723
+ EventSourceMappingMetricsConfig.add_member(:metrics, Shapes::ShapeRef.new(shape: EventSourceMappingMetricList, location_name: "Metrics"))
724
+ EventSourceMappingMetricsConfig.struct_class = Types::EventSourceMappingMetricsConfig
725
+
716
726
  EventSourceMappingsList.member = Shapes::ShapeRef.new(shape: EventSourceMappingConfiguration)
717
727
 
718
728
  FileSystemConfig.add_member(:arn, Shapes::ShapeRef.new(shape: FileSystemArn, required: true, location_name: "Arn"))
@@ -1480,6 +1490,7 @@ module Aws::Lambda
1480
1490
  UpdateEventSourceMappingRequest.add_member(:scaling_config, Shapes::ShapeRef.new(shape: ScalingConfig, location_name: "ScalingConfig"))
1481
1491
  UpdateEventSourceMappingRequest.add_member(:document_db_event_source_config, Shapes::ShapeRef.new(shape: DocumentDBEventSourceConfig, location_name: "DocumentDBEventSourceConfig"))
1482
1492
  UpdateEventSourceMappingRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
1493
+ UpdateEventSourceMappingRequest.add_member(:metrics_config, Shapes::ShapeRef.new(shape: EventSourceMappingMetricsConfig, location_name: "MetricsConfig"))
1483
1494
  UpdateEventSourceMappingRequest.struct_class = Types::UpdateEventSourceMappingRequest
1484
1495
 
1485
1496
  UpdateFunctionCodeRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
@@ -863,6 +863,15 @@ module Aws::Lambda
863
863
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
864
864
  # @return [String]
865
865
  #
866
+ # @!attribute [rw] metrics_config
867
+ # The metrics configuration for your event source. For more
868
+ # information, see [Event source mapping metrics][1].
869
+ #
870
+ #
871
+ #
872
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics
873
+ # @return [Types::EventSourceMappingMetricsConfig]
874
+ #
866
875
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest AWS API Documentation
867
876
  #
868
877
  class CreateEventSourceMappingRequest < Struct.new(
@@ -890,7 +899,8 @@ module Aws::Lambda
890
899
  :self_managed_kafka_event_source_config,
891
900
  :scaling_config,
892
901
  :document_db_event_source_config,
893
- :kms_key_arn)
902
+ :kms_key_arn,
903
+ :metrics_config)
894
904
  SENSITIVE = []
895
905
  include Aws::Structure
896
906
  end
@@ -2047,6 +2057,15 @@ module Aws::Lambda
2047
2057
  # The Amazon Resource Name (ARN) of the event source mapping.
2048
2058
  # @return [String]
2049
2059
  #
2060
+ # @!attribute [rw] metrics_config
2061
+ # The metrics configuration for your event source. For more
2062
+ # information, see [Event source mapping metrics][1].
2063
+ #
2064
+ #
2065
+ #
2066
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics
2067
+ # @return [Types::EventSourceMappingMetricsConfig]
2068
+ #
2050
2069
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration AWS API Documentation
2051
2070
  #
2052
2071
  class EventSourceMappingConfiguration < Struct.new(
@@ -2079,7 +2098,32 @@ module Aws::Lambda
2079
2098
  :document_db_event_source_config,
2080
2099
  :kms_key_arn,
2081
2100
  :filter_criteria_error,
2082
- :event_source_mapping_arn)
2101
+ :event_source_mapping_arn,
2102
+ :metrics_config)
2103
+ SENSITIVE = []
2104
+ include Aws::Structure
2105
+ end
2106
+
2107
+ # The metrics configuration for your event source. Use this
2108
+ # configuration object to define which metrics you want your event
2109
+ # source mapping to produce.
2110
+ #
2111
+ # @!attribute [rw] metrics
2112
+ # The metrics you want your event source mapping to produce. Include
2113
+ # `EventCount` to receive event source mapping metrics related to the
2114
+ # number of events processed by your event source mapping. For more
2115
+ # information about these metrics, see [ Event source mapping
2116
+ # metrics][1].
2117
+ #
2118
+ #
2119
+ #
2120
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics
2121
+ # @return [Array<String>]
2122
+ #
2123
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingMetricsConfig AWS API Documentation
2124
+ #
2125
+ class EventSourceMappingMetricsConfig < Struct.new(
2126
+ :metrics)
2083
2127
  SENSITIVE = []
2084
2128
  include Aws::Structure
2085
2129
  end
@@ -2566,9 +2610,16 @@ module Aws::Lambda
2566
2610
  #
2567
2611
  # * **Queue** - The ARN of a standard SQS queue.
2568
2612
  #
2613
+ # * **Bucket** - The ARN of an Amazon S3 bucket.
2614
+ #
2569
2615
  # * **Topic** - The ARN of a standard SNS topic.
2570
2616
  #
2571
2617
  # * **Event Bus** - The ARN of an Amazon EventBridge event bus.
2618
+ #
2619
+ # <note markdown="1"> S3 buckets are supported only for on-failure destinations. To retain
2620
+ # records of successful invocations, use another destination type.
2621
+ #
2622
+ # </note>
2572
2623
  # @return [Types::DestinationConfig]
2573
2624
  #
2574
2625
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionEventInvokeConfig AWS API Documentation
@@ -4874,24 +4925,23 @@ module Aws::Lambda
4874
4925
  # @!attribute [rw] destination
4875
4926
  # The Amazon Resource Name (ARN) of the destination resource.
4876
4927
  #
4877
- # To retain records of [asynchronous invocations][1], you can
4878
- # configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or
4879
- # Amazon EventBridge event bus as the destination.
4928
+ # To retain records of unsuccessful [asynchronous invocations][1], you
4929
+ # can configure an Amazon SNS topic, Amazon SQS queue, Amazon S3
4930
+ # bucket, Lambda function, or Amazon EventBridge event bus as the
4931
+ # destination.
4880
4932
  #
4881
- # To retain records of failed invocations from [Kinesis and DynamoDB
4882
- # event sources][2], you can configure an Amazon SNS topic or Amazon
4883
- # SQS queue as the destination.
4884
- #
4885
- # To retain records of failed invocations from [self-managed Kafka][3]
4886
- # or [Amazon MSK][4], you can configure an Amazon SNS topic, Amazon
4887
- # SQS queue, or Amazon S3 bucket as the destination.
4933
+ # To retain records of failed invocations from [Kinesis][2],
4934
+ # [DynamoDB][3], [self-managed Kafka][4] or [Amazon MSK][5], you can
4935
+ # configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket
4936
+ # as the destination.
4888
4937
  #
4889
4938
  #
4890
4939
  #
4891
4940
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations
4892
- # [2]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#event-source-mapping-destinations
4893
- # [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination
4894
- # [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination
4941
+ # [2]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
4942
+ # [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
4943
+ # [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination
4944
+ # [5]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination
4895
4945
  # @return [String]
4896
4946
  #
4897
4947
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/OnFailure AWS API Documentation
@@ -4904,6 +4954,14 @@ module Aws::Lambda
4904
4954
 
4905
4955
  # A destination for events that were processed successfully.
4906
4956
  #
4957
+ # To retain records of successful [asynchronous invocations][1], you can
4958
+ # configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or
4959
+ # Amazon EventBridge event bus as the destination.
4960
+ #
4961
+ #
4962
+ #
4963
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations
4964
+ #
4907
4965
  # @!attribute [rw] destination
4908
4966
  # The Amazon Resource Name (ARN) of the destination resource.
4909
4967
  # @return [String]
@@ -5346,9 +5404,16 @@ module Aws::Lambda
5346
5404
  #
5347
5405
  # * **Queue** - The ARN of a standard SQS queue.
5348
5406
  #
5407
+ # * **Bucket** - The ARN of an Amazon S3 bucket.
5408
+ #
5349
5409
  # * **Topic** - The ARN of a standard SNS topic.
5350
5410
  #
5351
5411
  # * **Event Bus** - The ARN of an Amazon EventBridge event bus.
5412
+ #
5413
+ # <note markdown="1"> S3 buckets are supported only for on-failure destinations. To retain
5414
+ # records of successful invocations, use another destination type.
5415
+ #
5416
+ # </note>
5352
5417
  # @return [Types::DestinationConfig]
5353
5418
  #
5354
5419
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionEventInvokeConfigRequest AWS API Documentation
@@ -6494,6 +6559,15 @@ module Aws::Lambda
6494
6559
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
6495
6560
  # @return [String]
6496
6561
  #
6562
+ # @!attribute [rw] metrics_config
6563
+ # The metrics configuration for your event source. For more
6564
+ # information, see [Event source mapping metrics][1].
6565
+ #
6566
+ #
6567
+ #
6568
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics
6569
+ # @return [Types::EventSourceMappingMetricsConfig]
6570
+ #
6497
6571
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMappingRequest AWS API Documentation
6498
6572
  #
6499
6573
  class UpdateEventSourceMappingRequest < Struct.new(
@@ -6513,7 +6587,8 @@ module Aws::Lambda
6513
6587
  :function_response_types,
6514
6588
  :scaling_config,
6515
6589
  :document_db_event_source_config,
6516
- :kms_key_arn)
6590
+ :kms_key_arn,
6591
+ :metrics_config)
6517
6592
  SENSITIVE = []
6518
6593
  include Aws::Structure
6519
6594
  end
@@ -6877,9 +6952,16 @@ module Aws::Lambda
6877
6952
  #
6878
6953
  # * **Queue** - The ARN of a standard SQS queue.
6879
6954
  #
6955
+ # * **Bucket** - The ARN of an Amazon S3 bucket.
6956
+ #
6880
6957
  # * **Topic** - The ARN of a standard SNS topic.
6881
6958
  #
6882
6959
  # * **Event Bus** - The ARN of an Amazon EventBridge event bus.
6960
+ #
6961
+ # <note markdown="1"> S3 buckets are supported only for on-failure destinations. To retain
6962
+ # records of successful invocations, use another destination type.
6963
+ #
6964
+ # </note>
6883
6965
  # @return [Types::DestinationConfig]
6884
6966
  #
6885
6967
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionEventInvokeConfigRequest AWS API Documentation
@@ -56,7 +56,7 @@ module Aws::Lambda
56
56
  autoload :Endpoints, 'aws-sdk-lambda/endpoints'
57
57
  autoload :EventStreams, 'aws-sdk-lambda/event_streams'
58
58
 
59
- GEM_VERSION = '1.142.0'
59
+ GEM_VERSION = '1.143.0'
60
60
 
61
61
  end
62
62
 
data/sig/client.rbs CHANGED
@@ -185,6 +185,7 @@ module Aws
185
185
  def kms_key_arn: () -> ::String
186
186
  def filter_criteria_error: () -> Types::FilterCriteriaError
187
187
  def event_source_mapping_arn: () -> ::String
188
+ def metrics_config: () -> Types::EventSourceMappingMetricsConfig
188
189
  end
189
190
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#create_event_source_mapping-instance_method
190
191
  def create_event_source_mapping: (
@@ -242,7 +243,10 @@ module Aws
242
243
  collection_name: ::String?,
243
244
  full_document: ("UpdateLookup" | "Default")?
244
245
  },
245
- ?kms_key_arn: ::String
246
+ ?kms_key_arn: ::String,
247
+ ?metrics_config: {
248
+ metrics: Array[("EventCount")]?
249
+ }
246
250
  ) -> _CreateEventSourceMappingResponseSuccess
247
251
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateEventSourceMappingResponseSuccess
248
252
 
@@ -423,6 +427,7 @@ module Aws
423
427
  def kms_key_arn: () -> ::String
424
428
  def filter_criteria_error: () -> Types::FilterCriteriaError
425
429
  def event_source_mapping_arn: () -> ::String
430
+ def metrics_config: () -> Types::EventSourceMappingMetricsConfig
426
431
  end
427
432
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#delete_event_source_mapping-instance_method
428
433
  def delete_event_source_mapping: (
@@ -545,6 +550,7 @@ module Aws
545
550
  def kms_key_arn: () -> ::String
546
551
  def filter_criteria_error: () -> Types::FilterCriteriaError
547
552
  def event_source_mapping_arn: () -> ::String
553
+ def metrics_config: () -> Types::EventSourceMappingMetricsConfig
548
554
  end
549
555
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_event_source_mapping-instance_method
550
556
  def get_event_source_mapping: (
@@ -1242,6 +1248,7 @@ module Aws
1242
1248
  def kms_key_arn: () -> ::String
1243
1249
  def filter_criteria_error: () -> Types::FilterCriteriaError
1244
1250
  def event_source_mapping_arn: () -> ::String
1251
+ def metrics_config: () -> Types::EventSourceMappingMetricsConfig
1245
1252
  end
1246
1253
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#update_event_source_mapping-instance_method
1247
1254
  def update_event_source_mapping: (
@@ -1285,7 +1292,10 @@ module Aws
1285
1292
  collection_name: ::String?,
1286
1293
  full_document: ("UpdateLookup" | "Default")?
1287
1294
  },
1288
- ?kms_key_arn: ::String
1295
+ ?kms_key_arn: ::String,
1296
+ ?metrics_config: {
1297
+ metrics: Array[("EventCount")]?
1298
+ }
1289
1299
  ) -> _UpdateEventSourceMappingResponseSuccess
1290
1300
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEventSourceMappingResponseSuccess
1291
1301
 
data/sig/types.rbs CHANGED
@@ -181,6 +181,7 @@ module Aws::Lambda
181
181
  attr_accessor scaling_config: Types::ScalingConfig
182
182
  attr_accessor document_db_event_source_config: Types::DocumentDBEventSourceConfig
183
183
  attr_accessor kms_key_arn: ::String
184
+ attr_accessor metrics_config: Types::EventSourceMappingMetricsConfig
184
185
  SENSITIVE: []
185
186
  end
186
187
 
@@ -410,6 +411,12 @@ module Aws::Lambda
410
411
  attr_accessor kms_key_arn: ::String
411
412
  attr_accessor filter_criteria_error: Types::FilterCriteriaError
412
413
  attr_accessor event_source_mapping_arn: ::String
414
+ attr_accessor metrics_config: Types::EventSourceMappingMetricsConfig
415
+ SENSITIVE: []
416
+ end
417
+
418
+ class EventSourceMappingMetricsConfig
419
+ attr_accessor metrics: ::Array[("EventCount")]
413
420
  SENSITIVE: []
414
421
  end
415
422
 
@@ -1401,6 +1408,7 @@ module Aws::Lambda
1401
1408
  attr_accessor scaling_config: Types::ScalingConfig
1402
1409
  attr_accessor document_db_event_source_config: Types::DocumentDBEventSourceConfig
1403
1410
  attr_accessor kms_key_arn: ::String
1411
+ attr_accessor metrics_config: Types::EventSourceMappingMetricsConfig
1404
1412
  SENSITIVE: []
1405
1413
  end
1406
1414
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lambda
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.142.0
4
+ version: 1.143.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-20 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core