aws-sdk-lambda 1.53.0 → 1.54.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 +452 -2
- data/lib/aws-sdk-lambda/client_api.rb +257 -0
- data/lib/aws-sdk-lambda/errors.rb +63 -0
- data/lib/aws-sdk-lambda/types.rb +600 -4
- metadata +2 -2
@@ -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 code-signing validation checks fail. If you set the
|
424
|
+
# policy to `Warn`, Lambda allows the deployment and creates a
|
425
|
+
# CloudWatch 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
|
#
|
@@ -644,6 +819,7 @@ module Aws::Lambda
|
|
644
819
|
# local_mount_path: "LocalMountPath", # required
|
645
820
|
# },
|
646
821
|
# ],
|
822
|
+
# code_signing_config_arn: "CodeSigningConfigArn",
|
647
823
|
# }
|
648
824
|
#
|
649
825
|
# @!attribute [rw] function_name
|
@@ -768,6 +944,13 @@ module Aws::Lambda
|
|
768
944
|
# Connection settings for an Amazon EFS file system.
|
769
945
|
# @return [Array<Types::FileSystemConfig>]
|
770
946
|
#
|
947
|
+
# @!attribute [rw] code_signing_config_arn
|
948
|
+
# To enable code signing for this function, specify the ARN of a
|
949
|
+
# code-signing configuration. A code-signing configuration includes
|
950
|
+
# set set of signing profiles, which define the trusted publishers for
|
951
|
+
# this function.
|
952
|
+
# @return [String]
|
953
|
+
#
|
771
954
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest AWS API Documentation
|
772
955
|
#
|
773
956
|
class CreateFunctionRequest < Struct.new(
|
@@ -787,7 +970,8 @@ module Aws::Lambda
|
|
787
970
|
:tracing_config,
|
788
971
|
:tags,
|
789
972
|
:layers,
|
790
|
-
:file_system_configs
|
973
|
+
:file_system_configs,
|
974
|
+
:code_signing_config_arn)
|
791
975
|
SENSITIVE = []
|
792
976
|
include Aws::Structure
|
793
977
|
end
|
@@ -855,6 +1039,30 @@ module Aws::Lambda
|
|
855
1039
|
include Aws::Structure
|
856
1040
|
end
|
857
1041
|
|
1042
|
+
# @note When making an API call, you may pass DeleteCodeSigningConfigRequest
|
1043
|
+
# data as a hash:
|
1044
|
+
#
|
1045
|
+
# {
|
1046
|
+
# code_signing_config_arn: "CodeSigningConfigArn", # required
|
1047
|
+
# }
|
1048
|
+
#
|
1049
|
+
# @!attribute [rw] code_signing_config_arn
|
1050
|
+
# The The Amazon Resource Name (ARN) of the code signing
|
1051
|
+
# configuration.
|
1052
|
+
# @return [String]
|
1053
|
+
#
|
1054
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCodeSigningConfigRequest AWS API Documentation
|
1055
|
+
#
|
1056
|
+
class DeleteCodeSigningConfigRequest < Struct.new(
|
1057
|
+
:code_signing_config_arn)
|
1058
|
+
SENSITIVE = []
|
1059
|
+
include Aws::Structure
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteCodeSigningConfigResponse AWS API Documentation
|
1063
|
+
#
|
1064
|
+
class DeleteCodeSigningConfigResponse < Aws::EmptyStructure; end
|
1065
|
+
|
858
1066
|
# @note When making an API call, you may pass DeleteEventSourceMappingRequest
|
859
1067
|
# data as a hash:
|
860
1068
|
#
|
@@ -874,6 +1082,37 @@ module Aws::Lambda
|
|
874
1082
|
include Aws::Structure
|
875
1083
|
end
|
876
1084
|
|
1085
|
+
# @note When making an API call, you may pass DeleteFunctionCodeSigningConfigRequest
|
1086
|
+
# data as a hash:
|
1087
|
+
#
|
1088
|
+
# {
|
1089
|
+
# function_name: "FunctionName", # required
|
1090
|
+
# }
|
1091
|
+
#
|
1092
|
+
# @!attribute [rw] function_name
|
1093
|
+
# The name of the Lambda function.
|
1094
|
+
#
|
1095
|
+
# **Name formats**
|
1096
|
+
#
|
1097
|
+
# * **Function name** - `MyFunction`.
|
1098
|
+
#
|
1099
|
+
# * **Function ARN** -
|
1100
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
1101
|
+
#
|
1102
|
+
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
1103
|
+
#
|
1104
|
+
# The length constraint applies only to the full ARN. If you specify
|
1105
|
+
# only the function name, it is limited to 64 characters in length.
|
1106
|
+
# @return [String]
|
1107
|
+
#
|
1108
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionCodeSigningConfigRequest AWS API Documentation
|
1109
|
+
#
|
1110
|
+
class DeleteFunctionCodeSigningConfigRequest < Struct.new(
|
1111
|
+
:function_name)
|
1112
|
+
SENSITIVE = []
|
1113
|
+
include Aws::Structure
|
1114
|
+
end
|
1115
|
+
|
877
1116
|
# @note When making an API call, you may pass DeleteFunctionConcurrencyRequest
|
878
1117
|
# data as a hash:
|
879
1118
|
#
|
@@ -1640,6 +1879,14 @@ module Aws::Lambda
|
|
1640
1879
|
# Connection settings for an Amazon EFS file system.
|
1641
1880
|
# @return [Array<Types::FileSystemConfig>]
|
1642
1881
|
#
|
1882
|
+
# @!attribute [rw] signing_profile_version_arn
|
1883
|
+
# The ARN of the signing profile version.
|
1884
|
+
# @return [String]
|
1885
|
+
#
|
1886
|
+
# @!attribute [rw] signing_job_arn
|
1887
|
+
# The ARN of the signing job.
|
1888
|
+
# @return [String]
|
1889
|
+
#
|
1643
1890
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FunctionConfiguration AWS API Documentation
|
1644
1891
|
#
|
1645
1892
|
class FunctionConfiguration < Struct.new(
|
@@ -1669,7 +1916,9 @@ module Aws::Lambda
|
|
1669
1916
|
:last_update_status,
|
1670
1917
|
:last_update_status_reason,
|
1671
1918
|
:last_update_status_reason_code,
|
1672
|
-
:file_system_configs
|
1919
|
+
:file_system_configs,
|
1920
|
+
:signing_profile_version_arn,
|
1921
|
+
:signing_job_arn)
|
1673
1922
|
SENSITIVE = []
|
1674
1923
|
include Aws::Structure
|
1675
1924
|
end
|
@@ -1780,6 +2029,38 @@ module Aws::Lambda
|
|
1780
2029
|
include Aws::Structure
|
1781
2030
|
end
|
1782
2031
|
|
2032
|
+
# @note When making an API call, you may pass GetCodeSigningConfigRequest
|
2033
|
+
# data as a hash:
|
2034
|
+
#
|
2035
|
+
# {
|
2036
|
+
# code_signing_config_arn: "CodeSigningConfigArn", # required
|
2037
|
+
# }
|
2038
|
+
#
|
2039
|
+
# @!attribute [rw] code_signing_config_arn
|
2040
|
+
# The The Amazon Resource Name (ARN) of the code signing
|
2041
|
+
# configuration.
|
2042
|
+
# @return [String]
|
2043
|
+
#
|
2044
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCodeSigningConfigRequest AWS API Documentation
|
2045
|
+
#
|
2046
|
+
class GetCodeSigningConfigRequest < Struct.new(
|
2047
|
+
:code_signing_config_arn)
|
2048
|
+
SENSITIVE = []
|
2049
|
+
include Aws::Structure
|
2050
|
+
end
|
2051
|
+
|
2052
|
+
# @!attribute [rw] code_signing_config
|
2053
|
+
# The code signing configuration
|
2054
|
+
# @return [Types::CodeSigningConfig]
|
2055
|
+
#
|
2056
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetCodeSigningConfigResponse AWS API Documentation
|
2057
|
+
#
|
2058
|
+
class GetCodeSigningConfigResponse < Struct.new(
|
2059
|
+
:code_signing_config)
|
2060
|
+
SENSITIVE = []
|
2061
|
+
include Aws::Structure
|
2062
|
+
end
|
2063
|
+
|
1783
2064
|
# @note When making an API call, you may pass GetEventSourceMappingRequest
|
1784
2065
|
# data as a hash:
|
1785
2066
|
#
|
@@ -1799,6 +2080,67 @@ module Aws::Lambda
|
|
1799
2080
|
include Aws::Structure
|
1800
2081
|
end
|
1801
2082
|
|
2083
|
+
# @note When making an API call, you may pass GetFunctionCodeSigningConfigRequest
|
2084
|
+
# data as a hash:
|
2085
|
+
#
|
2086
|
+
# {
|
2087
|
+
# function_name: "FunctionName", # required
|
2088
|
+
# }
|
2089
|
+
#
|
2090
|
+
# @!attribute [rw] function_name
|
2091
|
+
# The name of the Lambda function.
|
2092
|
+
#
|
2093
|
+
# **Name formats**
|
2094
|
+
#
|
2095
|
+
# * **Function name** - `MyFunction`.
|
2096
|
+
#
|
2097
|
+
# * **Function ARN** -
|
2098
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
2099
|
+
#
|
2100
|
+
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
2101
|
+
#
|
2102
|
+
# The length constraint applies only to the full ARN. If you specify
|
2103
|
+
# only the function name, it is limited to 64 characters in length.
|
2104
|
+
# @return [String]
|
2105
|
+
#
|
2106
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionCodeSigningConfigRequest AWS API Documentation
|
2107
|
+
#
|
2108
|
+
class GetFunctionCodeSigningConfigRequest < Struct.new(
|
2109
|
+
:function_name)
|
2110
|
+
SENSITIVE = []
|
2111
|
+
include Aws::Structure
|
2112
|
+
end
|
2113
|
+
|
2114
|
+
# @!attribute [rw] code_signing_config_arn
|
2115
|
+
# The The Amazon Resource Name (ARN) of the code signing
|
2116
|
+
# configuration.
|
2117
|
+
# @return [String]
|
2118
|
+
#
|
2119
|
+
# @!attribute [rw] function_name
|
2120
|
+
# The name of the Lambda function.
|
2121
|
+
#
|
2122
|
+
# **Name formats**
|
2123
|
+
#
|
2124
|
+
# * **Function name** - `MyFunction`.
|
2125
|
+
#
|
2126
|
+
# * **Function ARN** -
|
2127
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
2128
|
+
#
|
2129
|
+
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
2130
|
+
#
|
2131
|
+
# The length constraint applies only to the full ARN. If you specify
|
2132
|
+
# only the function name, it is limited to 64 characters in length.
|
2133
|
+
# @return [String]
|
2134
|
+
#
|
2135
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionCodeSigningConfigResponse AWS API Documentation
|
2136
|
+
#
|
2137
|
+
class GetFunctionCodeSigningConfigResponse < Struct.new(
|
2138
|
+
:code_signing_config_arn,
|
2139
|
+
:function_name)
|
2140
|
+
SENSITIVE = []
|
2141
|
+
include Aws::Structure
|
2142
|
+
end
|
2143
|
+
|
1802
2144
|
# @note When making an API call, you may pass GetFunctionConcurrencyRequest
|
1803
2145
|
# data as a hash:
|
1804
2146
|
#
|
@@ -2271,6 +2613,25 @@ module Aws::Lambda
|
|
2271
2613
|
include Aws::Structure
|
2272
2614
|
end
|
2273
2615
|
|
2616
|
+
# The code signature failed the integrity check. Lambda always blocks
|
2617
|
+
# deployment if the integrity check fails, even if code signing policy
|
2618
|
+
# is set to WARN.
|
2619
|
+
#
|
2620
|
+
# @!attribute [rw] type
|
2621
|
+
# @return [String]
|
2622
|
+
#
|
2623
|
+
# @!attribute [rw] message
|
2624
|
+
# @return [String]
|
2625
|
+
#
|
2626
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvalidCodeSignatureException AWS API Documentation
|
2627
|
+
#
|
2628
|
+
class InvalidCodeSignatureException < Struct.new(
|
2629
|
+
:type,
|
2630
|
+
:message)
|
2631
|
+
SENSITIVE = []
|
2632
|
+
include Aws::Structure
|
2633
|
+
end
|
2634
|
+
|
2274
2635
|
# One of the parameters in the request is invalid.
|
2275
2636
|
#
|
2276
2637
|
# @!attribute [rw] type
|
@@ -2634,11 +2995,21 @@ module Aws::Lambda
|
|
2634
2995
|
# The size of the layer archive in bytes.
|
2635
2996
|
# @return [Integer]
|
2636
2997
|
#
|
2998
|
+
# @!attribute [rw] signing_profile_version_arn
|
2999
|
+
# The Amazon Resource Name (ARN) for a signing profile version.
|
3000
|
+
# @return [String]
|
3001
|
+
#
|
3002
|
+
# @!attribute [rw] signing_job_arn
|
3003
|
+
# The Amazon Resource Name (ARN) of a signing job.
|
3004
|
+
# @return [String]
|
3005
|
+
#
|
2637
3006
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Layer AWS API Documentation
|
2638
3007
|
#
|
2639
3008
|
class Layer < Struct.new(
|
2640
3009
|
:arn,
|
2641
|
-
:code_size
|
3010
|
+
:code_size,
|
3011
|
+
:signing_profile_version_arn,
|
3012
|
+
:signing_job_arn)
|
2642
3013
|
SENSITIVE = []
|
2643
3014
|
include Aws::Structure
|
2644
3015
|
end
|
@@ -2709,12 +3080,22 @@ module Aws::Lambda
|
|
2709
3080
|
# The size of the layer archive in bytes.
|
2710
3081
|
# @return [Integer]
|
2711
3082
|
#
|
3083
|
+
# @!attribute [rw] signing_profile_version_arn
|
3084
|
+
# The Amazon Resource Name (ARN) for a signing profile version.
|
3085
|
+
# @return [String]
|
3086
|
+
#
|
3087
|
+
# @!attribute [rw] signing_job_arn
|
3088
|
+
# The Amazon Resource Name (ARN) of a signing job.
|
3089
|
+
# @return [String]
|
3090
|
+
#
|
2712
3091
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/LayerVersionContentOutput AWS API Documentation
|
2713
3092
|
#
|
2714
3093
|
class LayerVersionContentOutput < Struct.new(
|
2715
3094
|
:location,
|
2716
3095
|
:code_sha_256,
|
2717
|
-
:code_size
|
3096
|
+
:code_size,
|
3097
|
+
:signing_profile_version_arn,
|
3098
|
+
:signing_job_arn)
|
2718
3099
|
SENSITIVE = []
|
2719
3100
|
include Aws::Structure
|
2720
3101
|
end
|
@@ -2859,6 +3240,49 @@ module Aws::Lambda
|
|
2859
3240
|
include Aws::Structure
|
2860
3241
|
end
|
2861
3242
|
|
3243
|
+
# @note When making an API call, you may pass ListCodeSigningConfigsRequest
|
3244
|
+
# data as a hash:
|
3245
|
+
#
|
3246
|
+
# {
|
3247
|
+
# marker: "String",
|
3248
|
+
# max_items: 1,
|
3249
|
+
# }
|
3250
|
+
#
|
3251
|
+
# @!attribute [rw] marker
|
3252
|
+
# Specify the pagination token that's returned by a previous request
|
3253
|
+
# to retrieve the next page of results.
|
3254
|
+
# @return [String]
|
3255
|
+
#
|
3256
|
+
# @!attribute [rw] max_items
|
3257
|
+
# Maximum number of items to return.
|
3258
|
+
# @return [Integer]
|
3259
|
+
#
|
3260
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCodeSigningConfigsRequest AWS API Documentation
|
3261
|
+
#
|
3262
|
+
class ListCodeSigningConfigsRequest < Struct.new(
|
3263
|
+
:marker,
|
3264
|
+
:max_items)
|
3265
|
+
SENSITIVE = []
|
3266
|
+
include Aws::Structure
|
3267
|
+
end
|
3268
|
+
|
3269
|
+
# @!attribute [rw] next_marker
|
3270
|
+
# The pagination token that's included if more results are available.
|
3271
|
+
# @return [String]
|
3272
|
+
#
|
3273
|
+
# @!attribute [rw] code_signing_configs
|
3274
|
+
# The code signing configurations
|
3275
|
+
# @return [Array<Types::CodeSigningConfig>]
|
3276
|
+
#
|
3277
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListCodeSigningConfigsResponse AWS API Documentation
|
3278
|
+
#
|
3279
|
+
class ListCodeSigningConfigsResponse < Struct.new(
|
3280
|
+
:next_marker,
|
3281
|
+
:code_signing_configs)
|
3282
|
+
SENSITIVE = []
|
3283
|
+
include Aws::Structure
|
3284
|
+
end
|
3285
|
+
|
2862
3286
|
# @note When making an API call, you may pass ListEventSourceMappingsRequest
|
2863
3287
|
# data as a hash:
|
2864
3288
|
#
|
@@ -3000,6 +3424,56 @@ module Aws::Lambda
|
|
3000
3424
|
include Aws::Structure
|
3001
3425
|
end
|
3002
3426
|
|
3427
|
+
# @note When making an API call, you may pass ListFunctionsByCodeSigningConfigRequest
|
3428
|
+
# data as a hash:
|
3429
|
+
#
|
3430
|
+
# {
|
3431
|
+
# code_signing_config_arn: "CodeSigningConfigArn", # required
|
3432
|
+
# marker: "String",
|
3433
|
+
# max_items: 1,
|
3434
|
+
# }
|
3435
|
+
#
|
3436
|
+
# @!attribute [rw] code_signing_config_arn
|
3437
|
+
# The The Amazon Resource Name (ARN) of the code signing
|
3438
|
+
# configuration.
|
3439
|
+
# @return [String]
|
3440
|
+
#
|
3441
|
+
# @!attribute [rw] marker
|
3442
|
+
# Specify the pagination token that's returned by a previous request
|
3443
|
+
# to retrieve the next page of results.
|
3444
|
+
# @return [String]
|
3445
|
+
#
|
3446
|
+
# @!attribute [rw] max_items
|
3447
|
+
# Maximum number of items to return.
|
3448
|
+
# @return [Integer]
|
3449
|
+
#
|
3450
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsByCodeSigningConfigRequest AWS API Documentation
|
3451
|
+
#
|
3452
|
+
class ListFunctionsByCodeSigningConfigRequest < Struct.new(
|
3453
|
+
:code_signing_config_arn,
|
3454
|
+
:marker,
|
3455
|
+
:max_items)
|
3456
|
+
SENSITIVE = []
|
3457
|
+
include Aws::Structure
|
3458
|
+
end
|
3459
|
+
|
3460
|
+
# @!attribute [rw] next_marker
|
3461
|
+
# The pagination token that's included if more results are available.
|
3462
|
+
# @return [String]
|
3463
|
+
#
|
3464
|
+
# @!attribute [rw] function_arns
|
3465
|
+
# The function ARNs.
|
3466
|
+
# @return [Array<String>]
|
3467
|
+
#
|
3468
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionsByCodeSigningConfigResponse AWS API Documentation
|
3469
|
+
#
|
3470
|
+
class ListFunctionsByCodeSigningConfigResponse < Struct.new(
|
3471
|
+
:next_marker,
|
3472
|
+
:function_arns)
|
3473
|
+
SENSITIVE = []
|
3474
|
+
include Aws::Structure
|
3475
|
+
end
|
3476
|
+
|
3003
3477
|
# @note When making an API call, you may pass ListFunctionsRequest
|
3004
3478
|
# data as a hash:
|
3005
3479
|
#
|
@@ -3643,6 +4117,74 @@ module Aws::Lambda
|
|
3643
4117
|
include Aws::Structure
|
3644
4118
|
end
|
3645
4119
|
|
4120
|
+
# @note When making an API call, you may pass PutFunctionCodeSigningConfigRequest
|
4121
|
+
# data as a hash:
|
4122
|
+
#
|
4123
|
+
# {
|
4124
|
+
# code_signing_config_arn: "CodeSigningConfigArn", # required
|
4125
|
+
# function_name: "FunctionName", # required
|
4126
|
+
# }
|
4127
|
+
#
|
4128
|
+
# @!attribute [rw] code_signing_config_arn
|
4129
|
+
# The The Amazon Resource Name (ARN) of the code signing
|
4130
|
+
# configuration.
|
4131
|
+
# @return [String]
|
4132
|
+
#
|
4133
|
+
# @!attribute [rw] function_name
|
4134
|
+
# The name of the Lambda function.
|
4135
|
+
#
|
4136
|
+
# **Name formats**
|
4137
|
+
#
|
4138
|
+
# * **Function name** - `MyFunction`.
|
4139
|
+
#
|
4140
|
+
# * **Function ARN** -
|
4141
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
4142
|
+
#
|
4143
|
+
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
4144
|
+
#
|
4145
|
+
# The length constraint applies only to the full ARN. If you specify
|
4146
|
+
# only the function name, it is limited to 64 characters in length.
|
4147
|
+
# @return [String]
|
4148
|
+
#
|
4149
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionCodeSigningConfigRequest AWS API Documentation
|
4150
|
+
#
|
4151
|
+
class PutFunctionCodeSigningConfigRequest < Struct.new(
|
4152
|
+
:code_signing_config_arn,
|
4153
|
+
:function_name)
|
4154
|
+
SENSITIVE = []
|
4155
|
+
include Aws::Structure
|
4156
|
+
end
|
4157
|
+
|
4158
|
+
# @!attribute [rw] code_signing_config_arn
|
4159
|
+
# The The Amazon Resource Name (ARN) of the code signing
|
4160
|
+
# configuration.
|
4161
|
+
# @return [String]
|
4162
|
+
#
|
4163
|
+
# @!attribute [rw] function_name
|
4164
|
+
# The name of the Lambda function.
|
4165
|
+
#
|
4166
|
+
# **Name formats**
|
4167
|
+
#
|
4168
|
+
# * **Function name** - `MyFunction`.
|
4169
|
+
#
|
4170
|
+
# * **Function ARN** -
|
4171
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
4172
|
+
#
|
4173
|
+
# * **Partial ARN** - `123456789012:function:MyFunction`.
|
4174
|
+
#
|
4175
|
+
# The length constraint applies only to the full ARN. If you specify
|
4176
|
+
# only the function name, it is limited to 64 characters in length.
|
4177
|
+
# @return [String]
|
4178
|
+
#
|
4179
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionCodeSigningConfigResponse AWS API Documentation
|
4180
|
+
#
|
4181
|
+
class PutFunctionCodeSigningConfigResponse < Struct.new(
|
4182
|
+
:code_signing_config_arn,
|
4183
|
+
:function_name)
|
4184
|
+
SENSITIVE = []
|
4185
|
+
include Aws::Structure
|
4186
|
+
end
|
4187
|
+
|
3646
4188
|
# @note When making an API call, you may pass PutFunctionConcurrencyRequest
|
3647
4189
|
# data as a hash:
|
3648
4190
|
#
|
@@ -4314,6 +4856,60 @@ module Aws::Lambda
|
|
4314
4856
|
include Aws::Structure
|
4315
4857
|
end
|
4316
4858
|
|
4859
|
+
# @note When making an API call, you may pass UpdateCodeSigningConfigRequest
|
4860
|
+
# data as a hash:
|
4861
|
+
#
|
4862
|
+
# {
|
4863
|
+
# code_signing_config_arn: "CodeSigningConfigArn", # required
|
4864
|
+
# description: "Description",
|
4865
|
+
# allowed_publishers: {
|
4866
|
+
# signing_profile_version_arns: ["Arn"], # required
|
4867
|
+
# },
|
4868
|
+
# code_signing_policies: {
|
4869
|
+
# untrusted_artifact_on_deployment: "Warn", # accepts Warn, Enforce
|
4870
|
+
# },
|
4871
|
+
# }
|
4872
|
+
#
|
4873
|
+
# @!attribute [rw] code_signing_config_arn
|
4874
|
+
# The The Amazon Resource Name (ARN) of the code signing
|
4875
|
+
# configuration.
|
4876
|
+
# @return [String]
|
4877
|
+
#
|
4878
|
+
# @!attribute [rw] description
|
4879
|
+
# Descriptive name for this code signing configuration.
|
4880
|
+
# @return [String]
|
4881
|
+
#
|
4882
|
+
# @!attribute [rw] allowed_publishers
|
4883
|
+
# Signing profiles for this code signing configuration.
|
4884
|
+
# @return [Types::AllowedPublishers]
|
4885
|
+
#
|
4886
|
+
# @!attribute [rw] code_signing_policies
|
4887
|
+
# The code signing policy.
|
4888
|
+
# @return [Types::CodeSigningPolicies]
|
4889
|
+
#
|
4890
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateCodeSigningConfigRequest AWS API Documentation
|
4891
|
+
#
|
4892
|
+
class UpdateCodeSigningConfigRequest < Struct.new(
|
4893
|
+
:code_signing_config_arn,
|
4894
|
+
:description,
|
4895
|
+
:allowed_publishers,
|
4896
|
+
:code_signing_policies)
|
4897
|
+
SENSITIVE = []
|
4898
|
+
include Aws::Structure
|
4899
|
+
end
|
4900
|
+
|
4901
|
+
# @!attribute [rw] code_signing_config
|
4902
|
+
# The code signing configuration
|
4903
|
+
# @return [Types::CodeSigningConfig]
|
4904
|
+
#
|
4905
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateCodeSigningConfigResponse AWS API Documentation
|
4906
|
+
#
|
4907
|
+
class UpdateCodeSigningConfigResponse < Struct.new(
|
4908
|
+
:code_signing_config)
|
4909
|
+
SENSITIVE = []
|
4910
|
+
include Aws::Structure
|
4911
|
+
end
|
4912
|
+
|
4317
4913
|
# @note When making an API call, you may pass UpdateEventSourceMappingRequest
|
4318
4914
|
# data as a hash:
|
4319
4915
|
#
|