aws-sdk-lambda 1.131.0 → 1.133.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -101,6 +101,7 @@ module Aws::Lambda
101
101
  EnvironmentVariables = Shapes::MapShape.new(name: 'EnvironmentVariables')
102
102
  EphemeralStorage = Shapes::StructureShape.new(name: 'EphemeralStorage')
103
103
  EphemeralStorageSize = Shapes::IntegerShape.new(name: 'EphemeralStorageSize')
104
+ EventSourceMappingArn = Shapes::StringShape.new(name: 'EventSourceMappingArn')
104
105
  EventSourceMappingConfiguration = Shapes::StructureShape.new(name: 'EventSourceMappingConfiguration')
105
106
  EventSourceMappingsList = Shapes::ListShape.new(name: 'EventSourceMappingsList')
106
107
  EventSourcePosition = Shapes::StringShape.new(name: 'EventSourcePosition')
@@ -360,6 +361,7 @@ module Aws::Lambda
360
361
  TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
361
362
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
362
363
  TagValue = Shapes::StringShape.new(name: 'TagValue')
364
+ TaggableResource = Shapes::StringShape.new(name: 'TaggableResource')
363
365
  Tags = Shapes::MapShape.new(name: 'Tags')
364
366
  ThrottleReason = Shapes::StringShape.new(name: 'ThrottleReason')
365
367
  Timeout = Shapes::IntegerShape.new(name: 'Timeout')
@@ -511,6 +513,7 @@ module Aws::Lambda
511
513
  CreateCodeSigningConfigRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
512
514
  CreateCodeSigningConfigRequest.add_member(:allowed_publishers, Shapes::ShapeRef.new(shape: AllowedPublishers, required: true, location_name: "AllowedPublishers"))
513
515
  CreateCodeSigningConfigRequest.add_member(:code_signing_policies, Shapes::ShapeRef.new(shape: CodeSigningPolicies, location_name: "CodeSigningPolicies"))
516
+ CreateCodeSigningConfigRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
514
517
  CreateCodeSigningConfigRequest.struct_class = Types::CreateCodeSigningConfigRequest
515
518
 
516
519
  CreateCodeSigningConfigResponse.add_member(:code_signing_config, Shapes::ShapeRef.new(shape: CodeSigningConfig, required: true, location_name: "CodeSigningConfig"))
@@ -529,6 +532,7 @@ module Aws::Lambda
529
532
  CreateEventSourceMappingRequest.add_member(:maximum_record_age_in_seconds, Shapes::ShapeRef.new(shape: MaximumRecordAgeInSeconds, location_name: "MaximumRecordAgeInSeconds"))
530
533
  CreateEventSourceMappingRequest.add_member(:bisect_batch_on_function_error, Shapes::ShapeRef.new(shape: BisectBatchOnFunctionError, location_name: "BisectBatchOnFunctionError"))
531
534
  CreateEventSourceMappingRequest.add_member(:maximum_retry_attempts, Shapes::ShapeRef.new(shape: MaximumRetryAttemptsEventSourceMapping, location_name: "MaximumRetryAttempts"))
535
+ CreateEventSourceMappingRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
532
536
  CreateEventSourceMappingRequest.add_member(:tumbling_window_in_seconds, Shapes::ShapeRef.new(shape: TumblingWindowInSeconds, location_name: "TumblingWindowInSeconds"))
533
537
  CreateEventSourceMappingRequest.add_member(:topics, Shapes::ShapeRef.new(shape: Topics, location_name: "Topics"))
534
538
  CreateEventSourceMappingRequest.add_member(:queues, Shapes::ShapeRef.new(shape: Queues, location_name: "Queues"))
@@ -721,6 +725,7 @@ module Aws::Lambda
721
725
  EventSourceMappingConfiguration.add_member(:document_db_event_source_config, Shapes::ShapeRef.new(shape: DocumentDBEventSourceConfig, location_name: "DocumentDBEventSourceConfig"))
722
726
  EventSourceMappingConfiguration.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
723
727
  EventSourceMappingConfiguration.add_member(:filter_criteria_error, Shapes::ShapeRef.new(shape: FilterCriteriaError, location_name: "FilterCriteriaError"))
728
+ EventSourceMappingConfiguration.add_member(:event_source_mapping_arn, Shapes::ShapeRef.new(shape: EventSourceMappingArn, location_name: "EventSourceMappingArn"))
724
729
  EventSourceMappingConfiguration.struct_class = Types::EventSourceMappingConfiguration
725
730
 
726
731
  EventSourceMappingsList.member = Shapes::ShapeRef.new(shape: EventSourceMappingConfiguration)
@@ -1210,7 +1215,7 @@ module Aws::Lambda
1210
1215
  ListProvisionedConcurrencyConfigsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: String, location_name: "NextMarker"))
1211
1216
  ListProvisionedConcurrencyConfigsResponse.struct_class = Types::ListProvisionedConcurrencyConfigsResponse
1212
1217
 
1213
- ListTagsRequest.add_member(:resource, Shapes::ShapeRef.new(shape: FunctionArn, required: true, location: "uri", location_name: "ARN"))
1218
+ ListTagsRequest.add_member(:resource, Shapes::ShapeRef.new(shape: TaggableResource, required: true, location: "uri", location_name: "ARN"))
1214
1219
  ListTagsRequest.struct_class = Types::ListTagsRequest
1215
1220
 
1216
1221
  ListTagsResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
@@ -1457,7 +1462,7 @@ module Aws::Lambda
1457
1462
 
1458
1463
  TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
1459
1464
 
1460
- TagResourceRequest.add_member(:resource, Shapes::ShapeRef.new(shape: FunctionArn, required: true, location: "uri", location_name: "ARN"))
1465
+ TagResourceRequest.add_member(:resource, Shapes::ShapeRef.new(shape: TaggableResource, required: true, location: "uri", location_name: "ARN"))
1461
1466
  TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
1462
1467
  TagResourceRequest.struct_class = Types::TagResourceRequest
1463
1468
 
@@ -1482,7 +1487,7 @@ module Aws::Lambda
1482
1487
  UnsupportedMediaTypeException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
1483
1488
  UnsupportedMediaTypeException.struct_class = Types::UnsupportedMediaTypeException
1484
1489
 
1485
- UntagResourceRequest.add_member(:resource, Shapes::ShapeRef.new(shape: FunctionArn, required: true, location: "uri", location_name: "ARN"))
1490
+ UntagResourceRequest.add_member(:resource, Shapes::ShapeRef.new(shape: TaggableResource, required: true, location: "uri", location_name: "ARN"))
1486
1491
  UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
1487
1492
  UntagResourceRequest.struct_class = Types::UntagResourceRequest
1488
1493
 
@@ -1635,6 +1640,7 @@ module Aws::Lambda
1635
1640
  o.errors << Shapes::ShapeRef.new(shape: PolicyLengthExceededException)
1636
1641
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1637
1642
  o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
1643
+ o.errors << Shapes::ShapeRef.new(shape: PublicPolicyException)
1638
1644
  end)
1639
1645
 
1640
1646
  api.add_operation(:create_alias, Seahorse::Model::Operation.new.tap do |o|
@@ -2524,6 +2530,7 @@ module Aws::Lambda
2524
2530
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
2525
2531
  o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
2526
2532
  o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
2533
+ o.errors << Shapes::ShapeRef.new(shape: PublicPolicyException)
2527
2534
  end)
2528
2535
 
2529
2536
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -15,11 +15,11 @@ module Aws::Lambda
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::Lambda::EndpointProvider',
17
17
  rbs_type: 'untyped',
18
- docstring: 'The endpoint provider used to resolve endpoints. Any '\
19
- 'object that responds to `#resolve_endpoint(parameters)` '\
20
- 'where `parameters` is a Struct similar to '\
21
- '`Aws::Lambda::EndpointParameters`'
22
- ) do |cfg|
18
+ docstring: <<~DOCS) do |_cfg|
19
+ The endpoint provider used to resolve endpoints. Any object that responds to
20
+ `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
21
+ `Aws::Lambda::EndpointParameters`.
22
+ DOCS
23
23
  Aws::Lambda::EndpointProvider.new
24
24
  end
25
25
 
@@ -51,6 +51,9 @@ module Aws::Lambda
51
51
  if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
52
52
  metrics << 'SIGV4A_SIGNING'
53
53
  end
54
+ if context.config.credentials&.credentials&.account_id
55
+ metrics << 'RESOLVED_ACCOUNT_ID'
56
+ end
54
57
  Aws::Plugins::UserAgent.metric(*metrics, &block)
55
58
  end
56
59
 
@@ -167,10 +167,10 @@ module Aws::Lambda
167
167
  # @return [String]
168
168
  #
169
169
  # @!attribute [rw] principal
170
- # The Amazon Web Servicesservice or Amazon Web Services account that
171
- # invokes the function. If you specify a service, use `SourceArn` or
172
- # `SourceAccount` to limit who can invoke the function through that
173
- # service.
170
+ # The Amazon Web Servicesservice, Amazon Web Services account, IAM
171
+ # user, or IAM role that invokes the function. If you specify a
172
+ # service, use `SourceArn` or `SourceAccount` to limit who can invoke
173
+ # the function through that service.
174
174
  # @return [String]
175
175
  #
176
176
  # @!attribute [rw] source_arn
@@ -625,12 +625,17 @@ module Aws::Lambda
625
625
  # validation checks fail.
626
626
  # @return [Types::CodeSigningPolicies]
627
627
  #
628
+ # @!attribute [rw] tags
629
+ # A list of tags to add to the code signing configuration.
630
+ # @return [Hash<String,String>]
631
+ #
628
632
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateCodeSigningConfigRequest AWS API Documentation
629
633
  #
630
634
  class CreateCodeSigningConfigRequest < Struct.new(
631
635
  :description,
632
636
  :allowed_publishers,
633
- :code_signing_policies)
637
+ :code_signing_policies,
638
+ :tags)
634
639
  SENSITIVE = []
635
640
  include Aws::Structure
636
641
  end
@@ -790,6 +795,10 @@ module Aws::Lambda
790
795
  # record expires.
791
796
  # @return [Integer]
792
797
  #
798
+ # @!attribute [rw] tags
799
+ # A list of tags to apply to the event source mapping.
800
+ # @return [Hash<String,String>]
801
+ #
793
802
  # @!attribute [rw] tumbling_window_in_seconds
794
803
  # (Kinesis and DynamoDB Streams only) The duration in seconds of a
795
804
  # processing window for DynamoDB and Kinesis Streams event sources. A
@@ -870,6 +879,7 @@ module Aws::Lambda
870
879
  :maximum_record_age_in_seconds,
871
880
  :bisect_batch_on_function_error,
872
881
  :maximum_retry_attempts,
882
+ :tags,
873
883
  :tumbling_window_in_seconds,
874
884
  :topics,
875
885
  :queues,
@@ -2039,6 +2049,10 @@ module Aws::Lambda
2039
2049
  # criteria encryption.
2040
2050
  # @return [Types::FilterCriteriaError]
2041
2051
  #
2052
+ # @!attribute [rw] event_source_mapping_arn
2053
+ # The Amazon Resource Name (ARN) of the event source mapping.
2054
+ # @return [String]
2055
+ #
2042
2056
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration AWS API Documentation
2043
2057
  #
2044
2058
  class EventSourceMappingConfiguration < Struct.new(
@@ -2070,7 +2084,8 @@ module Aws::Lambda
2070
2084
  :scaling_config,
2071
2085
  :document_db_event_source_config,
2072
2086
  :kms_key_arn,
2073
- :filter_criteria_error)
2087
+ :filter_criteria_error,
2088
+ :event_source_mapping_arn)
2074
2089
  SENSITIVE = []
2075
2090
  include Aws::Structure
2076
2091
  end
@@ -4746,8 +4761,8 @@ module Aws::Lambda
4746
4761
  end
4747
4762
 
4748
4763
  # @!attribute [rw] resource
4749
- # The function's Amazon Resource Name (ARN). Note: Lambda does not
4750
- # support adding tags to aliases or versions.
4764
+ # The resource's Amazon Resource Name (ARN). Note: Lambda does not
4765
+ # support adding tags to function aliases or versions.
4751
4766
  # @return [String]
4752
4767
  #
4753
4768
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTagsRequest AWS API Documentation
@@ -6250,11 +6265,11 @@ module Aws::Lambda
6250
6265
  end
6251
6266
 
6252
6267
  # @!attribute [rw] resource
6253
- # The function's Amazon Resource Name (ARN).
6268
+ # The resource's Amazon Resource Name (ARN).
6254
6269
  # @return [String]
6255
6270
  #
6256
6271
  # @!attribute [rw] tags
6257
- # A list of tags to apply to the function.
6272
+ # A list of tags to apply to the resource.
6258
6273
  # @return [Hash<String,String>]
6259
6274
  #
6260
6275
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResourceRequest AWS API Documentation
@@ -6348,11 +6363,11 @@ module Aws::Lambda
6348
6363
  end
6349
6364
 
6350
6365
  # @!attribute [rw] resource
6351
- # The function's Amazon Resource Name (ARN).
6366
+ # The resource's Amazon Resource Name (ARN).
6352
6367
  # @return [String]
6353
6368
  #
6354
6369
  # @!attribute [rw] tag_keys
6355
- # A list of tag keys to remove from the function.
6370
+ # A list of tag keys to remove from the resource.
6356
6371
  # @return [Array<String>]
6357
6372
  #
6358
6373
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResourceRequest AWS API Documentation
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-lambda/event_streams'
54
54
  # @!group service
55
55
  module Aws::Lambda
56
56
 
57
- GEM_VERSION = '1.131.0'
57
+ GEM_VERSION = '1.133.0'
58
58
 
59
59
  end
data/sig/client.rbs CHANGED
@@ -15,6 +15,7 @@ module Aws
15
15
  ?credentials: untyped,
16
16
  ?region: String,
17
17
  ?access_key_id: String,
18
+ ?account_id: String,
18
19
  ?active_endpoint_cache: bool,
19
20
  ?adaptive_retry_wait_to_fill: bool,
20
21
  ?client_side_monitoring: bool,
@@ -147,7 +148,8 @@ module Aws
147
148
  },
148
149
  ?code_signing_policies: {
149
150
  untrusted_artifact_on_deployment: ("Warn" | "Enforce")?
150
- }
151
+ },
152
+ ?tags: Hash[::String, ::String]
151
153
  ) -> _CreateCodeSigningConfigResponseSuccess
152
154
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCodeSigningConfigResponseSuccess
153
155
 
@@ -182,6 +184,7 @@ module Aws
182
184
  def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
183
185
  def kms_key_arn: () -> ::String
184
186
  def filter_criteria_error: () -> Types::FilterCriteriaError
187
+ def event_source_mapping_arn: () -> ::String
185
188
  end
186
189
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#create_event_source_mapping-instance_method
187
190
  def create_event_source_mapping: (
@@ -211,6 +214,7 @@ module Aws
211
214
  ?maximum_record_age_in_seconds: ::Integer,
212
215
  ?bisect_batch_on_function_error: bool,
213
216
  ?maximum_retry_attempts: ::Integer,
217
+ ?tags: Hash[::String, ::String],
214
218
  ?tumbling_window_in_seconds: ::Integer,
215
219
  ?topics: Array[::String],
216
220
  ?queues: Array[::String],
@@ -417,6 +421,7 @@ module Aws
417
421
  def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
418
422
  def kms_key_arn: () -> ::String
419
423
  def filter_criteria_error: () -> Types::FilterCriteriaError
424
+ def event_source_mapping_arn: () -> ::String
420
425
  end
421
426
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#delete_event_source_mapping-instance_method
422
427
  def delete_event_source_mapping: (
@@ -545,6 +550,7 @@ module Aws
545
550
  def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
546
551
  def kms_key_arn: () -> ::String
547
552
  def filter_criteria_error: () -> Types::FilterCriteriaError
553
+ def event_source_mapping_arn: () -> ::String
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: (
@@ -1288,6 +1294,7 @@ module Aws
1288
1294
  def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
1289
1295
  def kms_key_arn: () -> ::String
1290
1296
  def filter_criteria_error: () -> Types::FilterCriteriaError
1297
+ def event_source_mapping_arn: () -> ::String
1291
1298
  end
1292
1299
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#update_event_source_mapping-instance_method
1293
1300
  def update_event_source_mapping: (
data/sig/resource.rbs CHANGED
@@ -15,6 +15,7 @@ module Aws
15
15
  ?credentials: untyped,
16
16
  ?region: String,
17
17
  ?access_key_id: String,
18
+ ?account_id: String,
18
19
  ?active_endpoint_cache: bool,
19
20
  ?adaptive_retry_wait_to_fill: bool,
20
21
  ?client_side_monitoring: bool,
data/sig/types.rbs CHANGED
@@ -146,6 +146,7 @@ module Aws::Lambda
146
146
  attr_accessor description: ::String
147
147
  attr_accessor allowed_publishers: Types::AllowedPublishers
148
148
  attr_accessor code_signing_policies: Types::CodeSigningPolicies
149
+ attr_accessor tags: ::Hash[::String, ::String]
149
150
  SENSITIVE: []
150
151
  end
151
152
 
@@ -168,6 +169,7 @@ module Aws::Lambda
168
169
  attr_accessor maximum_record_age_in_seconds: ::Integer
169
170
  attr_accessor bisect_batch_on_function_error: bool
170
171
  attr_accessor maximum_retry_attempts: ::Integer
172
+ attr_accessor tags: ::Hash[::String, ::String]
171
173
  attr_accessor tumbling_window_in_seconds: ::Integer
172
174
  attr_accessor topics: ::Array[::String]
173
175
  attr_accessor queues: ::Array[::String]
@@ -413,6 +415,7 @@ module Aws::Lambda
413
415
  attr_accessor document_db_event_source_config: Types::DocumentDBEventSourceConfig
414
416
  attr_accessor kms_key_arn: ::String
415
417
  attr_accessor filter_criteria_error: Types::FilterCriteriaError
418
+ attr_accessor event_source_mapping_arn: ::String
416
419
  SENSITIVE: []
417
420
  end
418
421
 
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.131.0
4
+ version: 1.133.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-09-17 00:00:00.000000000 Z
11
+ date: 2024-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.205.0
22
+ version: 3.207.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.205.0
32
+ version: 3.207.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement