aws-sdk-lambda 1.91.0 → 1.93.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +432 -84
- data/lib/aws-sdk-lambda/client_api.rb +91 -1
- data/lib/aws-sdk-lambda/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-lambda/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-lambda/endpoints.rb +14 -0
- data/lib/aws-sdk-lambda/event_streams.rb +54 -0
- data/lib/aws-sdk-lambda/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-lambda/types.rb +469 -99
- data/lib/aws-sdk-lambda.rb +2 -1
- metadata +3 -2
@@ -48,6 +48,7 @@ module Aws::Lambda
|
|
48
48
|
CodeSigningPolicy = Shapes::StringShape.new(name: 'CodeSigningPolicy')
|
49
49
|
CodeStorageExceededException = Shapes::StructureShape.new(name: 'CodeStorageExceededException')
|
50
50
|
CodeVerificationFailedException = Shapes::StructureShape.new(name: 'CodeVerificationFailedException')
|
51
|
+
CollectionName = Shapes::StringShape.new(name: 'CollectionName')
|
51
52
|
CompatibleArchitectures = Shapes::ListShape.new(name: 'CompatibleArchitectures')
|
52
53
|
CompatibleRuntimes = Shapes::ListShape.new(name: 'CompatibleRuntimes')
|
53
54
|
Concurrency = Shapes::StructureShape.new(name: 'Concurrency')
|
@@ -59,6 +60,7 @@ module Aws::Lambda
|
|
59
60
|
CreateFunctionRequest = Shapes::StructureShape.new(name: 'CreateFunctionRequest')
|
60
61
|
CreateFunctionUrlConfigRequest = Shapes::StructureShape.new(name: 'CreateFunctionUrlConfigRequest')
|
61
62
|
CreateFunctionUrlConfigResponse = Shapes::StructureShape.new(name: 'CreateFunctionUrlConfigResponse')
|
63
|
+
DatabaseName = Shapes::StringShape.new(name: 'DatabaseName')
|
62
64
|
Date = Shapes::TimestampShape.new(name: 'Date')
|
63
65
|
DeadLetterConfig = Shapes::StructureShape.new(name: 'DeadLetterConfig')
|
64
66
|
DeleteAliasRequest = Shapes::StructureShape.new(name: 'DeleteAliasRequest')
|
@@ -75,6 +77,7 @@ module Aws::Lambda
|
|
75
77
|
Description = Shapes::StringShape.new(name: 'Description')
|
76
78
|
DestinationArn = Shapes::StringShape.new(name: 'DestinationArn')
|
77
79
|
DestinationConfig = Shapes::StructureShape.new(name: 'DestinationConfig')
|
80
|
+
DocumentDBEventSourceConfig = Shapes::StructureShape.new(name: 'DocumentDBEventSourceConfig')
|
78
81
|
EC2AccessDeniedException = Shapes::StructureShape.new(name: 'EC2AccessDeniedException')
|
79
82
|
EC2ThrottledException = Shapes::StructureShape.new(name: 'EC2ThrottledException')
|
80
83
|
EC2UnexpectedException = Shapes::StructureShape.new(name: 'EC2UnexpectedException')
|
@@ -106,6 +109,7 @@ module Aws::Lambda
|
|
106
109
|
Filter = Shapes::StructureShape.new(name: 'Filter')
|
107
110
|
FilterCriteria = Shapes::StructureShape.new(name: 'FilterCriteria')
|
108
111
|
FilterList = Shapes::ListShape.new(name: 'FilterList')
|
112
|
+
FullDocument = Shapes::StringShape.new(name: 'FullDocument')
|
109
113
|
FunctionArn = Shapes::StringShape.new(name: 'FunctionArn')
|
110
114
|
FunctionArnList = Shapes::ListShape.new(name: 'FunctionArnList')
|
111
115
|
FunctionCode = Shapes::StructureShape.new(name: 'FunctionCode')
|
@@ -170,6 +174,12 @@ module Aws::Lambda
|
|
170
174
|
InvocationType = Shapes::StringShape.new(name: 'InvocationType')
|
171
175
|
InvokeAsyncRequest = Shapes::StructureShape.new(name: 'InvokeAsyncRequest')
|
172
176
|
InvokeAsyncResponse = Shapes::StructureShape.new(name: 'InvokeAsyncResponse')
|
177
|
+
InvokeMode = Shapes::StringShape.new(name: 'InvokeMode')
|
178
|
+
InvokeResponseStreamUpdate = Shapes::StructureShape.new(name: 'InvokeResponseStreamUpdate')
|
179
|
+
InvokeWithResponseStreamCompleteEvent = Shapes::StructureShape.new(name: 'InvokeWithResponseStreamCompleteEvent')
|
180
|
+
InvokeWithResponseStreamRequest = Shapes::StructureShape.new(name: 'InvokeWithResponseStreamRequest')
|
181
|
+
InvokeWithResponseStreamResponse = Shapes::StructureShape.new(name: 'InvokeWithResponseStreamResponse')
|
182
|
+
InvokeWithResponseStreamResponseEvent = Shapes::StructureShape.new(name: 'InvokeWithResponseStreamResponseEvent')
|
173
183
|
KMSAccessDeniedException = Shapes::StructureShape.new(name: 'KMSAccessDeniedException')
|
174
184
|
KMSDisabledException = Shapes::StructureShape.new(name: 'KMSDisabledException')
|
175
185
|
KMSInvalidStateException = Shapes::StructureShape.new(name: 'KMSInvalidStateException')
|
@@ -279,6 +289,7 @@ module Aws::Lambda
|
|
279
289
|
ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
|
280
290
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
281
291
|
ResourceNotReadyException = Shapes::StructureShape.new(name: 'ResourceNotReadyException')
|
292
|
+
ResponseStreamingInvocationType = Shapes::StringShape.new(name: 'ResponseStreamingInvocationType')
|
282
293
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
283
294
|
Runtime = Shapes::StringShape.new(name: 'Runtime')
|
284
295
|
RuntimeVersionArn = Shapes::StringShape.new(name: 'RuntimeVersionArn')
|
@@ -496,6 +507,7 @@ module Aws::Lambda
|
|
496
507
|
CreateEventSourceMappingRequest.add_member(:amazon_managed_kafka_event_source_config, Shapes::ShapeRef.new(shape: AmazonManagedKafkaEventSourceConfig, location_name: "AmazonManagedKafkaEventSourceConfig"))
|
497
508
|
CreateEventSourceMappingRequest.add_member(:self_managed_kafka_event_source_config, Shapes::ShapeRef.new(shape: SelfManagedKafkaEventSourceConfig, location_name: "SelfManagedKafkaEventSourceConfig"))
|
498
509
|
CreateEventSourceMappingRequest.add_member(:scaling_config, Shapes::ShapeRef.new(shape: ScalingConfig, location_name: "ScalingConfig"))
|
510
|
+
CreateEventSourceMappingRequest.add_member(:document_db_event_source_config, Shapes::ShapeRef.new(shape: DocumentDBEventSourceConfig, location_name: "DocumentDBEventSourceConfig"))
|
499
511
|
CreateEventSourceMappingRequest.struct_class = Types::CreateEventSourceMappingRequest
|
500
512
|
|
501
513
|
CreateFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "FunctionName"))
|
@@ -527,6 +539,7 @@ module Aws::Lambda
|
|
527
539
|
CreateFunctionUrlConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: FunctionUrlQualifier, location: "querystring", location_name: "Qualifier"))
|
528
540
|
CreateFunctionUrlConfigRequest.add_member(:auth_type, Shapes::ShapeRef.new(shape: FunctionUrlAuthType, required: true, location_name: "AuthType"))
|
529
541
|
CreateFunctionUrlConfigRequest.add_member(:cors, Shapes::ShapeRef.new(shape: Cors, location_name: "Cors"))
|
542
|
+
CreateFunctionUrlConfigRequest.add_member(:invoke_mode, Shapes::ShapeRef.new(shape: InvokeMode, location_name: "InvokeMode"))
|
530
543
|
CreateFunctionUrlConfigRequest.struct_class = Types::CreateFunctionUrlConfigRequest
|
531
544
|
|
532
545
|
CreateFunctionUrlConfigResponse.add_member(:function_url, Shapes::ShapeRef.new(shape: FunctionUrl, required: true, location_name: "FunctionUrl"))
|
@@ -534,6 +547,7 @@ module Aws::Lambda
|
|
534
547
|
CreateFunctionUrlConfigResponse.add_member(:auth_type, Shapes::ShapeRef.new(shape: FunctionUrlAuthType, required: true, location_name: "AuthType"))
|
535
548
|
CreateFunctionUrlConfigResponse.add_member(:cors, Shapes::ShapeRef.new(shape: Cors, location_name: "Cors"))
|
536
549
|
CreateFunctionUrlConfigResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreationTime"))
|
550
|
+
CreateFunctionUrlConfigResponse.add_member(:invoke_mode, Shapes::ShapeRef.new(shape: InvokeMode, location_name: "InvokeMode"))
|
537
551
|
CreateFunctionUrlConfigResponse.struct_class = Types::CreateFunctionUrlConfigResponse
|
538
552
|
|
539
553
|
DeadLetterConfig.add_member(:target_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "TargetArn"))
|
@@ -581,6 +595,11 @@ module Aws::Lambda
|
|
581
595
|
DestinationConfig.add_member(:on_failure, Shapes::ShapeRef.new(shape: OnFailure, location_name: "OnFailure"))
|
582
596
|
DestinationConfig.struct_class = Types::DestinationConfig
|
583
597
|
|
598
|
+
DocumentDBEventSourceConfig.add_member(:database_name, Shapes::ShapeRef.new(shape: DatabaseName, location_name: "DatabaseName"))
|
599
|
+
DocumentDBEventSourceConfig.add_member(:collection_name, Shapes::ShapeRef.new(shape: CollectionName, location_name: "CollectionName"))
|
600
|
+
DocumentDBEventSourceConfig.add_member(:full_document, Shapes::ShapeRef.new(shape: FullDocument, location_name: "FullDocument"))
|
601
|
+
DocumentDBEventSourceConfig.struct_class = Types::DocumentDBEventSourceConfig
|
602
|
+
|
584
603
|
EC2AccessDeniedException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
585
604
|
EC2AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
586
605
|
EC2AccessDeniedException.struct_class = Types::EC2AccessDeniedException
|
@@ -662,6 +681,7 @@ module Aws::Lambda
|
|
662
681
|
EventSourceMappingConfiguration.add_member(:amazon_managed_kafka_event_source_config, Shapes::ShapeRef.new(shape: AmazonManagedKafkaEventSourceConfig, location_name: "AmazonManagedKafkaEventSourceConfig"))
|
663
682
|
EventSourceMappingConfiguration.add_member(:self_managed_kafka_event_source_config, Shapes::ShapeRef.new(shape: SelfManagedKafkaEventSourceConfig, location_name: "SelfManagedKafkaEventSourceConfig"))
|
664
683
|
EventSourceMappingConfiguration.add_member(:scaling_config, Shapes::ShapeRef.new(shape: ScalingConfig, location_name: "ScalingConfig"))
|
684
|
+
EventSourceMappingConfiguration.add_member(:document_db_event_source_config, Shapes::ShapeRef.new(shape: DocumentDBEventSourceConfig, location_name: "DocumentDBEventSourceConfig"))
|
665
685
|
EventSourceMappingConfiguration.struct_class = Types::EventSourceMappingConfiguration
|
666
686
|
|
667
687
|
EventSourceMappingsList.member = Shapes::ShapeRef.new(shape: EventSourceMappingConfiguration)
|
@@ -751,6 +771,7 @@ module Aws::Lambda
|
|
751
771
|
FunctionUrlConfig.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "LastModifiedTime"))
|
752
772
|
FunctionUrlConfig.add_member(:cors, Shapes::ShapeRef.new(shape: Cors, location_name: "Cors"))
|
753
773
|
FunctionUrlConfig.add_member(:auth_type, Shapes::ShapeRef.new(shape: FunctionUrlAuthType, required: true, location_name: "AuthType"))
|
774
|
+
FunctionUrlConfig.add_member(:invoke_mode, Shapes::ShapeRef.new(shape: InvokeMode, location_name: "InvokeMode"))
|
754
775
|
FunctionUrlConfig.struct_class = Types::FunctionUrlConfig
|
755
776
|
|
756
777
|
FunctionUrlConfigList.member = Shapes::ShapeRef.new(shape: FunctionUrlConfig)
|
@@ -815,6 +836,7 @@ module Aws::Lambda
|
|
815
836
|
GetFunctionUrlConfigResponse.add_member(:cors, Shapes::ShapeRef.new(shape: Cors, location_name: "Cors"))
|
816
837
|
GetFunctionUrlConfigResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreationTime"))
|
817
838
|
GetFunctionUrlConfigResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "LastModifiedTime"))
|
839
|
+
GetFunctionUrlConfigResponse.add_member(:invoke_mode, Shapes::ShapeRef.new(shape: InvokeMode, location_name: "InvokeMode"))
|
818
840
|
GetFunctionUrlConfigResponse.struct_class = Types::GetFunctionUrlConfigResponse
|
819
841
|
|
820
842
|
GetLayerVersionByArnRequest.add_member(:arn, Shapes::ShapeRef.new(shape: LayerVersionArn, required: true, location: "querystring", location_name: "Arn"))
|
@@ -863,12 +885,13 @@ module Aws::Lambda
|
|
863
885
|
GetProvisionedConcurrencyConfigResponse.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
|
864
886
|
GetProvisionedConcurrencyConfigResponse.struct_class = Types::GetProvisionedConcurrencyConfigResponse
|
865
887
|
|
866
|
-
GetRuntimeManagementConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape:
|
888
|
+
GetRuntimeManagementConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: NamespacedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
867
889
|
GetRuntimeManagementConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
868
890
|
GetRuntimeManagementConfigRequest.struct_class = Types::GetRuntimeManagementConfigRequest
|
869
891
|
|
870
892
|
GetRuntimeManagementConfigResponse.add_member(:update_runtime_on, Shapes::ShapeRef.new(shape: UpdateRuntimeOn, location_name: "UpdateRuntimeOn"))
|
871
893
|
GetRuntimeManagementConfigResponse.add_member(:runtime_version_arn, Shapes::ShapeRef.new(shape: RuntimeVersionArn, location_name: "RuntimeVersionArn"))
|
894
|
+
GetRuntimeManagementConfigResponse.add_member(:function_arn, Shapes::ShapeRef.new(shape: NameSpacedFunctionArn, location_name: "FunctionArn"))
|
872
895
|
GetRuntimeManagementConfigResponse.struct_class = Types::GetRuntimeManagementConfigResponse
|
873
896
|
|
874
897
|
HeadersList.member = Shapes::ShapeRef.new(shape: Header)
|
@@ -942,6 +965,36 @@ module Aws::Lambda
|
|
942
965
|
InvokeAsyncResponse.add_member(:status, Shapes::ShapeRef.new(shape: HttpStatus, location: "statusCode", location_name: "Status"))
|
943
966
|
InvokeAsyncResponse.struct_class = Types::InvokeAsyncResponse
|
944
967
|
|
968
|
+
InvokeResponseStreamUpdate.add_member(:payload, Shapes::ShapeRef.new(shape: Blob, eventpayload: true, eventpayload_type: 'blob', location_name: "Payload", metadata: {"eventpayload"=>true}))
|
969
|
+
InvokeResponseStreamUpdate.struct_class = Types::InvokeResponseStreamUpdate
|
970
|
+
|
971
|
+
InvokeWithResponseStreamCompleteEvent.add_member(:error_code, Shapes::ShapeRef.new(shape: String, location_name: "ErrorCode"))
|
972
|
+
InvokeWithResponseStreamCompleteEvent.add_member(:error_details, Shapes::ShapeRef.new(shape: String, location_name: "ErrorDetails"))
|
973
|
+
InvokeWithResponseStreamCompleteEvent.add_member(:log_result, Shapes::ShapeRef.new(shape: String, location_name: "LogResult"))
|
974
|
+
InvokeWithResponseStreamCompleteEvent.struct_class = Types::InvokeWithResponseStreamCompleteEvent
|
975
|
+
|
976
|
+
InvokeWithResponseStreamRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: NamespacedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
977
|
+
InvokeWithResponseStreamRequest.add_member(:invocation_type, Shapes::ShapeRef.new(shape: ResponseStreamingInvocationType, location: "header", location_name: "X-Amz-Invocation-Type"))
|
978
|
+
InvokeWithResponseStreamRequest.add_member(:log_type, Shapes::ShapeRef.new(shape: LogType, location: "header", location_name: "X-Amz-Log-Type"))
|
979
|
+
InvokeWithResponseStreamRequest.add_member(:client_context, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "X-Amz-Client-Context"))
|
980
|
+
InvokeWithResponseStreamRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
981
|
+
InvokeWithResponseStreamRequest.add_member(:payload, Shapes::ShapeRef.new(shape: Blob, location_name: "Payload"))
|
982
|
+
InvokeWithResponseStreamRequest.struct_class = Types::InvokeWithResponseStreamRequest
|
983
|
+
InvokeWithResponseStreamRequest[:payload] = :payload
|
984
|
+
InvokeWithResponseStreamRequest[:payload_member] = InvokeWithResponseStreamRequest.member(:payload)
|
985
|
+
|
986
|
+
InvokeWithResponseStreamResponse.add_member(:status_code, Shapes::ShapeRef.new(shape: Integer, location: "statusCode", location_name: "StatusCode"))
|
987
|
+
InvokeWithResponseStreamResponse.add_member(:executed_version, Shapes::ShapeRef.new(shape: Version, location: "header", location_name: "X-Amz-Executed-Version"))
|
988
|
+
InvokeWithResponseStreamResponse.add_member(:event_stream, Shapes::ShapeRef.new(shape: InvokeWithResponseStreamResponseEvent, eventstream: true, location_name: "EventStream"))
|
989
|
+
InvokeWithResponseStreamResponse.add_member(:response_stream_content_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Content-Type"))
|
990
|
+
InvokeWithResponseStreamResponse.struct_class = Types::InvokeWithResponseStreamResponse
|
991
|
+
InvokeWithResponseStreamResponse[:payload] = :event_stream
|
992
|
+
InvokeWithResponseStreamResponse[:payload_member] = InvokeWithResponseStreamResponse.member(:event_stream)
|
993
|
+
|
994
|
+
InvokeWithResponseStreamResponseEvent.add_member(:payload_chunk, Shapes::ShapeRef.new(shape: InvokeResponseStreamUpdate, event: true, location_name: "PayloadChunk"))
|
995
|
+
InvokeWithResponseStreamResponseEvent.add_member(:invoke_complete, Shapes::ShapeRef.new(shape: InvokeWithResponseStreamCompleteEvent, event: true, location_name: "InvokeComplete"))
|
996
|
+
InvokeWithResponseStreamResponseEvent.struct_class = Types::InvokeWithResponseStreamResponseEvent
|
997
|
+
|
945
998
|
KMSAccessDeniedException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
946
999
|
KMSAccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
947
1000
|
KMSAccessDeniedException.struct_class = Types::KMSAccessDeniedException
|
@@ -1361,6 +1414,7 @@ module Aws::Lambda
|
|
1361
1414
|
UpdateEventSourceMappingRequest.add_member(:tumbling_window_in_seconds, Shapes::ShapeRef.new(shape: TumblingWindowInSeconds, location_name: "TumblingWindowInSeconds"))
|
1362
1415
|
UpdateEventSourceMappingRequest.add_member(:function_response_types, Shapes::ShapeRef.new(shape: FunctionResponseTypeList, location_name: "FunctionResponseTypes"))
|
1363
1416
|
UpdateEventSourceMappingRequest.add_member(:scaling_config, Shapes::ShapeRef.new(shape: ScalingConfig, location_name: "ScalingConfig"))
|
1417
|
+
UpdateEventSourceMappingRequest.add_member(:document_db_event_source_config, Shapes::ShapeRef.new(shape: DocumentDBEventSourceConfig, location_name: "DocumentDBEventSourceConfig"))
|
1364
1418
|
UpdateEventSourceMappingRequest.struct_class = Types::UpdateEventSourceMappingRequest
|
1365
1419
|
|
1366
1420
|
UpdateFunctionCodeRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
@@ -1406,6 +1460,7 @@ module Aws::Lambda
|
|
1406
1460
|
UpdateFunctionUrlConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: FunctionUrlQualifier, location: "querystring", location_name: "Qualifier"))
|
1407
1461
|
UpdateFunctionUrlConfigRequest.add_member(:auth_type, Shapes::ShapeRef.new(shape: FunctionUrlAuthType, location_name: "AuthType"))
|
1408
1462
|
UpdateFunctionUrlConfigRequest.add_member(:cors, Shapes::ShapeRef.new(shape: Cors, location_name: "Cors"))
|
1463
|
+
UpdateFunctionUrlConfigRequest.add_member(:invoke_mode, Shapes::ShapeRef.new(shape: InvokeMode, location_name: "InvokeMode"))
|
1409
1464
|
UpdateFunctionUrlConfigRequest.struct_class = Types::UpdateFunctionUrlConfigRequest
|
1410
1465
|
|
1411
1466
|
UpdateFunctionUrlConfigResponse.add_member(:function_url, Shapes::ShapeRef.new(shape: FunctionUrl, required: true, location_name: "FunctionUrl"))
|
@@ -1414,6 +1469,7 @@ module Aws::Lambda
|
|
1414
1469
|
UpdateFunctionUrlConfigResponse.add_member(:cors, Shapes::ShapeRef.new(shape: Cors, location_name: "Cors"))
|
1415
1470
|
UpdateFunctionUrlConfigResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreationTime"))
|
1416
1471
|
UpdateFunctionUrlConfigResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "LastModifiedTime"))
|
1472
|
+
UpdateFunctionUrlConfigResponse.add_member(:invoke_mode, Shapes::ShapeRef.new(shape: InvokeMode, location_name: "InvokeMode"))
|
1417
1473
|
UpdateFunctionUrlConfigResponse.struct_class = Types::UpdateFunctionUrlConfigResponse
|
1418
1474
|
|
1419
1475
|
VpcConfig.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, location_name: "SubnetIds"))
|
@@ -1903,6 +1959,40 @@ module Aws::Lambda
|
|
1903
1959
|
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
1904
1960
|
end)
|
1905
1961
|
|
1962
|
+
api.add_operation(:invoke_with_response_stream, Seahorse::Model::Operation.new.tap do |o|
|
1963
|
+
o.name = "InvokeWithResponseStream"
|
1964
|
+
o.http_method = "POST"
|
1965
|
+
o.http_request_uri = "/2021-11-15/functions/{FunctionName}/response-streaming-invocations"
|
1966
|
+
o.input = Shapes::ShapeRef.new(shape: InvokeWithResponseStreamRequest)
|
1967
|
+
o.output = Shapes::ShapeRef.new(shape: InvokeWithResponseStreamResponse)
|
1968
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1969
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1970
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestContentException)
|
1971
|
+
o.errors << Shapes::ShapeRef.new(shape: RequestTooLargeException)
|
1972
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedMediaTypeException)
|
1973
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1974
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1975
|
+
o.errors << Shapes::ShapeRef.new(shape: EC2UnexpectedException)
|
1976
|
+
o.errors << Shapes::ShapeRef.new(shape: SubnetIPAddressLimitReachedException)
|
1977
|
+
o.errors << Shapes::ShapeRef.new(shape: ENILimitReachedException)
|
1978
|
+
o.errors << Shapes::ShapeRef.new(shape: EFSMountConnectivityException)
|
1979
|
+
o.errors << Shapes::ShapeRef.new(shape: EFSMountFailureException)
|
1980
|
+
o.errors << Shapes::ShapeRef.new(shape: EFSMountTimeoutException)
|
1981
|
+
o.errors << Shapes::ShapeRef.new(shape: EFSIOException)
|
1982
|
+
o.errors << Shapes::ShapeRef.new(shape: EC2ThrottledException)
|
1983
|
+
o.errors << Shapes::ShapeRef.new(shape: EC2AccessDeniedException)
|
1984
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidSubnetIDException)
|
1985
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidSecurityGroupIDException)
|
1986
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidZipFileException)
|
1987
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSDisabledException)
|
1988
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1989
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSAccessDeniedException)
|
1990
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSNotFoundException)
|
1991
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRuntimeException)
|
1992
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
1993
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotReadyException)
|
1994
|
+
end)
|
1995
|
+
|
1906
1996
|
api.add_operation(:list_aliases, Seahorse::Model::Operation.new.tap do |o|
|
1907
1997
|
o.name = "ListAliases"
|
1908
1998
|
o.http_method = "GET"
|
@@ -50,9 +50,6 @@ module Aws::Lambda
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,36 +14,39 @@ module Aws::Lambda
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
-
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://lambda-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
-
end
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://lambda-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://lambda-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://lambda-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://lambda.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://lambda.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://lambda.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
@@ -501,6 +501,20 @@ module Aws::Lambda
|
|
501
501
|
end
|
502
502
|
end
|
503
503
|
|
504
|
+
class InvokeWithResponseStream
|
505
|
+
def self.build(context)
|
506
|
+
unless context.config.regional_endpoint
|
507
|
+
endpoint = context.config.endpoint.to_s
|
508
|
+
end
|
509
|
+
Aws::Lambda::EndpointParameters.new(
|
510
|
+
region: context.config.region,
|
511
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
512
|
+
use_fips: context.config.use_fips_endpoint,
|
513
|
+
endpoint: endpoint,
|
514
|
+
)
|
515
|
+
end
|
516
|
+
end
|
517
|
+
|
504
518
|
class ListAliases
|
505
519
|
def self.build(context)
|
506
520
|
unless context.config.regional_endpoint
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::Lambda
|
11
|
+
module EventStreams
|
12
|
+
class InvokeWithResponseStreamResponseEvent
|
13
|
+
|
14
|
+
def initialize
|
15
|
+
@event_emitter = Aws::EventEmitter.new
|
16
|
+
end
|
17
|
+
|
18
|
+
def on_payload_chunk_event(&block)
|
19
|
+
@event_emitter.on(:payload_chunk, block) if block_given?
|
20
|
+
end
|
21
|
+
|
22
|
+
def on_invoke_complete_event(&block)
|
23
|
+
@event_emitter.on(:invoke_complete, block) if block_given?
|
24
|
+
end
|
25
|
+
|
26
|
+
def on_error_event(&block)
|
27
|
+
@event_emitter.on(:error, block) if block_given?
|
28
|
+
end
|
29
|
+
|
30
|
+
def on_initial_response_event(&block)
|
31
|
+
@event_emitter.on(:initial_response, block) if block_given?
|
32
|
+
end
|
33
|
+
|
34
|
+
def on_unknown_event(&block)
|
35
|
+
@event_emitter.on(:unknown_event, block) if block_given?
|
36
|
+
end
|
37
|
+
|
38
|
+
def on_event(&block)
|
39
|
+
on_payload_chunk_event(&block)
|
40
|
+
on_invoke_complete_event(&block)
|
41
|
+
on_error_event(&block)
|
42
|
+
on_initial_response_event(&block)
|
43
|
+
on_unknown_event(&block)
|
44
|
+
end
|
45
|
+
|
46
|
+
# @api private
|
47
|
+
# @return Aws::EventEmitter
|
48
|
+
attr_reader :event_emitter
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
@@ -126,6 +126,8 @@ module Aws::Lambda
|
|
126
126
|
Aws::Lambda::Endpoints::Invoke.build(context)
|
127
127
|
when :invoke_async
|
128
128
|
Aws::Lambda::Endpoints::InvokeAsync.build(context)
|
129
|
+
when :invoke_with_response_stream
|
130
|
+
Aws::Lambda::Endpoints::InvokeWithResponseStream.build(context)
|
129
131
|
when :list_aliases
|
130
132
|
Aws::Lambda::Endpoints::ListAliases.build(context)
|
131
133
|
when :list_code_signing_configs
|