aws-sdk-lambda 1.33.0 → 1.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-lambda.rb +1 -1
- data/lib/aws-sdk-lambda/client.rb +255 -2
- data/lib/aws-sdk-lambda/client_api.rb +145 -0
- data/lib/aws-sdk-lambda/errors.rb +21 -0
- data/lib/aws-sdk-lambda/types.rb +366 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 891abab2f6d1ae1308a3b4d4fd7cc3b08d8cd44a
|
4
|
+
data.tar.gz: 2a179bc8c1dfdb9f89d9bc548c19e9995a5607a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69cd965337b268730a0c53340031396d664bdbdd883692caf678b69ebd1f049227dab455c3937b016c31ab0be89e13c8be123e4d1130d32a099595ec62c818f4
|
7
|
+
data.tar.gz: 83ee4c634e9422b94aba6c649a0ea44f281287f313f6cc13e2f25cfe4a6c48a501a5c0321f76017436a67eac3cb48cc5c9428f486030cada5e880ffcb52644b7
|
data/lib/aws-sdk-lambda.rb
CHANGED
@@ -1314,6 +1314,44 @@ module Aws::Lambda
|
|
1314
1314
|
req.send_request(options)
|
1315
1315
|
end
|
1316
1316
|
|
1317
|
+
# Deletes the provisioned concurrency configuration for a function.
|
1318
|
+
#
|
1319
|
+
# @option params [required, String] :function_name
|
1320
|
+
# The name of the Lambda function.
|
1321
|
+
#
|
1322
|
+
# **Name formats**
|
1323
|
+
#
|
1324
|
+
# * **Function name** - `my-function`.
|
1325
|
+
#
|
1326
|
+
# * **Function ARN** -
|
1327
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
1328
|
+
#
|
1329
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
1330
|
+
#
|
1331
|
+
# The length constraint applies only to the full ARN. If you specify
|
1332
|
+
# only the function name, it is limited to 64 characters in length.
|
1333
|
+
#
|
1334
|
+
# @option params [required, String] :qualifier
|
1335
|
+
# The version number or alias name.
|
1336
|
+
#
|
1337
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1338
|
+
#
|
1339
|
+
# @example Request syntax with placeholder values
|
1340
|
+
#
|
1341
|
+
# resp = client.delete_provisioned_concurrency_config({
|
1342
|
+
# function_name: "FunctionName", # required
|
1343
|
+
# qualifier: "Qualifier", # required
|
1344
|
+
# })
|
1345
|
+
#
|
1346
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteProvisionedConcurrencyConfig AWS API Documentation
|
1347
|
+
#
|
1348
|
+
# @overload delete_provisioned_concurrency_config(params = {})
|
1349
|
+
# @param [Hash] params ({})
|
1350
|
+
def delete_provisioned_concurrency_config(params = {}, options = {})
|
1351
|
+
req = build_request(:delete_provisioned_concurrency_config, params)
|
1352
|
+
req.send_request(options)
|
1353
|
+
end
|
1354
|
+
|
1317
1355
|
# Retrieves details about your account's [limits][1] and usage in an
|
1318
1356
|
# AWS Region.
|
1319
1357
|
#
|
@@ -1650,6 +1688,47 @@ module Aws::Lambda
|
|
1650
1688
|
req.send_request(options)
|
1651
1689
|
end
|
1652
1690
|
|
1691
|
+
# Returns details about the concurrency configuration for a function. To
|
1692
|
+
# set a concurrency limit for a function, use PutFunctionConcurrency.
|
1693
|
+
#
|
1694
|
+
# @option params [required, String] :function_name
|
1695
|
+
# The name of the Lambda function.
|
1696
|
+
#
|
1697
|
+
# **Name formats**
|
1698
|
+
#
|
1699
|
+
# * **Function name** - `my-function`.
|
1700
|
+
#
|
1701
|
+
# * **Function ARN** -
|
1702
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
1703
|
+
#
|
1704
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
1705
|
+
#
|
1706
|
+
# The length constraint applies only to the full ARN. If you specify
|
1707
|
+
# only the function name, it is limited to 64 characters in length.
|
1708
|
+
#
|
1709
|
+
# @return [Types::GetFunctionConcurrencyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1710
|
+
#
|
1711
|
+
# * {Types::GetFunctionConcurrencyResponse#reserved_concurrent_executions #reserved_concurrent_executions} => Integer
|
1712
|
+
#
|
1713
|
+
# @example Request syntax with placeholder values
|
1714
|
+
#
|
1715
|
+
# resp = client.get_function_concurrency({
|
1716
|
+
# function_name: "FunctionName", # required
|
1717
|
+
# })
|
1718
|
+
#
|
1719
|
+
# @example Response structure
|
1720
|
+
#
|
1721
|
+
# resp.reserved_concurrent_executions #=> Integer
|
1722
|
+
#
|
1723
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConcurrency AWS API Documentation
|
1724
|
+
#
|
1725
|
+
# @overload get_function_concurrency(params = {})
|
1726
|
+
# @param [Hash] params ({})
|
1727
|
+
def get_function_concurrency(params = {}, options = {})
|
1728
|
+
req = build_request(:get_function_concurrency, params)
|
1729
|
+
req.send_request(options)
|
1730
|
+
end
|
1731
|
+
|
1653
1732
|
# Returns the version-specific settings of a Lambda function or version.
|
1654
1733
|
# The output includes only options that can vary between versions of a
|
1655
1734
|
# function. To modify these settings, use UpdateFunctionConfiguration.
|
@@ -2064,6 +2143,61 @@ module Aws::Lambda
|
|
2064
2143
|
req.send_request(options)
|
2065
2144
|
end
|
2066
2145
|
|
2146
|
+
# Retrieves the provisioned concurrency configuration for a function's
|
2147
|
+
# alias or version.
|
2148
|
+
#
|
2149
|
+
# @option params [required, String] :function_name
|
2150
|
+
# The name of the Lambda function.
|
2151
|
+
#
|
2152
|
+
# **Name formats**
|
2153
|
+
#
|
2154
|
+
# * **Function name** - `my-function`.
|
2155
|
+
#
|
2156
|
+
# * **Function ARN** -
|
2157
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
2158
|
+
#
|
2159
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
2160
|
+
#
|
2161
|
+
# The length constraint applies only to the full ARN. If you specify
|
2162
|
+
# only the function name, it is limited to 64 characters in length.
|
2163
|
+
#
|
2164
|
+
# @option params [required, String] :qualifier
|
2165
|
+
# The version number or alias name.
|
2166
|
+
#
|
2167
|
+
# @return [Types::GetProvisionedConcurrencyConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2168
|
+
#
|
2169
|
+
# * {Types::GetProvisionedConcurrencyConfigResponse#requested_provisioned_concurrent_executions #requested_provisioned_concurrent_executions} => Integer
|
2170
|
+
# * {Types::GetProvisionedConcurrencyConfigResponse#available_provisioned_concurrent_executions #available_provisioned_concurrent_executions} => Integer
|
2171
|
+
# * {Types::GetProvisionedConcurrencyConfigResponse#allocated_provisioned_concurrent_executions #allocated_provisioned_concurrent_executions} => Integer
|
2172
|
+
# * {Types::GetProvisionedConcurrencyConfigResponse#status #status} => String
|
2173
|
+
# * {Types::GetProvisionedConcurrencyConfigResponse#status_reason #status_reason} => String
|
2174
|
+
# * {Types::GetProvisionedConcurrencyConfigResponse#last_modified #last_modified} => Time
|
2175
|
+
#
|
2176
|
+
# @example Request syntax with placeholder values
|
2177
|
+
#
|
2178
|
+
# resp = client.get_provisioned_concurrency_config({
|
2179
|
+
# function_name: "FunctionName", # required
|
2180
|
+
# qualifier: "Qualifier", # required
|
2181
|
+
# })
|
2182
|
+
#
|
2183
|
+
# @example Response structure
|
2184
|
+
#
|
2185
|
+
# resp.requested_provisioned_concurrent_executions #=> Integer
|
2186
|
+
# resp.available_provisioned_concurrent_executions #=> Integer
|
2187
|
+
# resp.allocated_provisioned_concurrent_executions #=> Integer
|
2188
|
+
# resp.status #=> String, one of "IN_PROGRESS", "READY", "FAILED"
|
2189
|
+
# resp.status_reason #=> String
|
2190
|
+
# resp.last_modified #=> Time
|
2191
|
+
#
|
2192
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetProvisionedConcurrencyConfig AWS API Documentation
|
2193
|
+
#
|
2194
|
+
# @overload get_provisioned_concurrency_config(params = {})
|
2195
|
+
# @param [Hash] params ({})
|
2196
|
+
def get_provisioned_concurrency_config(params = {}, options = {})
|
2197
|
+
req = build_request(:get_provisioned_concurrency_config, params)
|
2198
|
+
req.send_request(options)
|
2199
|
+
end
|
2200
|
+
|
2067
2201
|
# Invokes a Lambda function. You can invoke a function synchronously
|
2068
2202
|
# (and wait for the response), or asynchronously. To invoke a function
|
2069
2203
|
# asynchronously, set `InvocationType` to `Event`.
|
@@ -2720,6 +2854,65 @@ module Aws::Lambda
|
|
2720
2854
|
req.send_request(options)
|
2721
2855
|
end
|
2722
2856
|
|
2857
|
+
# Retrieves a list of provisioned concurrency configurations for a
|
2858
|
+
# function.
|
2859
|
+
#
|
2860
|
+
# @option params [required, String] :function_name
|
2861
|
+
# The name of the Lambda function.
|
2862
|
+
#
|
2863
|
+
# **Name formats**
|
2864
|
+
#
|
2865
|
+
# * **Function name** - `my-function`.
|
2866
|
+
#
|
2867
|
+
# * **Function ARN** -
|
2868
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
2869
|
+
#
|
2870
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
2871
|
+
#
|
2872
|
+
# The length constraint applies only to the full ARN. If you specify
|
2873
|
+
# only the function name, it is limited to 64 characters in length.
|
2874
|
+
#
|
2875
|
+
# @option params [String] :marker
|
2876
|
+
# Specify the pagination token that's returned by a previous request to
|
2877
|
+
# retrieve the next page of results.
|
2878
|
+
#
|
2879
|
+
# @option params [Integer] :max_items
|
2880
|
+
# Specify a number to limit the number of configurations returned.
|
2881
|
+
#
|
2882
|
+
# @return [Types::ListProvisionedConcurrencyConfigsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2883
|
+
#
|
2884
|
+
# * {Types::ListProvisionedConcurrencyConfigsResponse#provisioned_concurrency_configs #provisioned_concurrency_configs} => Array<Types::ProvisionedConcurrencyConfigListItem>
|
2885
|
+
# * {Types::ListProvisionedConcurrencyConfigsResponse#next_marker #next_marker} => String
|
2886
|
+
#
|
2887
|
+
# @example Request syntax with placeholder values
|
2888
|
+
#
|
2889
|
+
# resp = client.list_provisioned_concurrency_configs({
|
2890
|
+
# function_name: "FunctionName", # required
|
2891
|
+
# marker: "String",
|
2892
|
+
# max_items: 1,
|
2893
|
+
# })
|
2894
|
+
#
|
2895
|
+
# @example Response structure
|
2896
|
+
#
|
2897
|
+
# resp.provisioned_concurrency_configs #=> Array
|
2898
|
+
# resp.provisioned_concurrency_configs[0].function_arn #=> String
|
2899
|
+
# resp.provisioned_concurrency_configs[0].requested_provisioned_concurrent_executions #=> Integer
|
2900
|
+
# resp.provisioned_concurrency_configs[0].available_provisioned_concurrent_executions #=> Integer
|
2901
|
+
# resp.provisioned_concurrency_configs[0].allocated_provisioned_concurrent_executions #=> Integer
|
2902
|
+
# resp.provisioned_concurrency_configs[0].status #=> String, one of "IN_PROGRESS", "READY", "FAILED"
|
2903
|
+
# resp.provisioned_concurrency_configs[0].status_reason #=> String
|
2904
|
+
# resp.provisioned_concurrency_configs[0].last_modified #=> Time
|
2905
|
+
# resp.next_marker #=> String
|
2906
|
+
#
|
2907
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListProvisionedConcurrencyConfigs AWS API Documentation
|
2908
|
+
#
|
2909
|
+
# @overload list_provisioned_concurrency_configs(params = {})
|
2910
|
+
# @param [Hash] params ({})
|
2911
|
+
def list_provisioned_concurrency_configs(params = {}, options = {})
|
2912
|
+
req = build_request(:list_provisioned_concurrency_configs, params)
|
2913
|
+
req.send_request(options)
|
2914
|
+
end
|
2915
|
+
|
2723
2916
|
# Returns a function's [tags][1]. You can also view tags with
|
2724
2917
|
# GetFunction.
|
2725
2918
|
#
|
@@ -3124,7 +3317,7 @@ module Aws::Lambda
|
|
3124
3317
|
# number of events simultaneously, and prevents it from scaling beyond
|
3125
3318
|
# that level. Use GetFunction to see the current setting for a function.
|
3126
3319
|
#
|
3127
|
-
# Use GetAccountSettings to see your
|
3320
|
+
# Use GetAccountSettings to see your Regional concurrency limit. You can
|
3128
3321
|
# reserve concurrency for as many functions as you like, as long as you
|
3129
3322
|
# leave at least 100 simultaneous executions unreserved for functions
|
3130
3323
|
# that aren't configured with a per-function limit. For more
|
@@ -3275,6 +3468,66 @@ module Aws::Lambda
|
|
3275
3468
|
req.send_request(options)
|
3276
3469
|
end
|
3277
3470
|
|
3471
|
+
# Adds a provisioned concurrency configuration to a function's alias or
|
3472
|
+
# version.
|
3473
|
+
#
|
3474
|
+
# @option params [required, String] :function_name
|
3475
|
+
# The name of the Lambda function.
|
3476
|
+
#
|
3477
|
+
# **Name formats**
|
3478
|
+
#
|
3479
|
+
# * **Function name** - `my-function`.
|
3480
|
+
#
|
3481
|
+
# * **Function ARN** -
|
3482
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
3483
|
+
#
|
3484
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
3485
|
+
#
|
3486
|
+
# The length constraint applies only to the full ARN. If you specify
|
3487
|
+
# only the function name, it is limited to 64 characters in length.
|
3488
|
+
#
|
3489
|
+
# @option params [required, String] :qualifier
|
3490
|
+
# The version number or alias name.
|
3491
|
+
#
|
3492
|
+
# @option params [required, Integer] :provisioned_concurrent_executions
|
3493
|
+
# The amount of provisioned concurrency to allocate for the version or
|
3494
|
+
# alias.
|
3495
|
+
#
|
3496
|
+
# @return [Types::PutProvisionedConcurrencyConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3497
|
+
#
|
3498
|
+
# * {Types::PutProvisionedConcurrencyConfigResponse#requested_provisioned_concurrent_executions #requested_provisioned_concurrent_executions} => Integer
|
3499
|
+
# * {Types::PutProvisionedConcurrencyConfigResponse#available_provisioned_concurrent_executions #available_provisioned_concurrent_executions} => Integer
|
3500
|
+
# * {Types::PutProvisionedConcurrencyConfigResponse#allocated_provisioned_concurrent_executions #allocated_provisioned_concurrent_executions} => Integer
|
3501
|
+
# * {Types::PutProvisionedConcurrencyConfigResponse#status #status} => String
|
3502
|
+
# * {Types::PutProvisionedConcurrencyConfigResponse#status_reason #status_reason} => String
|
3503
|
+
# * {Types::PutProvisionedConcurrencyConfigResponse#last_modified #last_modified} => Time
|
3504
|
+
#
|
3505
|
+
# @example Request syntax with placeholder values
|
3506
|
+
#
|
3507
|
+
# resp = client.put_provisioned_concurrency_config({
|
3508
|
+
# function_name: "FunctionName", # required
|
3509
|
+
# qualifier: "Qualifier", # required
|
3510
|
+
# provisioned_concurrent_executions: 1, # required
|
3511
|
+
# })
|
3512
|
+
#
|
3513
|
+
# @example Response structure
|
3514
|
+
#
|
3515
|
+
# resp.requested_provisioned_concurrent_executions #=> Integer
|
3516
|
+
# resp.available_provisioned_concurrent_executions #=> Integer
|
3517
|
+
# resp.allocated_provisioned_concurrent_executions #=> Integer
|
3518
|
+
# resp.status #=> String, one of "IN_PROGRESS", "READY", "FAILED"
|
3519
|
+
# resp.status_reason #=> String
|
3520
|
+
# resp.last_modified #=> Time
|
3521
|
+
#
|
3522
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutProvisionedConcurrencyConfig AWS API Documentation
|
3523
|
+
#
|
3524
|
+
# @overload put_provisioned_concurrency_config(params = {})
|
3525
|
+
# @param [Hash] params ({})
|
3526
|
+
def put_provisioned_concurrency_config(params = {}, options = {})
|
3527
|
+
req = build_request(:put_provisioned_concurrency_config, params)
|
3528
|
+
req.send_request(options)
|
3529
|
+
end
|
3530
|
+
|
3278
3531
|
# Removes a statement from the permissions policy for a version of an
|
3279
3532
|
# [AWS Lambda layer][1]. For more information, see
|
3280
3533
|
# AddLayerVersionPermission.
|
@@ -4246,7 +4499,7 @@ module Aws::Lambda
|
|
4246
4499
|
params: params,
|
4247
4500
|
config: config)
|
4248
4501
|
context[:gem_name] = 'aws-sdk-lambda'
|
4249
|
-
context[:gem_version] = '1.
|
4502
|
+
context[:gem_version] = '1.34.0'
|
4250
4503
|
Seahorse::Client::Request.new(handlers, context)
|
4251
4504
|
end
|
4252
4505
|
|
@@ -44,6 +44,7 @@ module Aws::Lambda
|
|
44
44
|
DeleteFunctionEventInvokeConfigRequest = Shapes::StructureShape.new(name: 'DeleteFunctionEventInvokeConfigRequest')
|
45
45
|
DeleteFunctionRequest = Shapes::StructureShape.new(name: 'DeleteFunctionRequest')
|
46
46
|
DeleteLayerVersionRequest = Shapes::StructureShape.new(name: 'DeleteLayerVersionRequest')
|
47
|
+
DeleteProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'DeleteProvisionedConcurrencyConfigRequest')
|
47
48
|
Description = Shapes::StringShape.new(name: 'Description')
|
48
49
|
DestinationArn = Shapes::StringShape.new(name: 'DestinationArn')
|
49
50
|
DestinationConfig = Shapes::StructureShape.new(name: 'DestinationConfig')
|
@@ -75,6 +76,8 @@ module Aws::Lambda
|
|
75
76
|
GetAccountSettingsResponse = Shapes::StructureShape.new(name: 'GetAccountSettingsResponse')
|
76
77
|
GetAliasRequest = Shapes::StructureShape.new(name: 'GetAliasRequest')
|
77
78
|
GetEventSourceMappingRequest = Shapes::StructureShape.new(name: 'GetEventSourceMappingRequest')
|
79
|
+
GetFunctionConcurrencyRequest = Shapes::StructureShape.new(name: 'GetFunctionConcurrencyRequest')
|
80
|
+
GetFunctionConcurrencyResponse = Shapes::StructureShape.new(name: 'GetFunctionConcurrencyResponse')
|
78
81
|
GetFunctionConfigurationRequest = Shapes::StructureShape.new(name: 'GetFunctionConfigurationRequest')
|
79
82
|
GetFunctionEventInvokeConfigRequest = Shapes::StructureShape.new(name: 'GetFunctionEventInvokeConfigRequest')
|
80
83
|
GetFunctionRequest = Shapes::StructureShape.new(name: 'GetFunctionRequest')
|
@@ -86,6 +89,8 @@ module Aws::Lambda
|
|
86
89
|
GetLayerVersionResponse = Shapes::StructureShape.new(name: 'GetLayerVersionResponse')
|
87
90
|
GetPolicyRequest = Shapes::StructureShape.new(name: 'GetPolicyRequest')
|
88
91
|
GetPolicyResponse = Shapes::StructureShape.new(name: 'GetPolicyResponse')
|
92
|
+
GetProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'GetProvisionedConcurrencyConfigRequest')
|
93
|
+
GetProvisionedConcurrencyConfigResponse = Shapes::StructureShape.new(name: 'GetProvisionedConcurrencyConfigResponse')
|
89
94
|
Handler = Shapes::StringShape.new(name: 'Handler')
|
90
95
|
HttpStatus = Shapes::IntegerShape.new(name: 'HttpStatus')
|
91
96
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
@@ -136,6 +141,8 @@ module Aws::Lambda
|
|
136
141
|
ListLayerVersionsResponse = Shapes::StructureShape.new(name: 'ListLayerVersionsResponse')
|
137
142
|
ListLayersRequest = Shapes::StructureShape.new(name: 'ListLayersRequest')
|
138
143
|
ListLayersResponse = Shapes::StructureShape.new(name: 'ListLayersResponse')
|
144
|
+
ListProvisionedConcurrencyConfigsRequest = Shapes::StructureShape.new(name: 'ListProvisionedConcurrencyConfigsRequest')
|
145
|
+
ListProvisionedConcurrencyConfigsResponse = Shapes::StructureShape.new(name: 'ListProvisionedConcurrencyConfigsResponse')
|
139
146
|
ListTagsRequest = Shapes::StructureShape.new(name: 'ListTagsRequest')
|
140
147
|
ListTagsResponse = Shapes::StructureShape.new(name: 'ListTagsResponse')
|
141
148
|
ListVersionsByFunctionRequest = Shapes::StructureShape.new(name: 'ListVersionsByFunctionRequest')
|
@@ -146,6 +153,7 @@ module Aws::Lambda
|
|
146
153
|
MaxFunctionEventInvokeConfigListItems = Shapes::IntegerShape.new(name: 'MaxFunctionEventInvokeConfigListItems')
|
147
154
|
MaxLayerListItems = Shapes::IntegerShape.new(name: 'MaxLayerListItems')
|
148
155
|
MaxListItems = Shapes::IntegerShape.new(name: 'MaxListItems')
|
156
|
+
MaxProvisionedConcurrencyConfigListItems = Shapes::IntegerShape.new(name: 'MaxProvisionedConcurrencyConfigListItems')
|
149
157
|
MaximumBatchingWindowInSeconds = Shapes::IntegerShape.new(name: 'MaximumBatchingWindowInSeconds')
|
150
158
|
MaximumEventAgeInSeconds = Shapes::IntegerShape.new(name: 'MaximumEventAgeInSeconds')
|
151
159
|
MaximumRecordAgeInSeconds = Shapes::IntegerShape.new(name: 'MaximumRecordAgeInSeconds')
|
@@ -155,18 +163,26 @@ module Aws::Lambda
|
|
155
163
|
NameSpacedFunctionArn = Shapes::StringShape.new(name: 'NameSpacedFunctionArn')
|
156
164
|
NamespacedFunctionName = Shapes::StringShape.new(name: 'NamespacedFunctionName')
|
157
165
|
NamespacedStatementId = Shapes::StringShape.new(name: 'NamespacedStatementId')
|
166
|
+
NonNegativeInteger = Shapes::IntegerShape.new(name: 'NonNegativeInteger')
|
158
167
|
OnFailure = Shapes::StructureShape.new(name: 'OnFailure')
|
159
168
|
OnSuccess = Shapes::StructureShape.new(name: 'OnSuccess')
|
160
169
|
OrganizationId = Shapes::StringShape.new(name: 'OrganizationId')
|
161
170
|
ParallelizationFactor = Shapes::IntegerShape.new(name: 'ParallelizationFactor')
|
162
171
|
PolicyLengthExceededException = Shapes::StructureShape.new(name: 'PolicyLengthExceededException')
|
172
|
+
PositiveInteger = Shapes::IntegerShape.new(name: 'PositiveInteger')
|
163
173
|
PreconditionFailedException = Shapes::StructureShape.new(name: 'PreconditionFailedException')
|
164
174
|
Principal = Shapes::StringShape.new(name: 'Principal')
|
175
|
+
ProvisionedConcurrencyConfigList = Shapes::ListShape.new(name: 'ProvisionedConcurrencyConfigList')
|
176
|
+
ProvisionedConcurrencyConfigListItem = Shapes::StructureShape.new(name: 'ProvisionedConcurrencyConfigListItem')
|
177
|
+
ProvisionedConcurrencyConfigNotFoundException = Shapes::StructureShape.new(name: 'ProvisionedConcurrencyConfigNotFoundException')
|
178
|
+
ProvisionedConcurrencyStatusEnum = Shapes::StringShape.new(name: 'ProvisionedConcurrencyStatusEnum')
|
165
179
|
PublishLayerVersionRequest = Shapes::StructureShape.new(name: 'PublishLayerVersionRequest')
|
166
180
|
PublishLayerVersionResponse = Shapes::StructureShape.new(name: 'PublishLayerVersionResponse')
|
167
181
|
PublishVersionRequest = Shapes::StructureShape.new(name: 'PublishVersionRequest')
|
168
182
|
PutFunctionConcurrencyRequest = Shapes::StructureShape.new(name: 'PutFunctionConcurrencyRequest')
|
169
183
|
PutFunctionEventInvokeConfigRequest = Shapes::StructureShape.new(name: 'PutFunctionEventInvokeConfigRequest')
|
184
|
+
PutProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'PutProvisionedConcurrencyConfigRequest')
|
185
|
+
PutProvisionedConcurrencyConfigResponse = Shapes::StructureShape.new(name: 'PutProvisionedConcurrencyConfigResponse')
|
170
186
|
Qualifier = Shapes::StringShape.new(name: 'Qualifier')
|
171
187
|
RemoveLayerVersionPermissionRequest = Shapes::StructureShape.new(name: 'RemoveLayerVersionPermissionRequest')
|
172
188
|
RemovePermissionRequest = Shapes::StructureShape.new(name: 'RemovePermissionRequest')
|
@@ -348,6 +364,10 @@ module Aws::Lambda
|
|
348
364
|
DeleteLayerVersionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
349
365
|
DeleteLayerVersionRequest.struct_class = Types::DeleteLayerVersionRequest
|
350
366
|
|
367
|
+
DeleteProvisionedConcurrencyConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
368
|
+
DeleteProvisionedConcurrencyConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, required: true, location: "querystring", location_name: "Qualifier"))
|
369
|
+
DeleteProvisionedConcurrencyConfigRequest.struct_class = Types::DeleteProvisionedConcurrencyConfigRequest
|
370
|
+
|
351
371
|
DestinationConfig.add_member(:on_success, Shapes::ShapeRef.new(shape: OnSuccess, location_name: "OnSuccess"))
|
352
372
|
DestinationConfig.add_member(:on_failure, Shapes::ShapeRef.new(shape: OnFailure, location_name: "OnFailure"))
|
353
373
|
DestinationConfig.struct_class = Types::DestinationConfig
|
@@ -463,6 +483,12 @@ module Aws::Lambda
|
|
463
483
|
GetEventSourceMappingRequest.add_member(:uuid, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "UUID"))
|
464
484
|
GetEventSourceMappingRequest.struct_class = Types::GetEventSourceMappingRequest
|
465
485
|
|
486
|
+
GetFunctionConcurrencyRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
487
|
+
GetFunctionConcurrencyRequest.struct_class = Types::GetFunctionConcurrencyRequest
|
488
|
+
|
489
|
+
GetFunctionConcurrencyResponse.add_member(:reserved_concurrent_executions, Shapes::ShapeRef.new(shape: ReservedConcurrentExecutions, location_name: "ReservedConcurrentExecutions"))
|
490
|
+
GetFunctionConcurrencyResponse.struct_class = Types::GetFunctionConcurrencyResponse
|
491
|
+
|
466
492
|
GetFunctionConfigurationRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: NamespacedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
467
493
|
GetFunctionConfigurationRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
468
494
|
GetFunctionConfigurationRequest.struct_class = Types::GetFunctionConfigurationRequest
|
@@ -514,6 +540,18 @@ module Aws::Lambda
|
|
514
540
|
GetPolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
|
515
541
|
GetPolicyResponse.struct_class = Types::GetPolicyResponse
|
516
542
|
|
543
|
+
GetProvisionedConcurrencyConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
544
|
+
GetProvisionedConcurrencyConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, required: true, location: "querystring", location_name: "Qualifier"))
|
545
|
+
GetProvisionedConcurrencyConfigRequest.struct_class = Types::GetProvisionedConcurrencyConfigRequest
|
546
|
+
|
547
|
+
GetProvisionedConcurrencyConfigResponse.add_member(:requested_provisioned_concurrent_executions, Shapes::ShapeRef.new(shape: PositiveInteger, location_name: "RequestedProvisionedConcurrentExecutions"))
|
548
|
+
GetProvisionedConcurrencyConfigResponse.add_member(:available_provisioned_concurrent_executions, Shapes::ShapeRef.new(shape: NonNegativeInteger, location_name: "AvailableProvisionedConcurrentExecutions"))
|
549
|
+
GetProvisionedConcurrencyConfigResponse.add_member(:allocated_provisioned_concurrent_executions, Shapes::ShapeRef.new(shape: NonNegativeInteger, location_name: "AllocatedProvisionedConcurrentExecutions"))
|
550
|
+
GetProvisionedConcurrencyConfigResponse.add_member(:status, Shapes::ShapeRef.new(shape: ProvisionedConcurrencyStatusEnum, location_name: "Status"))
|
551
|
+
GetProvisionedConcurrencyConfigResponse.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "StatusReason"))
|
552
|
+
GetProvisionedConcurrencyConfigResponse.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
|
553
|
+
GetProvisionedConcurrencyConfigResponse.struct_class = Types::GetProvisionedConcurrencyConfigResponse
|
554
|
+
|
517
555
|
InvalidParameterValueException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
518
556
|
InvalidParameterValueException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
519
557
|
InvalidParameterValueException.struct_class = Types::InvalidParameterValueException
|
@@ -676,6 +714,15 @@ module Aws::Lambda
|
|
676
714
|
ListLayersResponse.add_member(:layers, Shapes::ShapeRef.new(shape: LayersList, location_name: "Layers"))
|
677
715
|
ListLayersResponse.struct_class = Types::ListLayersResponse
|
678
716
|
|
717
|
+
ListProvisionedConcurrencyConfigsRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
718
|
+
ListProvisionedConcurrencyConfigsRequest.add_member(:marker, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "Marker"))
|
719
|
+
ListProvisionedConcurrencyConfigsRequest.add_member(:max_items, Shapes::ShapeRef.new(shape: MaxProvisionedConcurrencyConfigListItems, location: "querystring", location_name: "MaxItems"))
|
720
|
+
ListProvisionedConcurrencyConfigsRequest.struct_class = Types::ListProvisionedConcurrencyConfigsRequest
|
721
|
+
|
722
|
+
ListProvisionedConcurrencyConfigsResponse.add_member(:provisioned_concurrency_configs, Shapes::ShapeRef.new(shape: ProvisionedConcurrencyConfigList, location_name: "ProvisionedConcurrencyConfigs"))
|
723
|
+
ListProvisionedConcurrencyConfigsResponse.add_member(:next_marker, Shapes::ShapeRef.new(shape: String, location_name: "NextMarker"))
|
724
|
+
ListProvisionedConcurrencyConfigsResponse.struct_class = Types::ListProvisionedConcurrencyConfigsResponse
|
725
|
+
|
679
726
|
ListTagsRequest.add_member(:resource, Shapes::ShapeRef.new(shape: FunctionArn, required: true, location: "uri", location_name: "ARN"))
|
680
727
|
ListTagsRequest.struct_class = Types::ListTagsRequest
|
681
728
|
|
@@ -705,6 +752,21 @@ module Aws::Lambda
|
|
705
752
|
PreconditionFailedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
706
753
|
PreconditionFailedException.struct_class = Types::PreconditionFailedException
|
707
754
|
|
755
|
+
ProvisionedConcurrencyConfigList.member = Shapes::ShapeRef.new(shape: ProvisionedConcurrencyConfigListItem)
|
756
|
+
|
757
|
+
ProvisionedConcurrencyConfigListItem.add_member(:function_arn, Shapes::ShapeRef.new(shape: FunctionArn, location_name: "FunctionArn"))
|
758
|
+
ProvisionedConcurrencyConfigListItem.add_member(:requested_provisioned_concurrent_executions, Shapes::ShapeRef.new(shape: PositiveInteger, location_name: "RequestedProvisionedConcurrentExecutions"))
|
759
|
+
ProvisionedConcurrencyConfigListItem.add_member(:available_provisioned_concurrent_executions, Shapes::ShapeRef.new(shape: NonNegativeInteger, location_name: "AvailableProvisionedConcurrentExecutions"))
|
760
|
+
ProvisionedConcurrencyConfigListItem.add_member(:allocated_provisioned_concurrent_executions, Shapes::ShapeRef.new(shape: NonNegativeInteger, location_name: "AllocatedProvisionedConcurrentExecutions"))
|
761
|
+
ProvisionedConcurrencyConfigListItem.add_member(:status, Shapes::ShapeRef.new(shape: ProvisionedConcurrencyStatusEnum, location_name: "Status"))
|
762
|
+
ProvisionedConcurrencyConfigListItem.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "StatusReason"))
|
763
|
+
ProvisionedConcurrencyConfigListItem.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
|
764
|
+
ProvisionedConcurrencyConfigListItem.struct_class = Types::ProvisionedConcurrencyConfigListItem
|
765
|
+
|
766
|
+
ProvisionedConcurrencyConfigNotFoundException.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
767
|
+
ProvisionedConcurrencyConfigNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
768
|
+
ProvisionedConcurrencyConfigNotFoundException.struct_class = Types::ProvisionedConcurrencyConfigNotFoundException
|
769
|
+
|
708
770
|
PublishLayerVersionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
|
709
771
|
PublishLayerVersionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
710
772
|
PublishLayerVersionRequest.add_member(:content, Shapes::ShapeRef.new(shape: LayerVersionContentInput, required: true, location_name: "Content"))
|
@@ -739,6 +801,19 @@ module Aws::Lambda
|
|
739
801
|
PutFunctionEventInvokeConfigRequest.add_member(:destination_config, Shapes::ShapeRef.new(shape: DestinationConfig, location_name: "DestinationConfig"))
|
740
802
|
PutFunctionEventInvokeConfigRequest.struct_class = Types::PutFunctionEventInvokeConfigRequest
|
741
803
|
|
804
|
+
PutProvisionedConcurrencyConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
805
|
+
PutProvisionedConcurrencyConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, required: true, location: "querystring", location_name: "Qualifier"))
|
806
|
+
PutProvisionedConcurrencyConfigRequest.add_member(:provisioned_concurrent_executions, Shapes::ShapeRef.new(shape: PositiveInteger, required: true, location_name: "ProvisionedConcurrentExecutions"))
|
807
|
+
PutProvisionedConcurrencyConfigRequest.struct_class = Types::PutProvisionedConcurrencyConfigRequest
|
808
|
+
|
809
|
+
PutProvisionedConcurrencyConfigResponse.add_member(:requested_provisioned_concurrent_executions, Shapes::ShapeRef.new(shape: PositiveInteger, location_name: "RequestedProvisionedConcurrentExecutions"))
|
810
|
+
PutProvisionedConcurrencyConfigResponse.add_member(:available_provisioned_concurrent_executions, Shapes::ShapeRef.new(shape: NonNegativeInteger, location_name: "AvailableProvisionedConcurrentExecutions"))
|
811
|
+
PutProvisionedConcurrencyConfigResponse.add_member(:allocated_provisioned_concurrent_executions, Shapes::ShapeRef.new(shape: NonNegativeInteger, location_name: "AllocatedProvisionedConcurrentExecutions"))
|
812
|
+
PutProvisionedConcurrencyConfigResponse.add_member(:status, Shapes::ShapeRef.new(shape: ProvisionedConcurrencyStatusEnum, location_name: "Status"))
|
813
|
+
PutProvisionedConcurrencyConfigResponse.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "StatusReason"))
|
814
|
+
PutProvisionedConcurrencyConfigResponse.add_member(:last_modified, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastModified"))
|
815
|
+
PutProvisionedConcurrencyConfigResponse.struct_class = Types::PutProvisionedConcurrencyConfigResponse
|
816
|
+
|
742
817
|
RemoveLayerVersionPermissionRequest.add_member(:layer_name, Shapes::ShapeRef.new(shape: LayerName, required: true, location: "uri", location_name: "LayerName"))
|
743
818
|
RemoveLayerVersionPermissionRequest.add_member(:version_number, Shapes::ShapeRef.new(shape: LayerVersionNumber, required: true, location: "uri", location_name: "VersionNumber"))
|
744
819
|
RemoveLayerVersionPermissionRequest.add_member(:statement_id, Shapes::ShapeRef.new(shape: StatementId, required: true, location: "uri", location_name: "StatementId"))
|
@@ -968,6 +1043,7 @@ module Aws::Lambda
|
|
968
1043
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
969
1044
|
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
970
1045
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1046
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
971
1047
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
972
1048
|
end)
|
973
1049
|
|
@@ -1032,6 +1108,19 @@ module Aws::Lambda
|
|
1032
1108
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1033
1109
|
end)
|
1034
1110
|
|
1111
|
+
api.add_operation(:delete_provisioned_concurrency_config, Seahorse::Model::Operation.new.tap do |o|
|
1112
|
+
o.name = "DeleteProvisionedConcurrencyConfig"
|
1113
|
+
o.http_method = "DELETE"
|
1114
|
+
o.http_request_uri = "/2019-09-30/functions/{FunctionName}/provisioned-concurrency"
|
1115
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteProvisionedConcurrencyConfigRequest)
|
1116
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
1117
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1118
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
1119
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1120
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1121
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1122
|
+
end)
|
1123
|
+
|
1035
1124
|
api.add_operation(:get_account_settings, Seahorse::Model::Operation.new.tap do |o|
|
1036
1125
|
o.name = "GetAccountSettings"
|
1037
1126
|
o.http_method = "GET"
|
@@ -1078,6 +1167,18 @@ module Aws::Lambda
|
|
1078
1167
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1079
1168
|
end)
|
1080
1169
|
|
1170
|
+
api.add_operation(:get_function_concurrency, Seahorse::Model::Operation.new.tap do |o|
|
1171
|
+
o.name = "GetFunctionConcurrency"
|
1172
|
+
o.http_method = "GET"
|
1173
|
+
o.http_request_uri = "/2019-09-30/functions/{FunctionName}/concurrency"
|
1174
|
+
o.input = Shapes::ShapeRef.new(shape: GetFunctionConcurrencyRequest)
|
1175
|
+
o.output = Shapes::ShapeRef.new(shape: GetFunctionConcurrencyResponse)
|
1176
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1177
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1178
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1179
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1180
|
+
end)
|
1181
|
+
|
1081
1182
|
api.add_operation(:get_function_configuration, Seahorse::Model::Operation.new.tap do |o|
|
1082
1183
|
o.name = "GetFunctionConfiguration"
|
1083
1184
|
o.http_method = "GET"
|
@@ -1150,6 +1251,19 @@ module Aws::Lambda
|
|
1150
1251
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1151
1252
|
end)
|
1152
1253
|
|
1254
|
+
api.add_operation(:get_provisioned_concurrency_config, Seahorse::Model::Operation.new.tap do |o|
|
1255
|
+
o.name = "GetProvisionedConcurrencyConfig"
|
1256
|
+
o.http_method = "GET"
|
1257
|
+
o.http_request_uri = "/2019-09-30/functions/{FunctionName}/provisioned-concurrency"
|
1258
|
+
o.input = Shapes::ShapeRef.new(shape: GetProvisionedConcurrencyConfigRequest)
|
1259
|
+
o.output = Shapes::ShapeRef.new(shape: GetProvisionedConcurrencyConfigResponse)
|
1260
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1261
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1262
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1263
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1264
|
+
o.errors << Shapes::ShapeRef.new(shape: ProvisionedConcurrencyConfigNotFoundException)
|
1265
|
+
end)
|
1266
|
+
|
1153
1267
|
api.add_operation(:invoke, Seahorse::Model::Operation.new.tap do |o|
|
1154
1268
|
o.name = "Invoke"
|
1155
1269
|
o.http_method = "POST"
|
@@ -1300,6 +1414,24 @@ module Aws::Lambda
|
|
1300
1414
|
)
|
1301
1415
|
end)
|
1302
1416
|
|
1417
|
+
api.add_operation(:list_provisioned_concurrency_configs, Seahorse::Model::Operation.new.tap do |o|
|
1418
|
+
o.name = "ListProvisionedConcurrencyConfigs"
|
1419
|
+
o.http_method = "GET"
|
1420
|
+
o.http_request_uri = "/2019-09-30/functions/{FunctionName}/provisioned-concurrency?List=ALL"
|
1421
|
+
o.input = Shapes::ShapeRef.new(shape: ListProvisionedConcurrencyConfigsRequest)
|
1422
|
+
o.output = Shapes::ShapeRef.new(shape: ListProvisionedConcurrencyConfigsResponse)
|
1423
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1424
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1425
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1426
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1427
|
+
o[:pager] = Aws::Pager.new(
|
1428
|
+
limit_key: "max_items",
|
1429
|
+
tokens: {
|
1430
|
+
"next_marker" => "marker"
|
1431
|
+
}
|
1432
|
+
)
|
1433
|
+
end)
|
1434
|
+
|
1303
1435
|
api.add_operation(:list_tags, Seahorse::Model::Operation.new.tap do |o|
|
1304
1436
|
o.name = "ListTags"
|
1305
1437
|
o.http_method = "GET"
|
@@ -1383,6 +1515,19 @@ module Aws::Lambda
|
|
1383
1515
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1384
1516
|
end)
|
1385
1517
|
|
1518
|
+
api.add_operation(:put_provisioned_concurrency_config, Seahorse::Model::Operation.new.tap do |o|
|
1519
|
+
o.name = "PutProvisionedConcurrencyConfig"
|
1520
|
+
o.http_method = "PUT"
|
1521
|
+
o.http_request_uri = "/2019-09-30/functions/{FunctionName}/provisioned-concurrency"
|
1522
|
+
o.input = Shapes::ShapeRef.new(shape: PutProvisionedConcurrencyConfigRequest)
|
1523
|
+
o.output = Shapes::ShapeRef.new(shape: PutProvisionedConcurrencyConfigResponse)
|
1524
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1525
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1526
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
1527
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1528
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1529
|
+
end)
|
1530
|
+
|
1386
1531
|
api.add_operation(:remove_layer_version_permission, Seahorse::Model::Operation.new.tap do |o|
|
1387
1532
|
o.name = "RemoveLayerVersionPermission"
|
1388
1533
|
o.http_method = "DELETE"
|
@@ -372,6 +372,27 @@ module Aws::Lambda
|
|
372
372
|
|
373
373
|
end
|
374
374
|
|
375
|
+
class ProvisionedConcurrencyConfigNotFoundException < ServiceError
|
376
|
+
|
377
|
+
# @param [Seahorse::Client::RequestContext] context
|
378
|
+
# @param [String] message
|
379
|
+
# @param [Aws::Lambda::Types::ProvisionedConcurrencyConfigNotFoundException] data
|
380
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
381
|
+
super(context, message, data)
|
382
|
+
end
|
383
|
+
|
384
|
+
# @return [String]
|
385
|
+
def type
|
386
|
+
@data[:type]
|
387
|
+
end
|
388
|
+
|
389
|
+
# @return [String]
|
390
|
+
def message
|
391
|
+
@message || @data[:message]
|
392
|
+
end
|
393
|
+
|
394
|
+
end
|
395
|
+
|
375
396
|
class RequestTooLargeException < ServiceError
|
376
397
|
|
377
398
|
# @param [Seahorse::Client::RequestContext] context
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -938,6 +938,42 @@ module Aws::Lambda
|
|
938
938
|
include Aws::Structure
|
939
939
|
end
|
940
940
|
|
941
|
+
# @note When making an API call, you may pass DeleteProvisionedConcurrencyConfigRequest
|
942
|
+
# data as a hash:
|
943
|
+
#
|
944
|
+
# {
|
945
|
+
# function_name: "FunctionName", # required
|
946
|
+
# qualifier: "Qualifier", # required
|
947
|
+
# }
|
948
|
+
#
|
949
|
+
# @!attribute [rw] function_name
|
950
|
+
# The name of the Lambda function.
|
951
|
+
#
|
952
|
+
# **Name formats**
|
953
|
+
#
|
954
|
+
# * **Function name** - `my-function`.
|
955
|
+
#
|
956
|
+
# * **Function ARN** -
|
957
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
958
|
+
#
|
959
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
960
|
+
#
|
961
|
+
# The length constraint applies only to the full ARN. If you specify
|
962
|
+
# only the function name, it is limited to 64 characters in length.
|
963
|
+
# @return [String]
|
964
|
+
#
|
965
|
+
# @!attribute [rw] qualifier
|
966
|
+
# The version number or alias name.
|
967
|
+
# @return [String]
|
968
|
+
#
|
969
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteProvisionedConcurrencyConfigRequest AWS API Documentation
|
970
|
+
#
|
971
|
+
class DeleteProvisionedConcurrencyConfigRequest < Struct.new(
|
972
|
+
:function_name,
|
973
|
+
:qualifier)
|
974
|
+
include Aws::Structure
|
975
|
+
end
|
976
|
+
|
941
977
|
# A configuration object that specifies the destination of an event
|
942
978
|
# after Lambda processes it.
|
943
979
|
#
|
@@ -1527,6 +1563,48 @@ module Aws::Lambda
|
|
1527
1563
|
include Aws::Structure
|
1528
1564
|
end
|
1529
1565
|
|
1566
|
+
# @note When making an API call, you may pass GetFunctionConcurrencyRequest
|
1567
|
+
# data as a hash:
|
1568
|
+
#
|
1569
|
+
# {
|
1570
|
+
# function_name: "FunctionName", # required
|
1571
|
+
# }
|
1572
|
+
#
|
1573
|
+
# @!attribute [rw] function_name
|
1574
|
+
# The name of the Lambda function.
|
1575
|
+
#
|
1576
|
+
# **Name formats**
|
1577
|
+
#
|
1578
|
+
# * **Function name** - `my-function`.
|
1579
|
+
#
|
1580
|
+
# * **Function ARN** -
|
1581
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
1582
|
+
#
|
1583
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
1584
|
+
#
|
1585
|
+
# The length constraint applies only to the full ARN. If you specify
|
1586
|
+
# only the function name, it is limited to 64 characters in length.
|
1587
|
+
# @return [String]
|
1588
|
+
#
|
1589
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConcurrencyRequest AWS API Documentation
|
1590
|
+
#
|
1591
|
+
class GetFunctionConcurrencyRequest < Struct.new(
|
1592
|
+
:function_name)
|
1593
|
+
include Aws::Structure
|
1594
|
+
end
|
1595
|
+
|
1596
|
+
# @!attribute [rw] reserved_concurrent_executions
|
1597
|
+
# The number of simultaneous executions that are reserved for the
|
1598
|
+
# function.
|
1599
|
+
# @return [Integer]
|
1600
|
+
#
|
1601
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConcurrencyResponse AWS API Documentation
|
1602
|
+
#
|
1603
|
+
class GetFunctionConcurrencyResponse < Struct.new(
|
1604
|
+
:reserved_concurrent_executions)
|
1605
|
+
include Aws::Structure
|
1606
|
+
end
|
1607
|
+
|
1530
1608
|
# @note When making an API call, you may pass GetFunctionConfigurationRequest
|
1531
1609
|
# data as a hash:
|
1532
1610
|
#
|
@@ -1864,6 +1942,84 @@ module Aws::Lambda
|
|
1864
1942
|
include Aws::Structure
|
1865
1943
|
end
|
1866
1944
|
|
1945
|
+
# @note When making an API call, you may pass GetProvisionedConcurrencyConfigRequest
|
1946
|
+
# data as a hash:
|
1947
|
+
#
|
1948
|
+
# {
|
1949
|
+
# function_name: "FunctionName", # required
|
1950
|
+
# qualifier: "Qualifier", # required
|
1951
|
+
# }
|
1952
|
+
#
|
1953
|
+
# @!attribute [rw] function_name
|
1954
|
+
# The name of the Lambda function.
|
1955
|
+
#
|
1956
|
+
# **Name formats**
|
1957
|
+
#
|
1958
|
+
# * **Function name** - `my-function`.
|
1959
|
+
#
|
1960
|
+
# * **Function ARN** -
|
1961
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
1962
|
+
#
|
1963
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
1964
|
+
#
|
1965
|
+
# The length constraint applies only to the full ARN. If you specify
|
1966
|
+
# only the function name, it is limited to 64 characters in length.
|
1967
|
+
# @return [String]
|
1968
|
+
#
|
1969
|
+
# @!attribute [rw] qualifier
|
1970
|
+
# The version number or alias name.
|
1971
|
+
# @return [String]
|
1972
|
+
#
|
1973
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetProvisionedConcurrencyConfigRequest AWS API Documentation
|
1974
|
+
#
|
1975
|
+
class GetProvisionedConcurrencyConfigRequest < Struct.new(
|
1976
|
+
:function_name,
|
1977
|
+
:qualifier)
|
1978
|
+
include Aws::Structure
|
1979
|
+
end
|
1980
|
+
|
1981
|
+
# @!attribute [rw] requested_provisioned_concurrent_executions
|
1982
|
+
# The amount of provisioned concurrency requested.
|
1983
|
+
# @return [Integer]
|
1984
|
+
#
|
1985
|
+
# @!attribute [rw] available_provisioned_concurrent_executions
|
1986
|
+
# The amount of provisioned concurrency available.
|
1987
|
+
# @return [Integer]
|
1988
|
+
#
|
1989
|
+
# @!attribute [rw] allocated_provisioned_concurrent_executions
|
1990
|
+
# The amount of provisioned concurrency allocated.
|
1991
|
+
# @return [Integer]
|
1992
|
+
#
|
1993
|
+
# @!attribute [rw] status
|
1994
|
+
# The status of the allocation process.
|
1995
|
+
# @return [String]
|
1996
|
+
#
|
1997
|
+
# @!attribute [rw] status_reason
|
1998
|
+
# For failed allocations, the reason that provisioned concurrency
|
1999
|
+
# could not be allocated.
|
2000
|
+
# @return [String]
|
2001
|
+
#
|
2002
|
+
# @!attribute [rw] last_modified
|
2003
|
+
# The date and time that a user last updated the configuration, in
|
2004
|
+
# [ISO 8601 format][1].
|
2005
|
+
#
|
2006
|
+
#
|
2007
|
+
#
|
2008
|
+
# [1]: https://www.iso.org/iso-8601-date-and-time-format.html
|
2009
|
+
# @return [Time]
|
2010
|
+
#
|
2011
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetProvisionedConcurrencyConfigResponse AWS API Documentation
|
2012
|
+
#
|
2013
|
+
class GetProvisionedConcurrencyConfigResponse < Struct.new(
|
2014
|
+
:requested_provisioned_concurrent_executions,
|
2015
|
+
:available_provisioned_concurrent_executions,
|
2016
|
+
:allocated_provisioned_concurrent_executions,
|
2017
|
+
:status,
|
2018
|
+
:status_reason,
|
2019
|
+
:last_modified)
|
2020
|
+
include Aws::Structure
|
2021
|
+
end
|
2022
|
+
|
1867
2023
|
# One of the parameters in the request is invalid.
|
1868
2024
|
#
|
1869
2025
|
# @!attribute [rw] type
|
@@ -2730,6 +2886,65 @@ module Aws::Lambda
|
|
2730
2886
|
include Aws::Structure
|
2731
2887
|
end
|
2732
2888
|
|
2889
|
+
# @note When making an API call, you may pass ListProvisionedConcurrencyConfigsRequest
|
2890
|
+
# data as a hash:
|
2891
|
+
#
|
2892
|
+
# {
|
2893
|
+
# function_name: "FunctionName", # required
|
2894
|
+
# marker: "String",
|
2895
|
+
# max_items: 1,
|
2896
|
+
# }
|
2897
|
+
#
|
2898
|
+
# @!attribute [rw] function_name
|
2899
|
+
# The name of the Lambda function.
|
2900
|
+
#
|
2901
|
+
# **Name formats**
|
2902
|
+
#
|
2903
|
+
# * **Function name** - `my-function`.
|
2904
|
+
#
|
2905
|
+
# * **Function ARN** -
|
2906
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
2907
|
+
#
|
2908
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
2909
|
+
#
|
2910
|
+
# The length constraint applies only to the full ARN. If you specify
|
2911
|
+
# only the function name, it is limited to 64 characters in length.
|
2912
|
+
# @return [String]
|
2913
|
+
#
|
2914
|
+
# @!attribute [rw] marker
|
2915
|
+
# Specify the pagination token that's returned by a previous request
|
2916
|
+
# to retrieve the next page of results.
|
2917
|
+
# @return [String]
|
2918
|
+
#
|
2919
|
+
# @!attribute [rw] max_items
|
2920
|
+
# Specify a number to limit the number of configurations returned.
|
2921
|
+
# @return [Integer]
|
2922
|
+
#
|
2923
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListProvisionedConcurrencyConfigsRequest AWS API Documentation
|
2924
|
+
#
|
2925
|
+
class ListProvisionedConcurrencyConfigsRequest < Struct.new(
|
2926
|
+
:function_name,
|
2927
|
+
:marker,
|
2928
|
+
:max_items)
|
2929
|
+
include Aws::Structure
|
2930
|
+
end
|
2931
|
+
|
2932
|
+
# @!attribute [rw] provisioned_concurrency_configs
|
2933
|
+
# A list of provisioned concurrency configurations.
|
2934
|
+
# @return [Array<Types::ProvisionedConcurrencyConfigListItem>]
|
2935
|
+
#
|
2936
|
+
# @!attribute [rw] next_marker
|
2937
|
+
# The pagination token that's included if more results are available.
|
2938
|
+
# @return [String]
|
2939
|
+
#
|
2940
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListProvisionedConcurrencyConfigsResponse AWS API Documentation
|
2941
|
+
#
|
2942
|
+
class ListProvisionedConcurrencyConfigsResponse < Struct.new(
|
2943
|
+
:provisioned_concurrency_configs,
|
2944
|
+
:next_marker)
|
2945
|
+
include Aws::Structure
|
2946
|
+
end
|
2947
|
+
|
2733
2948
|
# @note When making an API call, you may pass ListTagsRequest
|
2734
2949
|
# data as a hash:
|
2735
2950
|
#
|
@@ -2898,6 +3113,72 @@ module Aws::Lambda
|
|
2898
3113
|
include Aws::Structure
|
2899
3114
|
end
|
2900
3115
|
|
3116
|
+
# Details about the provisioned concurrency configuration for a function
|
3117
|
+
# alias or version.
|
3118
|
+
#
|
3119
|
+
# @!attribute [rw] function_arn
|
3120
|
+
# The Amazon Resource Name (ARN) of the alias or version.
|
3121
|
+
# @return [String]
|
3122
|
+
#
|
3123
|
+
# @!attribute [rw] requested_provisioned_concurrent_executions
|
3124
|
+
# The amount of provisioned concurrency requested.
|
3125
|
+
# @return [Integer]
|
3126
|
+
#
|
3127
|
+
# @!attribute [rw] available_provisioned_concurrent_executions
|
3128
|
+
# The amount of provisioned concurrency available.
|
3129
|
+
# @return [Integer]
|
3130
|
+
#
|
3131
|
+
# @!attribute [rw] allocated_provisioned_concurrent_executions
|
3132
|
+
# The amount of provisioned concurrency allocated.
|
3133
|
+
# @return [Integer]
|
3134
|
+
#
|
3135
|
+
# @!attribute [rw] status
|
3136
|
+
# The status of the allocation process.
|
3137
|
+
# @return [String]
|
3138
|
+
#
|
3139
|
+
# @!attribute [rw] status_reason
|
3140
|
+
# For failed allocations, the reason that provisioned concurrency
|
3141
|
+
# could not be allocated.
|
3142
|
+
# @return [String]
|
3143
|
+
#
|
3144
|
+
# @!attribute [rw] last_modified
|
3145
|
+
# The date and time that a user last updated the configuration, in
|
3146
|
+
# [ISO 8601 format][1].
|
3147
|
+
#
|
3148
|
+
#
|
3149
|
+
#
|
3150
|
+
# [1]: https://www.iso.org/iso-8601-date-and-time-format.html
|
3151
|
+
# @return [Time]
|
3152
|
+
#
|
3153
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ProvisionedConcurrencyConfigListItem AWS API Documentation
|
3154
|
+
#
|
3155
|
+
class ProvisionedConcurrencyConfigListItem < Struct.new(
|
3156
|
+
:function_arn,
|
3157
|
+
:requested_provisioned_concurrent_executions,
|
3158
|
+
:available_provisioned_concurrent_executions,
|
3159
|
+
:allocated_provisioned_concurrent_executions,
|
3160
|
+
:status,
|
3161
|
+
:status_reason,
|
3162
|
+
:last_modified)
|
3163
|
+
include Aws::Structure
|
3164
|
+
end
|
3165
|
+
|
3166
|
+
# The specified configuration does not exist.
|
3167
|
+
#
|
3168
|
+
# @!attribute [rw] type
|
3169
|
+
# @return [String]
|
3170
|
+
#
|
3171
|
+
# @!attribute [rw] message
|
3172
|
+
# @return [String]
|
3173
|
+
#
|
3174
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ProvisionedConcurrencyConfigNotFoundException AWS API Documentation
|
3175
|
+
#
|
3176
|
+
class ProvisionedConcurrencyConfigNotFoundException < Struct.new(
|
3177
|
+
:type,
|
3178
|
+
:message)
|
3179
|
+
include Aws::Structure
|
3180
|
+
end
|
3181
|
+
|
2901
3182
|
# @note When making an API call, you may pass PublishLayerVersionRequest
|
2902
3183
|
# data as a hash:
|
2903
3184
|
#
|
@@ -3180,6 +3461,91 @@ module Aws::Lambda
|
|
3180
3461
|
include Aws::Structure
|
3181
3462
|
end
|
3182
3463
|
|
3464
|
+
# @note When making an API call, you may pass PutProvisionedConcurrencyConfigRequest
|
3465
|
+
# data as a hash:
|
3466
|
+
#
|
3467
|
+
# {
|
3468
|
+
# function_name: "FunctionName", # required
|
3469
|
+
# qualifier: "Qualifier", # required
|
3470
|
+
# provisioned_concurrent_executions: 1, # required
|
3471
|
+
# }
|
3472
|
+
#
|
3473
|
+
# @!attribute [rw] function_name
|
3474
|
+
# The name of the Lambda function.
|
3475
|
+
#
|
3476
|
+
# **Name formats**
|
3477
|
+
#
|
3478
|
+
# * **Function name** - `my-function`.
|
3479
|
+
#
|
3480
|
+
# * **Function ARN** -
|
3481
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
3482
|
+
#
|
3483
|
+
# * **Partial ARN** - `123456789012:function:my-function`.
|
3484
|
+
#
|
3485
|
+
# The length constraint applies only to the full ARN. If you specify
|
3486
|
+
# only the function name, it is limited to 64 characters in length.
|
3487
|
+
# @return [String]
|
3488
|
+
#
|
3489
|
+
# @!attribute [rw] qualifier
|
3490
|
+
# The version number or alias name.
|
3491
|
+
# @return [String]
|
3492
|
+
#
|
3493
|
+
# @!attribute [rw] provisioned_concurrent_executions
|
3494
|
+
# The amount of provisioned concurrency to allocate for the version or
|
3495
|
+
# alias.
|
3496
|
+
# @return [Integer]
|
3497
|
+
#
|
3498
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutProvisionedConcurrencyConfigRequest AWS API Documentation
|
3499
|
+
#
|
3500
|
+
class PutProvisionedConcurrencyConfigRequest < Struct.new(
|
3501
|
+
:function_name,
|
3502
|
+
:qualifier,
|
3503
|
+
:provisioned_concurrent_executions)
|
3504
|
+
include Aws::Structure
|
3505
|
+
end
|
3506
|
+
|
3507
|
+
# @!attribute [rw] requested_provisioned_concurrent_executions
|
3508
|
+
# The amount of provisioned concurrency requested.
|
3509
|
+
# @return [Integer]
|
3510
|
+
#
|
3511
|
+
# @!attribute [rw] available_provisioned_concurrent_executions
|
3512
|
+
# The amount of provisioned concurrency available.
|
3513
|
+
# @return [Integer]
|
3514
|
+
#
|
3515
|
+
# @!attribute [rw] allocated_provisioned_concurrent_executions
|
3516
|
+
# The amount of provisioned concurrency allocated.
|
3517
|
+
# @return [Integer]
|
3518
|
+
#
|
3519
|
+
# @!attribute [rw] status
|
3520
|
+
# The status of the allocation process.
|
3521
|
+
# @return [String]
|
3522
|
+
#
|
3523
|
+
# @!attribute [rw] status_reason
|
3524
|
+
# For failed allocations, the reason that provisioned concurrency
|
3525
|
+
# could not be allocated.
|
3526
|
+
# @return [String]
|
3527
|
+
#
|
3528
|
+
# @!attribute [rw] last_modified
|
3529
|
+
# The date and time that a user last updated the configuration, in
|
3530
|
+
# [ISO 8601 format][1].
|
3531
|
+
#
|
3532
|
+
#
|
3533
|
+
#
|
3534
|
+
# [1]: https://www.iso.org/iso-8601-date-and-time-format.html
|
3535
|
+
# @return [Time]
|
3536
|
+
#
|
3537
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutProvisionedConcurrencyConfigResponse AWS API Documentation
|
3538
|
+
#
|
3539
|
+
class PutProvisionedConcurrencyConfigResponse < Struct.new(
|
3540
|
+
:requested_provisioned_concurrent_executions,
|
3541
|
+
:available_provisioned_concurrent_executions,
|
3542
|
+
:allocated_provisioned_concurrent_executions,
|
3543
|
+
:status,
|
3544
|
+
:status_reason,
|
3545
|
+
:last_modified)
|
3546
|
+
include Aws::Structure
|
3547
|
+
end
|
3548
|
+
|
3183
3549
|
# @note When making an API call, you may pass RemoveLayerVersionPermissionRequest
|
3184
3550
|
# data as a hash:
|
3185
3551
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lambda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.34.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|