aws-sdk-lambda 1.136.0 → 1.144.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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')
@@ -252,11 +255,13 @@ module Aws::Lambda
252
255
  MaximumBatchingWindowInSeconds = Shapes::IntegerShape.new(name: 'MaximumBatchingWindowInSeconds')
253
256
  MaximumConcurrency = Shapes::IntegerShape.new(name: 'MaximumConcurrency')
254
257
  MaximumEventAgeInSeconds = Shapes::IntegerShape.new(name: 'MaximumEventAgeInSeconds')
258
+ MaximumNumberOfPollers = Shapes::IntegerShape.new(name: 'MaximumNumberOfPollers')
255
259
  MaximumRecordAgeInSeconds = Shapes::IntegerShape.new(name: 'MaximumRecordAgeInSeconds')
256
260
  MaximumRetryAttempts = Shapes::IntegerShape.new(name: 'MaximumRetryAttempts')
257
261
  MaximumRetryAttemptsEventSourceMapping = Shapes::IntegerShape.new(name: 'MaximumRetryAttemptsEventSourceMapping')
258
262
  MemorySize = Shapes::IntegerShape.new(name: 'MemorySize')
259
263
  Method = Shapes::StringShape.new(name: 'Method')
264
+ MinimumNumberOfPollers = Shapes::IntegerShape.new(name: 'MinimumNumberOfPollers')
260
265
  NameSpacedFunctionArn = Shapes::StringShape.new(name: 'NameSpacedFunctionArn')
261
266
  NamespacedFunctionName = Shapes::StringShape.new(name: 'NamespacedFunctionName')
262
267
  NamespacedStatementId = Shapes::StringShape.new(name: 'NamespacedStatementId')
@@ -278,6 +283,7 @@ module Aws::Lambda
278
283
  ProvisionedConcurrencyConfigListItem = Shapes::StructureShape.new(name: 'ProvisionedConcurrencyConfigListItem')
279
284
  ProvisionedConcurrencyConfigNotFoundException = Shapes::StructureShape.new(name: 'ProvisionedConcurrencyConfigNotFoundException')
280
285
  ProvisionedConcurrencyStatusEnum = Shapes::StringShape.new(name: 'ProvisionedConcurrencyStatusEnum')
286
+ ProvisionedPollerConfig = Shapes::StructureShape.new(name: 'ProvisionedPollerConfig')
281
287
  PublishLayerVersionRequest = Shapes::StructureShape.new(name: 'PublishLayerVersionRequest')
282
288
  PublishLayerVersionResponse = Shapes::StructureShape.new(name: 'PublishLayerVersionResponse')
283
289
  PublishVersionRequest = Shapes::StructureShape.new(name: 'PublishVersionRequest')
@@ -349,6 +355,9 @@ module Aws::Lambda
349
355
  TagValue = Shapes::StringShape.new(name: 'TagValue')
350
356
  TaggableResource = Shapes::StringShape.new(name: 'TaggableResource')
351
357
  Tags = Shapes::MapShape.new(name: 'Tags')
358
+ TagsError = Shapes::StructureShape.new(name: 'TagsError')
359
+ TagsErrorCode = Shapes::StringShape.new(name: 'TagsErrorCode')
360
+ TagsErrorMessage = Shapes::StringShape.new(name: 'TagsErrorMessage')
352
361
  ThrottleReason = Shapes::StringShape.new(name: 'ThrottleReason')
353
362
  Timeout = Shapes::IntegerShape.new(name: 'Timeout')
354
363
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
@@ -530,6 +539,8 @@ module Aws::Lambda
530
539
  CreateEventSourceMappingRequest.add_member(:scaling_config, Shapes::ShapeRef.new(shape: ScalingConfig, location_name: "ScalingConfig"))
531
540
  CreateEventSourceMappingRequest.add_member(:document_db_event_source_config, Shapes::ShapeRef.new(shape: DocumentDBEventSourceConfig, location_name: "DocumentDBEventSourceConfig"))
532
541
  CreateEventSourceMappingRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
542
+ CreateEventSourceMappingRequest.add_member(:metrics_config, Shapes::ShapeRef.new(shape: EventSourceMappingMetricsConfig, location_name: "MetricsConfig"))
543
+ CreateEventSourceMappingRequest.add_member(:provisioned_poller_config, Shapes::ShapeRef.new(shape: ProvisionedPollerConfig, location_name: "ProvisionedPollerConfig"))
533
544
  CreateEventSourceMappingRequest.struct_class = Types::CreateEventSourceMappingRequest
534
545
 
535
546
  CreateFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "FunctionName"))
@@ -708,8 +719,15 @@ module Aws::Lambda
708
719
  EventSourceMappingConfiguration.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
709
720
  EventSourceMappingConfiguration.add_member(:filter_criteria_error, Shapes::ShapeRef.new(shape: FilterCriteriaError, location_name: "FilterCriteriaError"))
710
721
  EventSourceMappingConfiguration.add_member(:event_source_mapping_arn, Shapes::ShapeRef.new(shape: EventSourceMappingArn, location_name: "EventSourceMappingArn"))
722
+ EventSourceMappingConfiguration.add_member(:metrics_config, Shapes::ShapeRef.new(shape: EventSourceMappingMetricsConfig, location_name: "MetricsConfig"))
723
+ EventSourceMappingConfiguration.add_member(:provisioned_poller_config, Shapes::ShapeRef.new(shape: ProvisionedPollerConfig, location_name: "ProvisionedPollerConfig"))
711
724
  EventSourceMappingConfiguration.struct_class = Types::EventSourceMappingConfiguration
712
725
 
726
+ EventSourceMappingMetricList.member = Shapes::ShapeRef.new(shape: EventSourceMappingMetric)
727
+
728
+ EventSourceMappingMetricsConfig.add_member(:metrics, Shapes::ShapeRef.new(shape: EventSourceMappingMetricList, location_name: "Metrics"))
729
+ EventSourceMappingMetricsConfig.struct_class = Types::EventSourceMappingMetricsConfig
730
+
713
731
  EventSourceMappingsList.member = Shapes::ShapeRef.new(shape: EventSourceMappingConfiguration)
714
732
 
715
733
  FileSystemConfig.add_member(:arn, Shapes::ShapeRef.new(shape: FileSystemArn, required: true, location_name: "Arn"))
@@ -737,12 +755,14 @@ module Aws::Lambda
737
755
  FunctionCode.add_member(:s3_key, Shapes::ShapeRef.new(shape: S3Key, location_name: "S3Key"))
738
756
  FunctionCode.add_member(:s3_object_version, Shapes::ShapeRef.new(shape: S3ObjectVersion, location_name: "S3ObjectVersion"))
739
757
  FunctionCode.add_member(:image_uri, Shapes::ShapeRef.new(shape: String, location_name: "ImageUri"))
758
+ FunctionCode.add_member(:source_kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "SourceKMSKeyArn"))
740
759
  FunctionCode.struct_class = Types::FunctionCode
741
760
 
742
761
  FunctionCodeLocation.add_member(:repository_type, Shapes::ShapeRef.new(shape: String, location_name: "RepositoryType"))
743
762
  FunctionCodeLocation.add_member(:location, Shapes::ShapeRef.new(shape: String, location_name: "Location"))
744
763
  FunctionCodeLocation.add_member(:image_uri, Shapes::ShapeRef.new(shape: String, location_name: "ImageUri"))
745
764
  FunctionCodeLocation.add_member(:resolved_image_uri, Shapes::ShapeRef.new(shape: String, location_name: "ResolvedImageUri"))
765
+ FunctionCodeLocation.add_member(:source_kms_key_arn, Shapes::ShapeRef.new(shape: String, location_name: "SourceKMSKeyArn"))
746
766
  FunctionCodeLocation.struct_class = Types::FunctionCodeLocation
747
767
 
748
768
  FunctionConfiguration.add_member(:function_name, Shapes::ShapeRef.new(shape: NamespacedFunctionName, location_name: "FunctionName"))
@@ -860,6 +880,7 @@ module Aws::Lambda
860
880
  GetFunctionResponse.add_member(:configuration, Shapes::ShapeRef.new(shape: FunctionConfiguration, location_name: "Configuration"))
861
881
  GetFunctionResponse.add_member(:code, Shapes::ShapeRef.new(shape: FunctionCodeLocation, location_name: "Code"))
862
882
  GetFunctionResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
883
+ GetFunctionResponse.add_member(:tags_error, Shapes::ShapeRef.new(shape: TagsError, location_name: "TagsError"))
863
884
  GetFunctionResponse.add_member(:concurrency, Shapes::ShapeRef.new(shape: Concurrency, location_name: "Concurrency"))
864
885
  GetFunctionResponse.struct_class = Types::GetFunctionResponse
865
886
 
@@ -1234,6 +1255,10 @@ module Aws::Lambda
1234
1255
  ProvisionedConcurrencyConfigNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
1235
1256
  ProvisionedConcurrencyConfigNotFoundException.struct_class = Types::ProvisionedConcurrencyConfigNotFoundException
1236
1257
 
1258
+ ProvisionedPollerConfig.add_member(:minimum_pollers, Shapes::ShapeRef.new(shape: MinimumNumberOfPollers, location_name: "MinimumPollers"))
1259
+ ProvisionedPollerConfig.add_member(:maximum_pollers, Shapes::ShapeRef.new(shape: MaximumNumberOfPollers, location_name: "MaximumPollers"))
1260
+ ProvisionedPollerConfig.struct_class = Types::ProvisionedPollerConfig
1261
+
1237
1262
  PublishLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
1238
1263
  PublishLayerVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
1239
1264
  PublishLayerVersionRequest.add_member(:content, Shapes::ShapeRef.new(shape: LayerVersionContentInput, required: true, location_name: "Content"))
@@ -1414,6 +1439,10 @@ module Aws::Lambda
1414
1439
  Tags.key = Shapes::ShapeRef.new(shape: TagKey)
1415
1440
  Tags.value = Shapes::ShapeRef.new(shape: TagValue)
1416
1441
 
1442
+ TagsError.add_member(:error_code, Shapes::ShapeRef.new(shape: TagsErrorCode, required: true, location_name: "ErrorCode"))
1443
+ TagsError.add_member(:message, Shapes::ShapeRef.new(shape: TagsErrorMessage, required: true, location_name: "Message"))
1444
+ TagsError.struct_class = Types::TagsError
1445
+
1417
1446
  TooManyRequestsException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Retry-After"))
1418
1447
  TooManyRequestsException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
1419
1448
  TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
@@ -1470,6 +1499,8 @@ module Aws::Lambda
1470
1499
  UpdateEventSourceMappingRequest.add_member(:scaling_config, Shapes::ShapeRef.new(shape: ScalingConfig, location_name: "ScalingConfig"))
1471
1500
  UpdateEventSourceMappingRequest.add_member(:document_db_event_source_config, Shapes::ShapeRef.new(shape: DocumentDBEventSourceConfig, location_name: "DocumentDBEventSourceConfig"))
1472
1501
  UpdateEventSourceMappingRequest.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "KMSKeyArn"))
1502
+ UpdateEventSourceMappingRequest.add_member(:metrics_config, Shapes::ShapeRef.new(shape: EventSourceMappingMetricsConfig, location_name: "MetricsConfig"))
1503
+ UpdateEventSourceMappingRequest.add_member(:provisioned_poller_config, Shapes::ShapeRef.new(shape: ProvisionedPollerConfig, location_name: "ProvisionedPollerConfig"))
1473
1504
  UpdateEventSourceMappingRequest.struct_class = Types::UpdateEventSourceMappingRequest
1474
1505
 
1475
1506
  UpdateFunctionCodeRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
@@ -1482,6 +1513,7 @@ module Aws::Lambda
1482
1513
  UpdateFunctionCodeRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
1483
1514
  UpdateFunctionCodeRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
1484
1515
  UpdateFunctionCodeRequest.add_member(:architectures, Shapes::ShapeRef.new(shape: ArchitecturesList, location_name: "Architectures"))
1516
+ UpdateFunctionCodeRequest.add_member(:source_kms_key_arn, Shapes::ShapeRef.new(shape: KMSKeyArn, location_name: "SourceKMSKeyArn"))
1485
1517
  UpdateFunctionCodeRequest.struct_class = Types::UpdateFunctionCodeRequest
1486
1518
 
1487
1519
  UpdateFunctionConfigurationRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
@@ -52,15 +52,18 @@ module Aws::Lambda
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
- if self[:use_dual_stack].nil?
56
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
- end
58
55
  self[:use_fips] = options[:use_fips]
59
56
  self[:use_fips] = false if self[:use_fips].nil?
60
- if self[:use_fips].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
- end
63
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end