aws-sdk-lambda 1.50.0 → 1.55.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-lambda.rb +1 -1
- data/lib/aws-sdk-lambda/client.rb +685 -34
- data/lib/aws-sdk-lambda/client_api.rb +309 -2
- data/lib/aws-sdk-lambda/errors.rb +63 -0
- data/lib/aws-sdk-lambda/types.rb +884 -25
- metadata +4 -4
@@ -27,7 +27,9 @@ module Aws::Lambda
|
|
27
27
|
# See {Seahorse::Client::RequestContext} for more information.
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
|
+
# * {CodeSigningConfigNotFoundException}
|
30
31
|
# * {CodeStorageExceededException}
|
32
|
+
# * {CodeVerificationFailedException}
|
31
33
|
# * {EC2AccessDeniedException}
|
32
34
|
# * {EC2ThrottledException}
|
33
35
|
# * {EC2UnexpectedException}
|
@@ -36,6 +38,7 @@ module Aws::Lambda
|
|
36
38
|
# * {EFSMountFailureException}
|
37
39
|
# * {EFSMountTimeoutException}
|
38
40
|
# * {ENILimitReachedException}
|
41
|
+
# * {InvalidCodeSignatureException}
|
39
42
|
# * {InvalidParameterValueException}
|
40
43
|
# * {InvalidRequestContentException}
|
41
44
|
# * {InvalidRuntimeException}
|
@@ -65,6 +68,26 @@ module Aws::Lambda
|
|
65
68
|
|
66
69
|
extend Aws::Errors::DynamicErrors
|
67
70
|
|
71
|
+
class CodeSigningConfigNotFoundException < ServiceError
|
72
|
+
|
73
|
+
# @param [Seahorse::Client::RequestContext] context
|
74
|
+
# @param [String] message
|
75
|
+
# @param [Aws::Lambda::Types::CodeSigningConfigNotFoundException] data
|
76
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
77
|
+
super(context, message, data)
|
78
|
+
end
|
79
|
+
|
80
|
+
# @return [String]
|
81
|
+
def type
|
82
|
+
@data[:type]
|
83
|
+
end
|
84
|
+
|
85
|
+
# @return [String]
|
86
|
+
def message
|
87
|
+
@message || @data[:message]
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
68
91
|
class CodeStorageExceededException < ServiceError
|
69
92
|
|
70
93
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -85,6 +108,26 @@ module Aws::Lambda
|
|
85
108
|
end
|
86
109
|
end
|
87
110
|
|
111
|
+
class CodeVerificationFailedException < ServiceError
|
112
|
+
|
113
|
+
# @param [Seahorse::Client::RequestContext] context
|
114
|
+
# @param [String] message
|
115
|
+
# @param [Aws::Lambda::Types::CodeVerificationFailedException] data
|
116
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
117
|
+
super(context, message, data)
|
118
|
+
end
|
119
|
+
|
120
|
+
# @return [String]
|
121
|
+
def type
|
122
|
+
@data[:type]
|
123
|
+
end
|
124
|
+
|
125
|
+
# @return [String]
|
126
|
+
def message
|
127
|
+
@message || @data[:message]
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
88
131
|
class EC2AccessDeniedException < ServiceError
|
89
132
|
|
90
133
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -250,6 +293,26 @@ module Aws::Lambda
|
|
250
293
|
end
|
251
294
|
end
|
252
295
|
|
296
|
+
class InvalidCodeSignatureException < ServiceError
|
297
|
+
|
298
|
+
# @param [Seahorse::Client::RequestContext] context
|
299
|
+
# @param [String] message
|
300
|
+
# @param [Aws::Lambda::Types::InvalidCodeSignatureException] data
|
301
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
302
|
+
super(context, message, data)
|
303
|
+
end
|
304
|
+
|
305
|
+
# @return [String]
|
306
|
+
def type
|
307
|
+
@data[:type]
|
308
|
+
end
|
309
|
+
|
310
|
+
# @return [String]
|
311
|
+
def message
|
312
|
+
@message || @data[:message]
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
253
316
|
class InvalidParameterValueException < ServiceError
|
254
317
|
|
255
318
|
# @param [Seahorse::Client::RequestContext] context
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -327,6 +327,114 @@ module Aws::Lambda
|
|
327
327
|
include Aws::Structure
|
328
328
|
end
|
329
329
|
|
330
|
+
# List of signing profiles that can sign a code package.
|
331
|
+
#
|
332
|
+
# @note When making an API call, you may pass AllowedPublishers
|
333
|
+
# data as a hash:
|
334
|
+
#
|
335
|
+
# {
|
336
|
+
# signing_profile_version_arns: ["Arn"], # required
|
337
|
+
# }
|
338
|
+
#
|
339
|
+
# @!attribute [rw] signing_profile_version_arns
|
340
|
+
# The Amazon Resource Name (ARN) for each of the signing profiles. A
|
341
|
+
# signing profile defines a trusted user who can sign a code package.
|
342
|
+
# @return [Array<String>]
|
343
|
+
#
|
344
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AllowedPublishers AWS API Documentation
|
345
|
+
#
|
346
|
+
class AllowedPublishers < Struct.new(
|
347
|
+
:signing_profile_version_arns)
|
348
|
+
SENSITIVE = []
|
349
|
+
include Aws::Structure
|
350
|
+
end
|
351
|
+
|
352
|
+
# Details about a Code signing configuration.
|
353
|
+
#
|
354
|
+
# @!attribute [rw] code_signing_config_id
|
355
|
+
# Unique identifer for the Code signing configuration.
|
356
|
+
# @return [String]
|
357
|
+
#
|
358
|
+
# @!attribute [rw] code_signing_config_arn
|
359
|
+
# The Amazon Resource Name (ARN) of the Code signing configuration.
|
360
|
+
# @return [String]
|
361
|
+
#
|
362
|
+
# @!attribute [rw] description
|
363
|
+
# Code signing configuration description.
|
364
|
+
# @return [String]
|
365
|
+
#
|
366
|
+
# @!attribute [rw] allowed_publishers
|
367
|
+
# List of allowed publishers.
|
368
|
+
# @return [Types::AllowedPublishers]
|
369
|
+
#
|
370
|
+
# @!attribute [rw] code_signing_policies
|
371
|
+
# The code signing policy controls the validation failure action for
|
372
|
+
# signature mismatch or expiry.
|
373
|
+
# @return [Types::CodeSigningPolicies]
|
374
|
+
#
|
375
|
+
# @!attribute [rw] last_modified
|
376
|
+
# The date and time that the Code signing configuration was last
|
377
|
+
# modified, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
|
378
|
+
# @return [Time]
|
379
|
+
#
|
380
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CodeSigningConfig AWS API Documentation
|
381
|
+
#
|
382
|
+
class CodeSigningConfig < Struct.new(
|
383
|
+
:code_signing_config_id,
|
384
|
+
:code_signing_config_arn,
|
385
|
+
:description,
|
386
|
+
:allowed_publishers,
|
387
|
+
:code_signing_policies,
|
388
|
+
:last_modified)
|
389
|
+
SENSITIVE = []
|
390
|
+
include Aws::Structure
|
391
|
+
end
|
392
|
+
|
393
|
+
# The specified code signing configuration does not exist.
|
394
|
+
#
|
395
|
+
# @!attribute [rw] type
|
396
|
+
# @return [String]
|
397
|
+
#
|
398
|
+
# @!attribute [rw] message
|
399
|
+
# @return [String]
|
400
|
+
#
|
401
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CodeSigningConfigNotFoundException AWS API Documentation
|
402
|
+
#
|
403
|
+
class CodeSigningConfigNotFoundException < Struct.new(
|
404
|
+
:type,
|
405
|
+
:message)
|
406
|
+
SENSITIVE = []
|
407
|
+
include Aws::Structure
|
408
|
+
end
|
409
|
+
|
410
|
+
# Code signing configuration policies specifies the validation failure
|
411
|
+
# action for signature mismatch or expiry.
|
412
|
+
#
|
413
|
+
# @note When making an API call, you may pass CodeSigningPolicies
|
414
|
+
# data as a hash:
|
415
|
+
#
|
416
|
+
# {
|
417
|
+
# untrusted_artifact_on_deployment: "Warn", # accepts Warn, Enforce
|
418
|
+
# }
|
419
|
+
#
|
420
|
+
# @!attribute [rw] untrusted_artifact_on_deployment
|
421
|
+
# Code signing configuration policy for deployment validation failure.
|
422
|
+
# If you set the policy to `Enforce`, Lambda blocks the deployment
|
423
|
+
# request if signature validation checks fail. If you set the policy
|
424
|
+
# to `Warn`, Lambda allows the deployment and creates a CloudWatch
|
425
|
+
# log.
|
426
|
+
#
|
427
|
+
# Default value: `Warn`
|
428
|
+
# @return [String]
|
429
|
+
#
|
430
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CodeSigningPolicies AWS API Documentation
|
431
|
+
#
|
432
|
+
class CodeSigningPolicies < Struct.new(
|
433
|
+
:untrusted_artifact_on_deployment)
|
434
|
+
SENSITIVE = []
|
435
|
+
include Aws::Structure
|
436
|
+
end
|
437
|
+
|
330
438
|
# You have exceeded your maximum total code size per account. [Learn
|
331
439
|
# more][1]
|
332
440
|
#
|
@@ -350,6 +458,25 @@ module Aws::Lambda
|
|
350
458
|
include Aws::Structure
|
351
459
|
end
|
352
460
|
|
461
|
+
# The code signature failed one or more of the validation checks for
|
462
|
+
# signature mismatch or expiry, and the code signing policy is set to
|
463
|
+
# ENFORCE. Lambda blocks the deployment.
|
464
|
+
#
|
465
|
+
# @!attribute [rw] type
|
466
|
+
# @return [String]
|
467
|
+
#
|
468
|
+
# @!attribute [rw] message
|
469
|
+
# @return [String]
|
470
|
+
#
|
471
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CodeVerificationFailedException AWS API Documentation
|
472
|
+
#
|
473
|
+
class CodeVerificationFailedException < Struct.new(
|
474
|
+
:type,
|
475
|
+
:message)
|
476
|
+
SENSITIVE = []
|
477
|
+
include Aws::Structure
|
478
|
+
end
|
479
|
+
|
353
480
|
# @!attribute [rw] reserved_concurrent_executions
|
354
481
|
# The number of concurrent executions that are reserved for this
|
355
482
|
# function. For more information, see [Managing Concurrency][1].
|
@@ -430,6 +557,54 @@ module Aws::Lambda
|
|
430
557
|
include Aws::Structure
|
431
558
|
end
|
432
559
|
|
560
|
+
# @note When making an API call, you may pass CreateCodeSigningConfigRequest
|
561
|
+
# data as a hash:
|
562
|
+
#
|
563
|
+
# {
|
564
|
+
# description: "Description",
|
565
|
+
# allowed_publishers: { # required
|
566
|
+
# signing_profile_version_arns: ["Arn"], # required
|
567
|
+
# },
|
568
|
+
# code_signing_policies: {
|
569
|
+
# untrusted_artifact_on_deployment: "Warn", # accepts Warn, Enforce
|
570
|
+
# },
|
571
|
+
# }
|
572
|
+
#
|
573
|
+
# @!attribute [rw] description
|
574
|
+
# Descriptive name for this code signing configuration.
|
575
|
+
# @return [String]
|
576
|
+
#
|
577
|
+
# @!attribute [rw] allowed_publishers
|
578
|
+
# Signing profiles for this code signing configuration.
|
579
|
+
# @return [Types::AllowedPublishers]
|
580
|
+
#
|
581
|
+
# @!attribute [rw] code_signing_policies
|
582
|
+
# The code signing policies define the actions to take if the
|
583
|
+
# validation checks fail.
|
584
|
+
# @return [Types::CodeSigningPolicies]
|
585
|
+
#
|
586
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateCodeSigningConfigRequest AWS API Documentation
|
587
|
+
#
|
588
|
+
class CreateCodeSigningConfigRequest < Struct.new(
|
589
|
+
:description,
|
590
|
+
:allowed_publishers,
|
591
|
+
:code_signing_policies)
|
592
|
+
SENSITIVE = []
|
593
|
+
include Aws::Structure
|
594
|
+
end
|
595
|
+
|
596
|
+
# @!attribute [rw] code_signing_config
|
597
|
+
# The code signing configuration.
|
598
|
+
# @return [Types::CodeSigningConfig]
|
599
|
+
#
|
600
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateCodeSigningConfigResponse AWS API Documentation
|
601
|
+
#
|
602
|
+
class CreateCodeSigningConfigResponse < Struct.new(
|
603
|
+
:code_signing_config)
|
604
|
+
SENSITIVE = []
|
605
|
+
include Aws::Structure
|
606
|
+
end
|
607
|
+
|
433
608
|
# @note When making an API call, you may pass CreateEventSourceMappingRequest
|
434
609
|
# data as a hash:
|
435
610
|
#
|
@@ -454,6 +629,13 @@ module Aws::Lambda
|
|
454
629
|
# bisect_batch_on_function_error: false,
|
455
630
|
# maximum_retry_attempts: 1,
|
456
631
|
# topics: ["Topic"],
|
632
|
+
# queues: ["Queue"],
|
633
|
+
# source_access_configurations: [
|
634
|
+
# {
|
635
|
+
# type: "BASIC_AUTH", # accepts BASIC_AUTH
|
636
|
+
# uri: "Arn",
|
637
|
+
# },
|
638
|
+
# ],
|
457
639
|
# }
|
458
640
|
#
|
459
641
|
# @!attribute [rw] event_source_arn
|
@@ -553,6 +735,24 @@ module Aws::Lambda
|
|
553
735
|
# (MSK) The name of the Kafka topic.
|
554
736
|
# @return [Array<String>]
|
555
737
|
#
|
738
|
+
# @!attribute [rw] queues
|
739
|
+
# (MQ) The name of the Amazon MQ broker destination queue to consume.
|
740
|
+
# @return [Array<String>]
|
741
|
+
#
|
742
|
+
# @!attribute [rw] source_access_configurations
|
743
|
+
# (MQ) The Secrets Manager secret that stores your broker credentials.
|
744
|
+
# To store your secret, use the following format: ` \{ "username":
|
745
|
+
# "your username", "password": "your password" \}`
|
746
|
+
#
|
747
|
+
# To reference the secret, use the following format: `[ \{ "Type":
|
748
|
+
# "BASIC_AUTH", "URI": "secretARN" \} ]`
|
749
|
+
#
|
750
|
+
# The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
|
751
|
+
# you can use customer or service managed keys. When using a customer
|
752
|
+
# managed KMS key, the Lambda execution role requires `kms:Decrypt`
|
753
|
+
# permissions.
|
754
|
+
# @return [Array<Types::SourceAccessConfiguration>]
|
755
|
+
#
|
556
756
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest AWS API Documentation
|
557
757
|
#
|
558
758
|
class CreateEventSourceMappingRequest < Struct.new(
|
@@ -568,7 +768,9 @@ module Aws::Lambda
|
|
568
768
|
:maximum_record_age_in_seconds,
|
569
769
|
:bisect_batch_on_function_error,
|
570
770
|
:maximum_retry_attempts,
|
571
|
-
:topics
|
771
|
+
:topics,
|
772
|
+
:queues,
|
773
|
+
:source_access_configurations)
|
572
774
|
SENSITIVE = []
|
573
775
|
include Aws::Structure
|
574
776
|
end
|
@@ -578,14 +780,15 @@ module Aws::Lambda
|
|
578
780
|
#
|
579
781
|
# {
|
580
782
|
# function_name: "FunctionName", # required
|
581
|
-
# runtime: "nodejs", #
|
783
|
+
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
582
784
|
# role: "RoleArn", # required
|
583
|
-
# handler: "Handler",
|
785
|
+
# handler: "Handler",
|
584
786
|
# code: { # required
|
585
787
|
# zip_file: "data",
|
586
788
|
# s3_bucket: "S3Bucket",
|
587
789
|
# s3_key: "S3Key",
|
588
790
|
# s3_object_version: "S3ObjectVersion",
|
791
|
+
# image_uri: "String",
|
589
792
|
# },
|
590
793
|
# description: "Description",
|
591
794
|
# timeout: 1,
|
@@ -595,6 +798,7 @@ module Aws::Lambda
|
|
595
798
|
# subnet_ids: ["SubnetId"],
|
596
799
|
# security_group_ids: ["SecurityGroupId"],
|
597
800
|
# },
|
801
|
+
# package_type: "Zip", # accepts Zip, Image
|
598
802
|
# dead_letter_config: {
|
599
803
|
# target_arn: "ResourceArn",
|
600
804
|
# },
|
@@ -617,6 +821,12 @@ module Aws::Lambda
|
|
617
821
|
# local_mount_path: "LocalMountPath", # required
|
618
822
|
# },
|
619
823
|
# ],
|
824
|
+
# image_config: {
|
825
|
+
# entry_point: ["String"],
|
826
|
+
# command: ["String"],
|
827
|
+
# working_directory: "WorkingDirectory",
|
828
|
+
# },
|
829
|
+
# code_signing_config_arn: "CodeSigningConfigArn",
|
620
830
|
# }
|
621
831
|
#
|
622
832
|
# @!attribute [rw] function_name
|
@@ -694,6 +904,11 @@ module Aws::Lambda
|
|
694
904
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html
|
695
905
|
# @return [Types::VpcConfig]
|
696
906
|
#
|
907
|
+
# @!attribute [rw] package_type
|
908
|
+
# The type of deployment package. Set to `Image` for container image
|
909
|
+
# and set `Zip` for ZIP archive.
|
910
|
+
# @return [String]
|
911
|
+
#
|
697
912
|
# @!attribute [rw] dead_letter_config
|
698
913
|
# A dead letter queue configuration that specifies the queue or topic
|
699
914
|
# where Lambda sends asynchronous events when they fail processing.
|
@@ -741,6 +956,17 @@ module Aws::Lambda
|
|
741
956
|
# Connection settings for an Amazon EFS file system.
|
742
957
|
# @return [Array<Types::FileSystemConfig>]
|
743
958
|
#
|
959
|
+
# @!attribute [rw] image_config
|
960
|
+
# Configuration values that override the container image Dockerfile.
|
961
|
+
# @return [Types::ImageConfig]
|
962
|
+
#
|
963
|
+
# @!attribute [rw] code_signing_config_arn
|
964
|
+
# To enable code signing for this function, specify the ARN of a
|
965
|
+
# code-signing configuration. A code-signing configuration includes a
|
966
|
+
# set of signing profiles, which define the trusted publishers for
|
967
|
+
# this function.
|
968
|
+
# @return [String]
|
969
|
+
#
|
744
970
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest AWS API Documentation
|
745
971
|
#
|
746
972
|
class CreateFunctionRequest < Struct.new(
|
@@ -754,13 +980,16 @@ module Aws::Lambda
|
|
754
980
|
:memory_size,
|
755
981
|
:publish,
|
756
982
|
:vpc_config,
|
983
|
+
:package_type,
|
757
984
|
:dead_letter_config,
|
758
985
|
:environment,
|
759
986
|
:kms_key_arn,
|
760
987
|
:tracing_config,
|
761
988
|
:tags,
|
762
989
|
:layers,
|
763
|
-
:file_system_configs
|
990
|
+
:file_system_configs,
|
991
|
+
:image_config,
|
992
|
+
:code_signing_config_arn)
|
764
993
|
SENSITIVE = []
|
765
994
|
include Aws::Structure
|
766
995
|
end
|
@@ -828,6 +1057,30 @@ module Aws::Lambda
|
|
828
1057
|
include Aws::Structure
|
829
1058
|
end
|
830
1059
|
|
1060
|
+
# @note When making an API call, you may pass DeleteCodeSigningConfigRequest
|
1061
|
+
# data as a hash:
|
1062
|
+
#
|
1063
|
+
# {
|
1064
|
+
# code_signing_config_arn: "CodeSigningConfigArn", # required
|
1065
|
+
# }
|
1066
|
+
#
|
1067
|
+
# @!attribute [rw] code_signing_config_arn
|
1068
|
+
# The The Amazon Resource Name (ARN) of the code signing
|
1069
|
+
# configuration.
|
1070
|
+
# @return [String]
|
1071
|
+
#
|
1072
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCodeSigningConfigRequest AWS API Documentation
|
1073
|
+
#
|
1074
|
+
class DeleteCodeSigningConfigRequest < Struct.new(
|
1075
|
+
:code_signing_config_arn)
|
1076
|
+
SENSITIVE = []
|
1077
|
+
include Aws::Structure
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCodeSigningConfigResponse AWS API Documentation
|
1081
|
+
#
|
1082
|
+
class DeleteCodeSigningConfigResponse < Aws::EmptyStructure; end
|
1083
|
+
|
831
1084
|
# @note When making an API call, you may pass DeleteEventSourceMappingRequest
|
832
1085
|
# data as a hash:
|
833
1086
|
#
|
@@ -847,6 +1100,37 @@ module Aws::Lambda
|
|
847
1100
|
include Aws::Structure
|
848
1101
|
end
|
849
1102
|
|
1103
|
+
# @note When making an API call, you may pass DeleteFunctionCodeSigningConfigRequest
|
1104
|
+
# data as a hash:
|
1105
|
+
#
|
1106
|
+
# {
|
1107
|
+
# function_name: "FunctionName", # required
|
1108
|
+
# }
|
1109
|
+
#
|
1110
|
+
# @!attribute [rw] function_name
|
1111
|
+
# The name of the Lambda function.
|
1112
|
+
#
|
1113
|
+
# **Name formats**
|
1114
|
+
#
|
1115
|
+
# * **Function name** - `MyFunction`.
|
1116
|
+
#
|
1117
|
+
# * **Function ARN** -
|
1118
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
1119
|
+
#
|
1120
|
+
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
1121
|
+
#
|
1122
|
+
# The length constraint applies only to the full ARN. If you specify
|
1123
|
+
# only the function name, it is limited to 64 characters in length.
|
1124
|
+
# @return [String]
|
1125
|
+
#
|
1126
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionCodeSigningConfigRequest AWS API Documentation
|
1127
|
+
#
|
1128
|
+
class DeleteFunctionCodeSigningConfigRequest < Struct.new(
|
1129
|
+
:function_name)
|
1130
|
+
SENSITIVE = []
|
1131
|
+
include Aws::Structure
|
1132
|
+
end
|
1133
|
+
|
850
1134
|
# @note When making an API call, you may pass DeleteFunctionConcurrencyRequest
|
851
1135
|
# data as a hash:
|
852
1136
|
#
|
@@ -1271,18 +1555,29 @@ module Aws::Lambda
|
|
1271
1555
|
# The identifier of the event source mapping.
|
1272
1556
|
# @return [String]
|
1273
1557
|
#
|
1558
|
+
# @!attribute [rw] starting_position
|
1559
|
+
# The position in a stream from which to start reading. Required for
|
1560
|
+
# Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
|
1561
|
+
# `AT_TIMESTAMP` is only supported for Amazon Kinesis streams.
|
1562
|
+
# @return [String]
|
1563
|
+
#
|
1564
|
+
# @!attribute [rw] starting_position_timestamp
|
1565
|
+
# With `StartingPosition` set to `AT_TIMESTAMP`, the time from which
|
1566
|
+
# to start reading.
|
1567
|
+
# @return [Time]
|
1568
|
+
#
|
1274
1569
|
# @!attribute [rw] batch_size
|
1275
1570
|
# The maximum number of items to retrieve in a single batch.
|
1276
1571
|
# @return [Integer]
|
1277
1572
|
#
|
1278
1573
|
# @!attribute [rw] maximum_batching_window_in_seconds
|
1279
1574
|
# (Streams) The maximum amount of time to gather records before
|
1280
|
-
# invoking the function, in seconds.
|
1575
|
+
# invoking the function, in seconds. The default value is zero.
|
1281
1576
|
# @return [Integer]
|
1282
1577
|
#
|
1283
1578
|
# @!attribute [rw] parallelization_factor
|
1284
1579
|
# (Streams) The number of batches to process from each shard
|
1285
|
-
# concurrently.
|
1580
|
+
# concurrently. The default value is 1.
|
1286
1581
|
# @return [Integer]
|
1287
1582
|
#
|
1288
1583
|
# @!attribute [rw] event_source_arn
|
@@ -1320,28 +1615,50 @@ module Aws::Lambda
|
|
1320
1615
|
# @return [Types::DestinationConfig]
|
1321
1616
|
#
|
1322
1617
|
# @!attribute [rw] topics
|
1323
|
-
# (MSK) The name of the Kafka topic.
|
1618
|
+
# (MSK) The name of the Kafka topic to consume.
|
1619
|
+
# @return [Array<String>]
|
1620
|
+
#
|
1621
|
+
# @!attribute [rw] queues
|
1622
|
+
# (MQ) The name of the Amazon MQ broker destination queue to consume.
|
1324
1623
|
# @return [Array<String>]
|
1325
1624
|
#
|
1625
|
+
# @!attribute [rw] source_access_configurations
|
1626
|
+
# (MQ) The Secrets Manager secret that stores your broker credentials.
|
1627
|
+
# To store your secret, use the following format: ` \{ "username":
|
1628
|
+
# "your username", "password": "your password" \}`
|
1629
|
+
#
|
1630
|
+
# To reference the secret, use the following format: `[ \{ "Type":
|
1631
|
+
# "BASIC_AUTH", "URI": "secretARN" \} ]`
|
1632
|
+
#
|
1633
|
+
# The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
|
1634
|
+
# you can use customer or service managed keys. When using a customer
|
1635
|
+
# managed KMS key, the Lambda execution role requires `kms:Decrypt`
|
1636
|
+
# permissions.
|
1637
|
+
# @return [Array<Types::SourceAccessConfiguration>]
|
1638
|
+
#
|
1326
1639
|
# @!attribute [rw] maximum_record_age_in_seconds
|
1327
|
-
# (Streams)
|
1328
|
-
#
|
1640
|
+
# (Streams) Discard records older than the specified age. The default
|
1641
|
+
# value is infinite (-1). When set to infinite (-1), failed records
|
1642
|
+
# are retried until the record expires.
|
1329
1643
|
# @return [Integer]
|
1330
1644
|
#
|
1331
1645
|
# @!attribute [rw] bisect_batch_on_function_error
|
1332
1646
|
# (Streams) If the function returns an error, split the batch in two
|
1333
|
-
# and retry.
|
1647
|
+
# and retry. The default value is false.
|
1334
1648
|
# @return [Boolean]
|
1335
1649
|
#
|
1336
1650
|
# @!attribute [rw] maximum_retry_attempts
|
1337
|
-
# (Streams)
|
1338
|
-
#
|
1651
|
+
# (Streams) Discard records after the specified number of retries. The
|
1652
|
+
# default value is infinite (-1). When set to infinite (-1), failed
|
1653
|
+
# records are retried until the record expires.
|
1339
1654
|
# @return [Integer]
|
1340
1655
|
#
|
1341
1656
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration AWS API Documentation
|
1342
1657
|
#
|
1343
1658
|
class EventSourceMappingConfiguration < Struct.new(
|
1344
1659
|
:uuid,
|
1660
|
+
:starting_position,
|
1661
|
+
:starting_position_timestamp,
|
1345
1662
|
:batch_size,
|
1346
1663
|
:maximum_batching_window_in_seconds,
|
1347
1664
|
:parallelization_factor,
|
@@ -1353,6 +1670,8 @@ module Aws::Lambda
|
|
1353
1670
|
:state_transition_reason,
|
1354
1671
|
:destination_config,
|
1355
1672
|
:topics,
|
1673
|
+
:queues,
|
1674
|
+
:source_access_configurations,
|
1356
1675
|
:maximum_record_age_in_seconds,
|
1357
1676
|
:bisect_batch_on_function_error,
|
1358
1677
|
:maximum_retry_attempts)
|
@@ -1391,7 +1710,8 @@ module Aws::Lambda
|
|
1391
1710
|
end
|
1392
1711
|
|
1393
1712
|
# The code for the Lambda function. You can specify either an object in
|
1394
|
-
# Amazon S3,
|
1713
|
+
# Amazon S3, upload a ZIP archive deployment package directly, or
|
1714
|
+
# specify the URI of a container image.
|
1395
1715
|
#
|
1396
1716
|
# @note When making an API call, you may pass FunctionCode
|
1397
1717
|
# data as a hash:
|
@@ -1401,6 +1721,7 @@ module Aws::Lambda
|
|
1401
1721
|
# s3_bucket: "S3Bucket",
|
1402
1722
|
# s3_key: "S3Key",
|
1403
1723
|
# s3_object_version: "S3ObjectVersion",
|
1724
|
+
# image_uri: "String",
|
1404
1725
|
# }
|
1405
1726
|
#
|
1406
1727
|
# @!attribute [rw] zip_file
|
@@ -1422,13 +1743,18 @@ module Aws::Lambda
|
|
1422
1743
|
# to use.
|
1423
1744
|
# @return [String]
|
1424
1745
|
#
|
1746
|
+
# @!attribute [rw] image_uri
|
1747
|
+
# URI of a container image in the Amazon ECR registry.
|
1748
|
+
# @return [String]
|
1749
|
+
#
|
1425
1750
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionCode AWS API Documentation
|
1426
1751
|
#
|
1427
1752
|
class FunctionCode < Struct.new(
|
1428
1753
|
:zip_file,
|
1429
1754
|
:s3_bucket,
|
1430
1755
|
:s3_key,
|
1431
|
-
:s3_object_version
|
1756
|
+
:s3_object_version,
|
1757
|
+
:image_uri)
|
1432
1758
|
SENSITIVE = [:zip_file]
|
1433
1759
|
include Aws::Structure
|
1434
1760
|
end
|
@@ -1443,11 +1769,21 @@ module Aws::Lambda
|
|
1443
1769
|
# A presigned URL that you can use to download the deployment package.
|
1444
1770
|
# @return [String]
|
1445
1771
|
#
|
1772
|
+
# @!attribute [rw] image_uri
|
1773
|
+
# URI of a container image in the Amazon ECR registry.
|
1774
|
+
# @return [String]
|
1775
|
+
#
|
1776
|
+
# @!attribute [rw] resolved_image_uri
|
1777
|
+
# The resolved URI for the image.
|
1778
|
+
# @return [String]
|
1779
|
+
#
|
1446
1780
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionCodeLocation AWS API Documentation
|
1447
1781
|
#
|
1448
1782
|
class FunctionCodeLocation < Struct.new(
|
1449
1783
|
:repository_type,
|
1450
|
-
:location
|
1784
|
+
:location,
|
1785
|
+
:image_uri,
|
1786
|
+
:resolved_image_uri)
|
1451
1787
|
SENSITIVE = []
|
1452
1788
|
include Aws::Structure
|
1453
1789
|
end
|
@@ -1578,6 +1914,23 @@ module Aws::Lambda
|
|
1578
1914
|
# Connection settings for an Amazon EFS file system.
|
1579
1915
|
# @return [Array<Types::FileSystemConfig>]
|
1580
1916
|
#
|
1917
|
+
# @!attribute [rw] package_type
|
1918
|
+
# The type of deployment package. Set to `Image` for container image
|
1919
|
+
# and set `Zip` for ZIP archive.
|
1920
|
+
# @return [String]
|
1921
|
+
#
|
1922
|
+
# @!attribute [rw] image_config_response
|
1923
|
+
# The function's image configuration values.
|
1924
|
+
# @return [Types::ImageConfigResponse]
|
1925
|
+
#
|
1926
|
+
# @!attribute [rw] signing_profile_version_arn
|
1927
|
+
# The ARN of the signing profile version.
|
1928
|
+
# @return [String]
|
1929
|
+
#
|
1930
|
+
# @!attribute [rw] signing_job_arn
|
1931
|
+
# The ARN of the signing job.
|
1932
|
+
# @return [String]
|
1933
|
+
#
|
1581
1934
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration AWS API Documentation
|
1582
1935
|
#
|
1583
1936
|
class FunctionConfiguration < Struct.new(
|
@@ -1607,7 +1960,11 @@ module Aws::Lambda
|
|
1607
1960
|
:last_update_status,
|
1608
1961
|
:last_update_status_reason,
|
1609
1962
|
:last_update_status_reason_code,
|
1610
|
-
:file_system_configs
|
1963
|
+
:file_system_configs,
|
1964
|
+
:package_type,
|
1965
|
+
:image_config_response,
|
1966
|
+
:signing_profile_version_arn,
|
1967
|
+
:signing_job_arn)
|
1611
1968
|
SENSITIVE = []
|
1612
1969
|
include Aws::Structure
|
1613
1970
|
end
|
@@ -1718,6 +2075,38 @@ module Aws::Lambda
|
|
1718
2075
|
include Aws::Structure
|
1719
2076
|
end
|
1720
2077
|
|
2078
|
+
# @note When making an API call, you may pass GetCodeSigningConfigRequest
|
2079
|
+
# data as a hash:
|
2080
|
+
#
|
2081
|
+
# {
|
2082
|
+
# code_signing_config_arn: "CodeSigningConfigArn", # required
|
2083
|
+
# }
|
2084
|
+
#
|
2085
|
+
# @!attribute [rw] code_signing_config_arn
|
2086
|
+
# The The Amazon Resource Name (ARN) of the code signing
|
2087
|
+
# configuration.
|
2088
|
+
# @return [String]
|
2089
|
+
#
|
2090
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCodeSigningConfigRequest AWS API Documentation
|
2091
|
+
#
|
2092
|
+
class GetCodeSigningConfigRequest < Struct.new(
|
2093
|
+
:code_signing_config_arn)
|
2094
|
+
SENSITIVE = []
|
2095
|
+
include Aws::Structure
|
2096
|
+
end
|
2097
|
+
|
2098
|
+
# @!attribute [rw] code_signing_config
|
2099
|
+
# The code signing configuration
|
2100
|
+
# @return [Types::CodeSigningConfig]
|
2101
|
+
#
|
2102
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCodeSigningConfigResponse AWS API Documentation
|
2103
|
+
#
|
2104
|
+
class GetCodeSigningConfigResponse < Struct.new(
|
2105
|
+
:code_signing_config)
|
2106
|
+
SENSITIVE = []
|
2107
|
+
include Aws::Structure
|
2108
|
+
end
|
2109
|
+
|
1721
2110
|
# @note When making an API call, you may pass GetEventSourceMappingRequest
|
1722
2111
|
# data as a hash:
|
1723
2112
|
#
|
@@ -1725,14 +2114,75 @@ module Aws::Lambda
|
|
1725
2114
|
# uuid: "String", # required
|
1726
2115
|
# }
|
1727
2116
|
#
|
1728
|
-
# @!attribute [rw] uuid
|
1729
|
-
# The identifier of the event source mapping.
|
2117
|
+
# @!attribute [rw] uuid
|
2118
|
+
# The identifier of the event source mapping.
|
2119
|
+
# @return [String]
|
2120
|
+
#
|
2121
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMappingRequest AWS API Documentation
|
2122
|
+
#
|
2123
|
+
class GetEventSourceMappingRequest < Struct.new(
|
2124
|
+
:uuid)
|
2125
|
+
SENSITIVE = []
|
2126
|
+
include Aws::Structure
|
2127
|
+
end
|
2128
|
+
|
2129
|
+
# @note When making an API call, you may pass GetFunctionCodeSigningConfigRequest
|
2130
|
+
# data as a hash:
|
2131
|
+
#
|
2132
|
+
# {
|
2133
|
+
# function_name: "FunctionName", # required
|
2134
|
+
# }
|
2135
|
+
#
|
2136
|
+
# @!attribute [rw] function_name
|
2137
|
+
# The name of the Lambda function.
|
2138
|
+
#
|
2139
|
+
# **Name formats**
|
2140
|
+
#
|
2141
|
+
# * **Function name** - `MyFunction`.
|
2142
|
+
#
|
2143
|
+
# * **Function ARN** -
|
2144
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
2145
|
+
#
|
2146
|
+
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
2147
|
+
#
|
2148
|
+
# The length constraint applies only to the full ARN. If you specify
|
2149
|
+
# only the function name, it is limited to 64 characters in length.
|
2150
|
+
# @return [String]
|
2151
|
+
#
|
2152
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionCodeSigningConfigRequest AWS API Documentation
|
2153
|
+
#
|
2154
|
+
class GetFunctionCodeSigningConfigRequest < Struct.new(
|
2155
|
+
:function_name)
|
2156
|
+
SENSITIVE = []
|
2157
|
+
include Aws::Structure
|
2158
|
+
end
|
2159
|
+
|
2160
|
+
# @!attribute [rw] code_signing_config_arn
|
2161
|
+
# The The Amazon Resource Name (ARN) of the code signing
|
2162
|
+
# configuration.
|
2163
|
+
# @return [String]
|
2164
|
+
#
|
2165
|
+
# @!attribute [rw] function_name
|
2166
|
+
# The name of the Lambda function.
|
2167
|
+
#
|
2168
|
+
# **Name formats**
|
2169
|
+
#
|
2170
|
+
# * **Function name** - `MyFunction`.
|
2171
|
+
#
|
2172
|
+
# * **Function ARN** -
|
2173
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
2174
|
+
#
|
2175
|
+
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
2176
|
+
#
|
2177
|
+
# The length constraint applies only to the full ARN. If you specify
|
2178
|
+
# only the function name, it is limited to 64 characters in length.
|
1730
2179
|
# @return [String]
|
1731
2180
|
#
|
1732
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/
|
2181
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionCodeSigningConfigResponse AWS API Documentation
|
1733
2182
|
#
|
1734
|
-
class
|
1735
|
-
:
|
2183
|
+
class GetFunctionCodeSigningConfigResponse < Struct.new(
|
2184
|
+
:code_signing_config_arn,
|
2185
|
+
:function_name)
|
1736
2186
|
SENSITIVE = []
|
1737
2187
|
include Aws::Structure
|
1738
2188
|
end
|
@@ -2209,6 +2659,102 @@ module Aws::Lambda
|
|
2209
2659
|
include Aws::Structure
|
2210
2660
|
end
|
2211
2661
|
|
2662
|
+
# Configuration values that override the container image Dockerfile. See
|
2663
|
+
# [Override Container settings][1].
|
2664
|
+
#
|
2665
|
+
#
|
2666
|
+
#
|
2667
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-images-settings.html
|
2668
|
+
#
|
2669
|
+
# @note When making an API call, you may pass ImageConfig
|
2670
|
+
# data as a hash:
|
2671
|
+
#
|
2672
|
+
# {
|
2673
|
+
# entry_point: ["String"],
|
2674
|
+
# command: ["String"],
|
2675
|
+
# working_directory: "WorkingDirectory",
|
2676
|
+
# }
|
2677
|
+
#
|
2678
|
+
# @!attribute [rw] entry_point
|
2679
|
+
# Specifies the entry point to their application, which is typically
|
2680
|
+
# the location of the runtime executable.
|
2681
|
+
# @return [Array<String>]
|
2682
|
+
#
|
2683
|
+
# @!attribute [rw] command
|
2684
|
+
# Specifies parameters that you want to pass in with ENTRYPOINT.
|
2685
|
+
# @return [Array<String>]
|
2686
|
+
#
|
2687
|
+
# @!attribute [rw] working_directory
|
2688
|
+
# Specifies the working directory.
|
2689
|
+
# @return [String]
|
2690
|
+
#
|
2691
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ImageConfig AWS API Documentation
|
2692
|
+
#
|
2693
|
+
class ImageConfig < Struct.new(
|
2694
|
+
:entry_point,
|
2695
|
+
:command,
|
2696
|
+
:working_directory)
|
2697
|
+
SENSITIVE = []
|
2698
|
+
include Aws::Structure
|
2699
|
+
end
|
2700
|
+
|
2701
|
+
# Error response to GetFunctionConfiguration.
|
2702
|
+
#
|
2703
|
+
# @!attribute [rw] error_code
|
2704
|
+
# Error code.
|
2705
|
+
# @return [String]
|
2706
|
+
#
|
2707
|
+
# @!attribute [rw] message
|
2708
|
+
# Error message.
|
2709
|
+
# @return [String]
|
2710
|
+
#
|
2711
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ImageConfigError AWS API Documentation
|
2712
|
+
#
|
2713
|
+
class ImageConfigError < Struct.new(
|
2714
|
+
:error_code,
|
2715
|
+
:message)
|
2716
|
+
SENSITIVE = [:message]
|
2717
|
+
include Aws::Structure
|
2718
|
+
end
|
2719
|
+
|
2720
|
+
# Response to GetFunctionConfiguration request.
|
2721
|
+
#
|
2722
|
+
# @!attribute [rw] image_config
|
2723
|
+
# Configuration values that override the container image Dockerfile.
|
2724
|
+
# @return [Types::ImageConfig]
|
2725
|
+
#
|
2726
|
+
# @!attribute [rw] error
|
2727
|
+
# Error response to GetFunctionConfiguration.
|
2728
|
+
# @return [Types::ImageConfigError]
|
2729
|
+
#
|
2730
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ImageConfigResponse AWS API Documentation
|
2731
|
+
#
|
2732
|
+
class ImageConfigResponse < Struct.new(
|
2733
|
+
:image_config,
|
2734
|
+
:error)
|
2735
|
+
SENSITIVE = []
|
2736
|
+
include Aws::Structure
|
2737
|
+
end
|
2738
|
+
|
2739
|
+
# The code signature failed the integrity check. Lambda always blocks
|
2740
|
+
# deployment if the integrity check fails, even if code signing policy
|
2741
|
+
# is set to WARN.
|
2742
|
+
#
|
2743
|
+
# @!attribute [rw] type
|
2744
|
+
# @return [String]
|
2745
|
+
#
|
2746
|
+
# @!attribute [rw] message
|
2747
|
+
# @return [String]
|
2748
|
+
#
|
2749
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvalidCodeSignatureException AWS API Documentation
|
2750
|
+
#
|
2751
|
+
class InvalidCodeSignatureException < Struct.new(
|
2752
|
+
:type,
|
2753
|
+
:message)
|
2754
|
+
SENSITIVE = []
|
2755
|
+
include Aws::Structure
|
2756
|
+
end
|
2757
|
+
|
2212
2758
|
# One of the parameters in the request is invalid.
|
2213
2759
|
#
|
2214
2760
|
# @!attribute [rw] type
|
@@ -2572,11 +3118,21 @@ module Aws::Lambda
|
|
2572
3118
|
# The size of the layer archive in bytes.
|
2573
3119
|
# @return [Integer]
|
2574
3120
|
#
|
3121
|
+
# @!attribute [rw] signing_profile_version_arn
|
3122
|
+
# The Amazon Resource Name (ARN) for a signing profile version.
|
3123
|
+
# @return [String]
|
3124
|
+
#
|
3125
|
+
# @!attribute [rw] signing_job_arn
|
3126
|
+
# The Amazon Resource Name (ARN) of a signing job.
|
3127
|
+
# @return [String]
|
3128
|
+
#
|
2575
3129
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Layer AWS API Documentation
|
2576
3130
|
#
|
2577
3131
|
class Layer < Struct.new(
|
2578
3132
|
:arn,
|
2579
|
-
:code_size
|
3133
|
+
:code_size,
|
3134
|
+
:signing_profile_version_arn,
|
3135
|
+
:signing_job_arn)
|
2580
3136
|
SENSITIVE = []
|
2581
3137
|
include Aws::Structure
|
2582
3138
|
end
|
@@ -2647,12 +3203,22 @@ module Aws::Lambda
|
|
2647
3203
|
# The size of the layer archive in bytes.
|
2648
3204
|
# @return [Integer]
|
2649
3205
|
#
|
3206
|
+
# @!attribute [rw] signing_profile_version_arn
|
3207
|
+
# The Amazon Resource Name (ARN) for a signing profile version.
|
3208
|
+
# @return [String]
|
3209
|
+
#
|
3210
|
+
# @!attribute [rw] signing_job_arn
|
3211
|
+
# The Amazon Resource Name (ARN) of a signing job.
|
3212
|
+
# @return [String]
|
3213
|
+
#
|
2650
3214
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/LayerVersionContentOutput AWS API Documentation
|
2651
3215
|
#
|
2652
3216
|
class LayerVersionContentOutput < Struct.new(
|
2653
3217
|
:location,
|
2654
3218
|
:code_sha_256,
|
2655
|
-
:code_size
|
3219
|
+
:code_size,
|
3220
|
+
:signing_profile_version_arn,
|
3221
|
+
:signing_job_arn)
|
2656
3222
|
SENSITIVE = []
|
2657
3223
|
include Aws::Structure
|
2658
3224
|
end
|
@@ -2797,6 +3363,49 @@ module Aws::Lambda
|
|
2797
3363
|
include Aws::Structure
|
2798
3364
|
end
|
2799
3365
|
|
3366
|
+
# @note When making an API call, you may pass ListCodeSigningConfigsRequest
|
3367
|
+
# data as a hash:
|
3368
|
+
#
|
3369
|
+
# {
|
3370
|
+
# marker: "String",
|
3371
|
+
# max_items: 1,
|
3372
|
+
# }
|
3373
|
+
#
|
3374
|
+
# @!attribute [rw] marker
|
3375
|
+
# Specify the pagination token that's returned by a previous request
|
3376
|
+
# to retrieve the next page of results.
|
3377
|
+
# @return [String]
|
3378
|
+
#
|
3379
|
+
# @!attribute [rw] max_items
|
3380
|
+
# Maximum number of items to return.
|
3381
|
+
# @return [Integer]
|
3382
|
+
#
|
3383
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCodeSigningConfigsRequest AWS API Documentation
|
3384
|
+
#
|
3385
|
+
class ListCodeSigningConfigsRequest < Struct.new(
|
3386
|
+
:marker,
|
3387
|
+
:max_items)
|
3388
|
+
SENSITIVE = []
|
3389
|
+
include Aws::Structure
|
3390
|
+
end
|
3391
|
+
|
3392
|
+
# @!attribute [rw] next_marker
|
3393
|
+
# The pagination token that's included if more results are available.
|
3394
|
+
# @return [String]
|
3395
|
+
#
|
3396
|
+
# @!attribute [rw] code_signing_configs
|
3397
|
+
# The code signing configurations
|
3398
|
+
# @return [Array<Types::CodeSigningConfig>]
|
3399
|
+
#
|
3400
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCodeSigningConfigsResponse AWS API Documentation
|
3401
|
+
#
|
3402
|
+
class ListCodeSigningConfigsResponse < Struct.new(
|
3403
|
+
:next_marker,
|
3404
|
+
:code_signing_configs)
|
3405
|
+
SENSITIVE = []
|
3406
|
+
include Aws::Structure
|
3407
|
+
end
|
3408
|
+
|
2800
3409
|
# @note When making an API call, you may pass ListEventSourceMappingsRequest
|
2801
3410
|
# data as a hash:
|
2802
3411
|
#
|
@@ -2938,6 +3547,56 @@ module Aws::Lambda
|
|
2938
3547
|
include Aws::Structure
|
2939
3548
|
end
|
2940
3549
|
|
3550
|
+
# @note When making an API call, you may pass ListFunctionsByCodeSigningConfigRequest
|
3551
|
+
# data as a hash:
|
3552
|
+
#
|
3553
|
+
# {
|
3554
|
+
# code_signing_config_arn: "CodeSigningConfigArn", # required
|
3555
|
+
# marker: "String",
|
3556
|
+
# max_items: 1,
|
3557
|
+
# }
|
3558
|
+
#
|
3559
|
+
# @!attribute [rw] code_signing_config_arn
|
3560
|
+
# The The Amazon Resource Name (ARN) of the code signing
|
3561
|
+
# configuration.
|
3562
|
+
# @return [String]
|
3563
|
+
#
|
3564
|
+
# @!attribute [rw] marker
|
3565
|
+
# Specify the pagination token that's returned by a previous request
|
3566
|
+
# to retrieve the next page of results.
|
3567
|
+
# @return [String]
|
3568
|
+
#
|
3569
|
+
# @!attribute [rw] max_items
|
3570
|
+
# Maximum number of items to return.
|
3571
|
+
# @return [Integer]
|
3572
|
+
#
|
3573
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsByCodeSigningConfigRequest AWS API Documentation
|
3574
|
+
#
|
3575
|
+
class ListFunctionsByCodeSigningConfigRequest < Struct.new(
|
3576
|
+
:code_signing_config_arn,
|
3577
|
+
:marker,
|
3578
|
+
:max_items)
|
3579
|
+
SENSITIVE = []
|
3580
|
+
include Aws::Structure
|
3581
|
+
end
|
3582
|
+
|
3583
|
+
# @!attribute [rw] next_marker
|
3584
|
+
# The pagination token that's included if more results are available.
|
3585
|
+
# @return [String]
|
3586
|
+
#
|
3587
|
+
# @!attribute [rw] function_arns
|
3588
|
+
# The function ARNs.
|
3589
|
+
# @return [Array<String>]
|
3590
|
+
#
|
3591
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsByCodeSigningConfigResponse AWS API Documentation
|
3592
|
+
#
|
3593
|
+
class ListFunctionsByCodeSigningConfigResponse < Struct.new(
|
3594
|
+
:next_marker,
|
3595
|
+
:function_arns)
|
3596
|
+
SENSITIVE = []
|
3597
|
+
include Aws::Structure
|
3598
|
+
end
|
3599
|
+
|
2941
3600
|
# @note When making an API call, you may pass ListFunctionsRequest
|
2942
3601
|
# data as a hash:
|
2943
3602
|
#
|
@@ -3581,6 +4240,74 @@ module Aws::Lambda
|
|
3581
4240
|
include Aws::Structure
|
3582
4241
|
end
|
3583
4242
|
|
4243
|
+
# @note When making an API call, you may pass PutFunctionCodeSigningConfigRequest
|
4244
|
+
# data as a hash:
|
4245
|
+
#
|
4246
|
+
# {
|
4247
|
+
# code_signing_config_arn: "CodeSigningConfigArn", # required
|
4248
|
+
# function_name: "FunctionName", # required
|
4249
|
+
# }
|
4250
|
+
#
|
4251
|
+
# @!attribute [rw] code_signing_config_arn
|
4252
|
+
# The The Amazon Resource Name (ARN) of the code signing
|
4253
|
+
# configuration.
|
4254
|
+
# @return [String]
|
4255
|
+
#
|
4256
|
+
# @!attribute [rw] function_name
|
4257
|
+
# The name of the Lambda function.
|
4258
|
+
#
|
4259
|
+
# **Name formats**
|
4260
|
+
#
|
4261
|
+
# * **Function name** - `MyFunction`.
|
4262
|
+
#
|
4263
|
+
# * **Function ARN** -
|
4264
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
4265
|
+
#
|
4266
|
+
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
4267
|
+
#
|
4268
|
+
# The length constraint applies only to the full ARN. If you specify
|
4269
|
+
# only the function name, it is limited to 64 characters in length.
|
4270
|
+
# @return [String]
|
4271
|
+
#
|
4272
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionCodeSigningConfigRequest AWS API Documentation
|
4273
|
+
#
|
4274
|
+
class PutFunctionCodeSigningConfigRequest < Struct.new(
|
4275
|
+
:code_signing_config_arn,
|
4276
|
+
:function_name)
|
4277
|
+
SENSITIVE = []
|
4278
|
+
include Aws::Structure
|
4279
|
+
end
|
4280
|
+
|
4281
|
+
# @!attribute [rw] code_signing_config_arn
|
4282
|
+
# The The Amazon Resource Name (ARN) of the code signing
|
4283
|
+
# configuration.
|
4284
|
+
# @return [String]
|
4285
|
+
#
|
4286
|
+
# @!attribute [rw] function_name
|
4287
|
+
# The name of the Lambda function.
|
4288
|
+
#
|
4289
|
+
# **Name formats**
|
4290
|
+
#
|
4291
|
+
# * **Function name** - `MyFunction`.
|
4292
|
+
#
|
4293
|
+
# * **Function ARN** -
|
4294
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
4295
|
+
#
|
4296
|
+
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
4297
|
+
#
|
4298
|
+
# The length constraint applies only to the full ARN. If you specify
|
4299
|
+
# only the function name, it is limited to 64 characters in length.
|
4300
|
+
# @return [String]
|
4301
|
+
#
|
4302
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionCodeSigningConfigResponse AWS API Documentation
|
4303
|
+
#
|
4304
|
+
class PutFunctionCodeSigningConfigResponse < Struct.new(
|
4305
|
+
:code_signing_config_arn,
|
4306
|
+
:function_name)
|
4307
|
+
SENSITIVE = []
|
4308
|
+
include Aws::Structure
|
4309
|
+
end
|
4310
|
+
|
3584
4311
|
# @note When making an API call, you may pass PutFunctionConcurrencyRequest
|
3585
4312
|
# data as a hash:
|
3586
4313
|
#
|
@@ -3991,6 +4718,47 @@ module Aws::Lambda
|
|
3991
4718
|
include Aws::Structure
|
3992
4719
|
end
|
3993
4720
|
|
4721
|
+
# (MQ) The Secrets Manager secret that stores your broker credentials.
|
4722
|
+
# To store your secret, use the following format: ` \{ "username": "your
|
4723
|
+
# username", "password": "your password" \}`
|
4724
|
+
#
|
4725
|
+
# @note When making an API call, you may pass SourceAccessConfiguration
|
4726
|
+
# data as a hash:
|
4727
|
+
#
|
4728
|
+
# {
|
4729
|
+
# type: "BASIC_AUTH", # accepts BASIC_AUTH
|
4730
|
+
# uri: "Arn",
|
4731
|
+
# }
|
4732
|
+
#
|
4733
|
+
# @!attribute [rw] type
|
4734
|
+
# To reference the secret, use the following format: `[ \{ "Type":
|
4735
|
+
# "BASIC_AUTH", "URI": "secretARN" \} ]`
|
4736
|
+
#
|
4737
|
+
# The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
|
4738
|
+
# you can use customer or service managed keys. When using a customer
|
4739
|
+
# managed KMS key, the Lambda execution role requires `kms:Decrypt`
|
4740
|
+
# permissions.
|
4741
|
+
# @return [String]
|
4742
|
+
#
|
4743
|
+
# @!attribute [rw] uri
|
4744
|
+
# To reference the secret, use the following format: `[ \{ "Type":
|
4745
|
+
# "BASIC_AUTH", "URI": "secretARN" \} ]`
|
4746
|
+
#
|
4747
|
+
# The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
|
4748
|
+
# you can use customer or service managed keys. When using a customer
|
4749
|
+
# managed KMS key, the Lambda execution role requires `kms:Decrypt`
|
4750
|
+
# permissions.
|
4751
|
+
# @return [String]
|
4752
|
+
#
|
4753
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/SourceAccessConfiguration AWS API Documentation
|
4754
|
+
#
|
4755
|
+
class SourceAccessConfiguration < Struct.new(
|
4756
|
+
:type,
|
4757
|
+
:uri)
|
4758
|
+
SENSITIVE = []
|
4759
|
+
include Aws::Structure
|
4760
|
+
end
|
4761
|
+
|
3994
4762
|
# AWS Lambda was not able to set up VPC access for the Lambda function
|
3995
4763
|
# because one or more configured subnets has no available IP addresses.
|
3996
4764
|
#
|
@@ -4211,6 +4979,60 @@ module Aws::Lambda
|
|
4211
4979
|
include Aws::Structure
|
4212
4980
|
end
|
4213
4981
|
|
4982
|
+
# @note When making an API call, you may pass UpdateCodeSigningConfigRequest
|
4983
|
+
# data as a hash:
|
4984
|
+
#
|
4985
|
+
# {
|
4986
|
+
# code_signing_config_arn: "CodeSigningConfigArn", # required
|
4987
|
+
# description: "Description",
|
4988
|
+
# allowed_publishers: {
|
4989
|
+
# signing_profile_version_arns: ["Arn"], # required
|
4990
|
+
# },
|
4991
|
+
# code_signing_policies: {
|
4992
|
+
# untrusted_artifact_on_deployment: "Warn", # accepts Warn, Enforce
|
4993
|
+
# },
|
4994
|
+
# }
|
4995
|
+
#
|
4996
|
+
# @!attribute [rw] code_signing_config_arn
|
4997
|
+
# The The Amazon Resource Name (ARN) of the code signing
|
4998
|
+
# configuration.
|
4999
|
+
# @return [String]
|
5000
|
+
#
|
5001
|
+
# @!attribute [rw] description
|
5002
|
+
# Descriptive name for this code signing configuration.
|
5003
|
+
# @return [String]
|
5004
|
+
#
|
5005
|
+
# @!attribute [rw] allowed_publishers
|
5006
|
+
# Signing profiles for this code signing configuration.
|
5007
|
+
# @return [Types::AllowedPublishers]
|
5008
|
+
#
|
5009
|
+
# @!attribute [rw] code_signing_policies
|
5010
|
+
# The code signing policy.
|
5011
|
+
# @return [Types::CodeSigningPolicies]
|
5012
|
+
#
|
5013
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateCodeSigningConfigRequest AWS API Documentation
|
5014
|
+
#
|
5015
|
+
class UpdateCodeSigningConfigRequest < Struct.new(
|
5016
|
+
:code_signing_config_arn,
|
5017
|
+
:description,
|
5018
|
+
:allowed_publishers,
|
5019
|
+
:code_signing_policies)
|
5020
|
+
SENSITIVE = []
|
5021
|
+
include Aws::Structure
|
5022
|
+
end
|
5023
|
+
|
5024
|
+
# @!attribute [rw] code_signing_config
|
5025
|
+
# The code signing configuration
|
5026
|
+
# @return [Types::CodeSigningConfig]
|
5027
|
+
#
|
5028
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateCodeSigningConfigResponse AWS API Documentation
|
5029
|
+
#
|
5030
|
+
class UpdateCodeSigningConfigResponse < Struct.new(
|
5031
|
+
:code_signing_config)
|
5032
|
+
SENSITIVE = []
|
5033
|
+
include Aws::Structure
|
5034
|
+
end
|
5035
|
+
|
4214
5036
|
# @note When making an API call, you may pass UpdateEventSourceMappingRequest
|
4215
5037
|
# data as a hash:
|
4216
5038
|
#
|
@@ -4232,6 +5054,12 @@ module Aws::Lambda
|
|
4232
5054
|
# bisect_batch_on_function_error: false,
|
4233
5055
|
# maximum_retry_attempts: 1,
|
4234
5056
|
# parallelization_factor: 1,
|
5057
|
+
# source_access_configurations: [
|
5058
|
+
# {
|
5059
|
+
# type: "BASIC_AUTH", # accepts BASIC_AUTH
|
5060
|
+
# uri: "Arn",
|
5061
|
+
# },
|
5062
|
+
# ],
|
4235
5063
|
# }
|
4236
5064
|
#
|
4237
5065
|
# @!attribute [rw] uuid
|
@@ -4306,6 +5134,20 @@ module Aws::Lambda
|
|
4306
5134
|
# concurrently.
|
4307
5135
|
# @return [Integer]
|
4308
5136
|
#
|
5137
|
+
# @!attribute [rw] source_access_configurations
|
5138
|
+
# (MQ) The Secrets Manager secret that stores your broker credentials.
|
5139
|
+
# To store your secret, use the following format: ` \{ "username":
|
5140
|
+
# "your username", "password": "your password" \}`
|
5141
|
+
#
|
5142
|
+
# To reference the secret, use the following format: `[ \{ "Type":
|
5143
|
+
# "BASIC_AUTH", "URI": "secretARN" \} ]`
|
5144
|
+
#
|
5145
|
+
# The value of `Type` is always `BASIC_AUTH`. To encrypt the secret,
|
5146
|
+
# you can use customer or service managed keys. When using a customer
|
5147
|
+
# managed KMS key, the Lambda execution role requires `kms:Decrypt`
|
5148
|
+
# permissions.
|
5149
|
+
# @return [Array<Types::SourceAccessConfiguration>]
|
5150
|
+
#
|
4309
5151
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMappingRequest AWS API Documentation
|
4310
5152
|
#
|
4311
5153
|
class UpdateEventSourceMappingRequest < Struct.new(
|
@@ -4318,7 +5160,8 @@ module Aws::Lambda
|
|
4318
5160
|
:maximum_record_age_in_seconds,
|
4319
5161
|
:bisect_batch_on_function_error,
|
4320
5162
|
:maximum_retry_attempts,
|
4321
|
-
:parallelization_factor
|
5163
|
+
:parallelization_factor,
|
5164
|
+
:source_access_configurations)
|
4322
5165
|
SENSITIVE = []
|
4323
5166
|
include Aws::Structure
|
4324
5167
|
end
|
@@ -4332,6 +5175,7 @@ module Aws::Lambda
|
|
4332
5175
|
# s3_bucket: "S3Bucket",
|
4333
5176
|
# s3_key: "S3Key",
|
4334
5177
|
# s3_object_version: "S3ObjectVersion",
|
5178
|
+
# image_uri: "String",
|
4335
5179
|
# publish: false,
|
4336
5180
|
# dry_run: false,
|
4337
5181
|
# revision_id: "String",
|
@@ -4372,6 +5216,10 @@ module Aws::Lambda
|
|
4372
5216
|
# to use.
|
4373
5217
|
# @return [String]
|
4374
5218
|
#
|
5219
|
+
# @!attribute [rw] image_uri
|
5220
|
+
# URI of a container image in the Amazon ECR registry.
|
5221
|
+
# @return [String]
|
5222
|
+
#
|
4375
5223
|
# @!attribute [rw] publish
|
4376
5224
|
# Set to true to publish a new version of the function after updating
|
4377
5225
|
# the code. This has the same effect as calling PublishVersion
|
@@ -4397,6 +5245,7 @@ module Aws::Lambda
|
|
4397
5245
|
:s3_bucket,
|
4398
5246
|
:s3_key,
|
4399
5247
|
:s3_object_version,
|
5248
|
+
:image_uri,
|
4400
5249
|
:publish,
|
4401
5250
|
:dry_run,
|
4402
5251
|
:revision_id)
|
@@ -4439,6 +5288,11 @@ module Aws::Lambda
|
|
4439
5288
|
# local_mount_path: "LocalMountPath", # required
|
4440
5289
|
# },
|
4441
5290
|
# ],
|
5291
|
+
# image_config: {
|
5292
|
+
# entry_point: ["String"],
|
5293
|
+
# command: ["String"],
|
5294
|
+
# working_directory: "WorkingDirectory",
|
5295
|
+
# },
|
4442
5296
|
# }
|
4443
5297
|
#
|
4444
5298
|
# @!attribute [rw] function_name
|
@@ -4552,6 +5406,10 @@ module Aws::Lambda
|
|
4552
5406
|
# Connection settings for an Amazon EFS file system.
|
4553
5407
|
# @return [Array<Types::FileSystemConfig>]
|
4554
5408
|
#
|
5409
|
+
# @!attribute [rw] image_config
|
5410
|
+
# Configuration values that override the container image Dockerfile.
|
5411
|
+
# @return [Types::ImageConfig]
|
5412
|
+
#
|
4555
5413
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfigurationRequest AWS API Documentation
|
4556
5414
|
#
|
4557
5415
|
class UpdateFunctionConfigurationRequest < Struct.new(
|
@@ -4569,7 +5427,8 @@ module Aws::Lambda
|
|
4569
5427
|
:tracing_config,
|
4570
5428
|
:revision_id,
|
4571
5429
|
:layers,
|
4572
|
-
:file_system_configs
|
5430
|
+
:file_system_configs,
|
5431
|
+
:image_config)
|
4573
5432
|
SENSITIVE = []
|
4574
5433
|
include Aws::Structure
|
4575
5434
|
end
|