aws-sdk-lambda 1.92.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.
@@ -174,6 +174,12 @@ module Aws::Lambda
174
174
  InvocationType = Shapes::StringShape.new(name: 'InvocationType')
175
175
  InvokeAsyncRequest = Shapes::StructureShape.new(name: 'InvokeAsyncRequest')
176
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')
177
183
  KMSAccessDeniedException = Shapes::StructureShape.new(name: 'KMSAccessDeniedException')
178
184
  KMSDisabledException = Shapes::StructureShape.new(name: 'KMSDisabledException')
179
185
  KMSInvalidStateException = Shapes::StructureShape.new(name: 'KMSInvalidStateException')
@@ -283,6 +289,7 @@ module Aws::Lambda
283
289
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
284
290
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
285
291
  ResourceNotReadyException = Shapes::StructureShape.new(name: 'ResourceNotReadyException')
292
+ ResponseStreamingInvocationType = Shapes::StringShape.new(name: 'ResponseStreamingInvocationType')
286
293
  RoleArn = Shapes::StringShape.new(name: 'RoleArn')
287
294
  Runtime = Shapes::StringShape.new(name: 'Runtime')
288
295
  RuntimeVersionArn = Shapes::StringShape.new(name: 'RuntimeVersionArn')
@@ -532,6 +539,7 @@ module Aws::Lambda
532
539
  CreateFunctionUrlConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: FunctionUrlQualifier, location: "querystring", location_name: "Qualifier"))
533
540
  CreateFunctionUrlConfigRequest.add_member(:auth_type, Shapes::ShapeRef.new(shape: FunctionUrlAuthType, required: true, location_name: "AuthType"))
534
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"))
535
543
  CreateFunctionUrlConfigRequest.struct_class = Types::CreateFunctionUrlConfigRequest
536
544
 
537
545
  CreateFunctionUrlConfigResponse.add_member(:function_url, Shapes::ShapeRef.new(shape: FunctionUrl, required: true, location_name: "FunctionUrl"))
@@ -539,6 +547,7 @@ module Aws::Lambda
539
547
  CreateFunctionUrlConfigResponse.add_member(:auth_type, Shapes::ShapeRef.new(shape: FunctionUrlAuthType, required: true, location_name: "AuthType"))
540
548
  CreateFunctionUrlConfigResponse.add_member(:cors, Shapes::ShapeRef.new(shape: Cors, location_name: "Cors"))
541
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"))
542
551
  CreateFunctionUrlConfigResponse.struct_class = Types::CreateFunctionUrlConfigResponse
543
552
 
544
553
  DeadLetterConfig.add_member(:target_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "TargetArn"))
@@ -762,6 +771,7 @@ module Aws::Lambda
762
771
  FunctionUrlConfig.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "LastModifiedTime"))
763
772
  FunctionUrlConfig.add_member(:cors, Shapes::ShapeRef.new(shape: Cors, location_name: "Cors"))
764
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"))
765
775
  FunctionUrlConfig.struct_class = Types::FunctionUrlConfig
766
776
 
767
777
  FunctionUrlConfigList.member = Shapes::ShapeRef.new(shape: FunctionUrlConfig)
@@ -826,6 +836,7 @@ module Aws::Lambda
826
836
  GetFunctionUrlConfigResponse.add_member(:cors, Shapes::ShapeRef.new(shape: Cors, location_name: "Cors"))
827
837
  GetFunctionUrlConfigResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreationTime"))
828
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"))
829
840
  GetFunctionUrlConfigResponse.struct_class = Types::GetFunctionUrlConfigResponse
830
841
 
831
842
  GetLayerVersionByArnRequest.add_member(:arn, Shapes::ShapeRef.new(shape: LayerVersionArn, required: true, location: "querystring", location_name: "Arn"))
@@ -954,6 +965,36 @@ module Aws::Lambda
954
965
  InvokeAsyncResponse.add_member(:status, Shapes::ShapeRef.new(shape: HttpStatus, location: "statusCode", location_name: "Status"))
955
966
  InvokeAsyncResponse.struct_class = Types::InvokeAsyncResponse
956
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
+
957
998
  KMSAccessDeniedException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
958
999
  KMSAccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
959
1000
  KMSAccessDeniedException.struct_class = Types::KMSAccessDeniedException
@@ -1419,6 +1460,7 @@ module Aws::Lambda
1419
1460
  UpdateFunctionUrlConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: FunctionUrlQualifier, location: "querystring", location_name: "Qualifier"))
1420
1461
  UpdateFunctionUrlConfigRequest.add_member(:auth_type, Shapes::ShapeRef.new(shape: FunctionUrlAuthType, location_name: "AuthType"))
1421
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"))
1422
1464
  UpdateFunctionUrlConfigRequest.struct_class = Types::UpdateFunctionUrlConfigRequest
1423
1465
 
1424
1466
  UpdateFunctionUrlConfigResponse.add_member(:function_url, Shapes::ShapeRef.new(shape: FunctionUrl, required: true, location_name: "FunctionUrl"))
@@ -1427,6 +1469,7 @@ module Aws::Lambda
1427
1469
  UpdateFunctionUrlConfigResponse.add_member(:cors, Shapes::ShapeRef.new(shape: Cors, location_name: "Cors"))
1428
1470
  UpdateFunctionUrlConfigResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreationTime"))
1429
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"))
1430
1473
  UpdateFunctionUrlConfigResponse.struct_class = Types::UpdateFunctionUrlConfigResponse
1431
1474
 
1432
1475
  VpcConfig.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, location_name: "SubnetIds"))
@@ -1916,6 +1959,40 @@ module Aws::Lambda
1916
1959
  o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
1917
1960
  end)
1918
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
+
1919
1996
  api.add_operation(:list_aliases, Seahorse::Model::Operation.new.tap do |o|
1920
1997
  o.name = "ListAliases"
1921
1998
  o.http_method = "GET"
@@ -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