Skip to content

Commit bca25b6

Browse files
committed
API parameter validation patterns changed
1 parent 6fb0297 commit bca25b6

36 files changed

+82
-117
lines changed

doc_source/API_AddPermission.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The request requires the following URI parameters\.
3131
Name of the Lambda function whose resource policy you are updating by adding a new permission\.
3232
You can specify a function name \(for example, `Thumbnail`\) or you can specify Amazon Resource Name \(ARN\) of the function \(for example, `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`\)\. AWS Lambda also allows you to specify partial ARN \(for example, `account-id:Thumbnail`\)\. Note that the length constraint applies only to the ARN\. If you specify only the function name, it is limited to 64 characters in length\.
3333
Length Constraints: Minimum length of 1\. Maximum length of 140\.
34-
Pattern: `(arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
34+
Pattern: `(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
3535

3636
** [Qualifier](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-Qualifier"></a>
3737
You can use this optional query parameter to describe a qualified ARN using a function version or an alias name\. The permission will then apply to the specific qualified ARN\. For example, if you specify function version 2 as the qualifier, then permission applies only when request is made using qualified function ARN:
@@ -81,7 +81,7 @@ Required: No
8181
This is optional; however, when granting permission to invoke your function, you should specify this field with the Amazon Resource Name \(ARN\) as its value\. This ensures that only events generated from the specified source can invoke the function\.
8282
If you add a permission without providing the source ARN, any AWS account that creates a mapping to your function ARN can send events to invoke your Lambda function\.
8383
Type: String
84-
Pattern: `arn:aws:([a-zA-Z0-9\-])+:([a-z]{2}-[a-z]+-\d{1})?:(\d{12})?:(.*)`
84+
Pattern: `arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)`
8585
Required: No
8686

8787
** [StatementId](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-StatementId"></a>
@@ -139,7 +139,6 @@ The AWS Lambda service encountered an internal error\.
139139
HTTP Status Code: 500
140140

141141
**TooManyRequestsException**
142-
143142
HTTP Status Code: 429
144143

145144
## See Also<a name="API_AddPermission_SeeAlso"></a>

doc_source/API_AliasConfiguration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Provides configuration information about a Lambda function version alias\.
77
**AliasArn** <a name="SSS-Type-AliasConfiguration-AliasArn"></a>
88
Lambda function ARN that is qualified using the alias name as the suffix\. For example, if you create an alias called `BETA` that points to a helloworld function version, the ARN is `arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA`\.
99
Type: String
10-
Pattern: `arn:aws:lambda:[a-z]{2}-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
10+
Pattern: `arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
1111
Required: No
1212

1313
**Description** <a name="SSS-Type-AliasConfiguration-Description"></a>

doc_source/API_CreateAlias.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The request requires the following URI parameters\.
2929
** [FunctionName](#API_CreateAlias_RequestSyntax) ** <a name="SSS-CreateAlias-request-FunctionName"></a>
3030
Name of the Lambda function for which you want to create an alias\. Note that the length constraint applies only to the ARN\. If you specify only the function name, it is limited to 64 characters in length\.
3131
Length Constraints: Minimum length of 1\. Maximum length of 140\.
32-
Pattern: `(arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
32+
Pattern: `(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
3333

3434
## Request Body<a name="API_CreateAlias_RequestBody"></a>
3535

@@ -89,7 +89,7 @@ The following data is returned in JSON format by the service\.
8989
** [AliasArn](#API_CreateAlias_ResponseSyntax) ** <a name="SSS-CreateAlias-response-AliasArn"></a>
9090
Lambda function ARN that is qualified using the alias name as the suffix\. For example, if you create an alias called `BETA` that points to a helloworld function version, the ARN is `arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA`\.
9191
Type: String
92-
Pattern: `arn:aws:lambda:[a-z]{2}-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
92+
Pattern: `arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
9393

9494
** [Description](#API_CreateAlias_ResponseSyntax) ** <a name="SSS-CreateAlias-response-Description"></a>
9595
Alias description\.
@@ -135,7 +135,6 @@ The AWS Lambda service encountered an internal error\.
135135
HTTP Status Code: 500
136136

137137
**TooManyRequestsException**
138-
139138
HTTP Status Code: 429
140139

141140
## See Also<a name="API_CreateAlias_SeeAlso"></a>

doc_source/API_CreateEventSourceMapping.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Required: No
5252
** [EventSourceArn](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-EventSourceArn"></a>
5353
The Amazon Resource Name \(ARN\) of the event source\. Any record added to this source could cause AWS Lambda to invoke your Lambda function, it depends on the `BatchSize`\. AWS Lambda POSTs the event's records to your Lambda function as JSON\.
5454
Type: String
55-
Pattern: `arn:aws:([a-zA-Z0-9\-])+:([a-z]{2}-[a-z]+-\d{1})?:(\d{12})?:(.*)`
55+
Pattern: `arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)`
5656
Required: Yes
5757

5858
** [FunctionName](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-FunctionName"></a>
@@ -63,7 +63,7 @@ AWS Lambda also allows you to specify only the function name with the account ID
6363
Note that the length constraint applies only to the ARN\. If you specify only the function name, it is limited to 64 characters in length\.
6464
Type: String
6565
Length Constraints: Minimum length of 1\. Maximum length of 140\.
66-
Pattern: `(arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
66+
Pattern: `(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
6767
Required: Yes
6868

6969
** [StartingPosition](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-StartingPosition"></a>
@@ -109,12 +109,12 @@ Valid Range: Minimum value of 1\. Maximum value of 10000\.
109109
** [EventSourceArn](#API_CreateEventSourceMapping_ResponseSyntax) ** <a name="SSS-CreateEventSourceMapping-response-EventSourceArn"></a>
110110
The Amazon Resource Name \(ARN\) of the Amazon Kinesis or DynamoDB stream that is the source of events\.
111111
Type: String
112-
Pattern: `arn:aws:([a-zA-Z0-9\-])+:([a-z]{2}-[a-z]+-\d{1})?:(\d{12})?:(.*)`
112+
Pattern: `arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)`
113113

114114
** [FunctionArn](#API_CreateEventSourceMapping_ResponseSyntax) ** <a name="SSS-CreateEventSourceMapping-response-FunctionArn"></a>
115115
The Lambda function to invoke when AWS Lambda detects an event on the poll\-based source\.
116116
Type: String
117-
Pattern: `arn:aws:lambda:[a-z]{2}-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
117+
Pattern: `arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
118118

119119
** [LastModified](#API_CreateEventSourceMapping_ResponseSyntax) ** <a name="SSS-CreateEventSourceMapping-response-LastModified"></a>
120120
The UTC time string indicating the last time the event mapping was updated\.
@@ -155,7 +155,6 @@ The AWS Lambda service encountered an internal error\.
155155
HTTP Status Code: 500
156156

157157
**TooManyRequestsException**
158-
159158
HTTP Status Code: 429
160159

161160
## See Also<a name="API_CreateEventSourceMapping_SeeAlso"></a>

doc_source/API_CreateFunction.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,14 @@ Length Constraints: Minimum length of 0\. Maximum length of 256\.
7474
Required: No
7575

7676
** [Environment](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-Environment"></a>
77-
The parent object that contains your environment's configuration settings\.
7877
Type: [Environment](API_Environment.md) object
7978
Required: No
8079

8180
** [FunctionName](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-FunctionName"></a>
8281
The name you want to assign to the function you are uploading\. The function names appear in the console and are returned in the [ListFunctions](API_ListFunctions.md) API\. Function names are used to specify functions to other AWS Lambda API operations, such as [Invoke](API_Invoke.md)\. Note that the length constraint applies only to the ARN\. If you specify only the function name, it is limited to 64 characters in length\.
8382
Type: String
8483
Length Constraints: Minimum length of 1\. Maximum length of 140\.
85-
Pattern: `(arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
84+
Pattern: `(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
8685
Required: Yes
8786

8887
** [Handler](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-Handler"></a>
@@ -95,7 +94,7 @@ Required: Yes
9594
** [KMSKeyArn](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-KMSKeyArn"></a>
9695
The Amazon Resource Name \(ARN\) of the KMS key used to encrypt your function's environment variables\. If not provided, AWS Lambda will use a default service key\.
9796
Type: String
98-
Pattern: `(arn:aws:[a-z0-9-.]+:.*)|()`
97+
Pattern: `(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()`
9998
Required: No
10099

101100
** [MemorySize](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-MemorySize"></a>
@@ -112,7 +111,7 @@ Required: No
112111
** [Role](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-Role"></a>
113112
The Amazon Resource Name \(ARN\) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services \(AWS\) resources\. For more information, see [AWS Lambda: How it Works](https://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html)\.
114113
Type: String
115-
Pattern: `arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+`
114+
Pattern: `arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+`
116115
Required: Yes
117116

118117
** [Runtime](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-Runtime"></a>
@@ -219,13 +218,13 @@ Type: [EnvironmentResponse](API_EnvironmentResponse.md) object
219218
** [FunctionArn](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-FunctionArn"></a>
220219
The Amazon Resource Name \(ARN\) assigned to the function\.
221220
Type: String
222-
Pattern: `arn:aws:lambda:[a-z]{2}-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_\.]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
221+
Pattern: `arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_\.]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
223222

224223
** [FunctionName](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-FunctionName"></a>
225224
The name of the function\. Note that the length constraint applies only to the ARN\. If you specify only the function name, it is limited to 64 characters in length\.
226225
Type: String
227226
Length Constraints: Minimum length of 1\. Maximum length of 170\.
228-
Pattern: `(arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_\.]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
227+
Pattern: `(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_\.]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
229228

230229
** [Handler](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-Handler"></a>
231230
The function Lambda calls to begin executing your function\.
@@ -236,7 +235,7 @@ Pattern: `[^\s]+`
236235
** [KMSKeyArn](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-KMSKeyArn"></a>
237236
The Amazon Resource Name \(ARN\) of the KMS key used to encrypt your function's environment variables\. If empty, it means you are using the AWS Lambda default service key\.
238237
Type: String
239-
Pattern: `(arn:aws:[a-z0-9-.]+:.*)|()`
238+
Pattern: `(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()`
240239

241240
** [LastModified](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-LastModified"></a>
242241
The time stamp of the last time you updated the function\. The time stamp is conveyed as a string complying with ISO\-8601 in this way YYYY\-MM\-DDThh:mm:ssTZD \(e\.g\., 1997\-07\-16T19:20:30\+01:00\)\. For more information, see [Date and Time Formats](https://www.w3.org/TR/NOTE-datetime)\.
@@ -245,7 +244,7 @@ Type: String
245244
** [MasterArn](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-MasterArn"></a>
246245
Returns the ARN \(Amazon Resource Name\) of the master function\.
247246
Type: String
248-
Pattern: `arn:aws:lambda:[a-z]{2}-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
247+
Pattern: `arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
249248

250249
** [MemorySize](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-MemorySize"></a>
251250
The memory size, in MB, you configured for the function\. Must be a multiple of 64 MB\.
@@ -259,7 +258,7 @@ Type: String
259258
** [Role](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-Role"></a>
260259
The Amazon Resource Name \(ARN\) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services \(AWS\) resources\.
261260
Type: String
262-
Pattern: `arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+`
261+
Pattern: `arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+`
263262

264263
** [Runtime](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-Runtime"></a>
265264
The runtime environment for the Lambda function\.
@@ -308,7 +307,6 @@ The AWS Lambda service encountered an internal error\.
308307
HTTP Status Code: 500
309308

310309
**TooManyRequestsException**
311-
312310
HTTP Status Code: 429
313311

314312
## See Also<a name="API_CreateFunction_SeeAlso"></a>

doc_source/API_DeadLetterConfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The Amazon Resource Name \(ARN\) of an Amazon SQS queue or Amazon SNS topic you
77
**TargetArn** <a name="SSS-Type-DeadLetterConfig-TargetArn"></a>
88
The Amazon Resource Name \(ARN\) of an Amazon SQS queue or Amazon SNS topic you specify as your Dead Letter Queue \(DLQ\)\. [Dead Letter Queues](dlq.md)\. For more information, see [Dead Letter Queues](dlq.md)\.
99
Type: String
10-
Pattern: `(arn:aws:[a-z0-9-.]+:.*)|()`
10+
Pattern: `(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()`
1111
Required: No
1212

1313
## See Also<a name="API_DeadLetterConfig_SeeAlso"></a>

doc_source/API_DeleteAlias.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The request requires the following URI parameters\.
1717
** [FunctionName](#API_DeleteAlias_RequestSyntax) ** <a name="SSS-DeleteAlias-request-FunctionName"></a>
1818
The Lambda function name for which the alias is created\. Deleting an alias does not delete the function version to which it is pointing\. Note that the length constraint applies only to the ARN\. If you specify only the function name, it is limited to 64 characters in length\.
1919
Length Constraints: Minimum length of 1\. Maximum length of 140\.
20-
Pattern: `(arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
20+
Pattern: `(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
2121

2222
** [Name](#API_DeleteAlias_RequestSyntax) ** <a name="SSS-DeleteAlias-request-Name"></a>
2323
Name of the alias to delete\.
@@ -49,7 +49,6 @@ The AWS Lambda service encountered an internal error\.
4949
HTTP Status Code: 500
5050

5151
**TooManyRequestsException**
52-
5352
HTTP Status Code: 429
5453

5554
## See Also<a name="API_DeleteAlias_SeeAlso"></a>

doc_source/API_DeleteEventSourceMapping.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ Valid Range: Minimum value of 1\. Maximum value of 10000\.
5353
** [EventSourceArn](#API_DeleteEventSourceMapping_ResponseSyntax) ** <a name="SSS-DeleteEventSourceMapping-response-EventSourceArn"></a>
5454
The Amazon Resource Name \(ARN\) of the Amazon Kinesis or DynamoDB stream that is the source of events\.
5555
Type: String
56-
Pattern: `arn:aws:([a-zA-Z0-9\-])+:([a-z]{2}-[a-z]+-\d{1})?:(\d{12})?:(.*)`
56+
Pattern: `arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)`
5757

5858
** [FunctionArn](#API_DeleteEventSourceMapping_ResponseSyntax) ** <a name="SSS-DeleteEventSourceMapping-response-FunctionArn"></a>
5959
The Lambda function to invoke when AWS Lambda detects an event on the poll\-based source\.
6060
Type: String
61-
Pattern: `arn:aws:lambda:[a-z]{2}-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
61+
Pattern: `arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
6262

6363
** [LastModified](#API_DeleteEventSourceMapping_ResponseSyntax) ** <a name="SSS-DeleteEventSourceMapping-response-LastModified"></a>
6464
The UTC time string indicating the last time the event mapping was updated\.
@@ -99,7 +99,6 @@ The AWS Lambda service encountered an internal error\.
9999
HTTP Status Code: 500
100100

101101
**TooManyRequestsException**
102-
103102
HTTP Status Code: 429
104103

105104
## See Also<a name="API_DeleteEventSourceMapping_SeeAlso"></a>

doc_source/API_DeleteFunction.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The request requires the following URI parameters\.
2222
The Lambda function to delete\.
2323
You can specify the function name \(for example, `Thumbnail`\) or you can specify Amazon Resource Name \(ARN\) of the function \(for example, `arn:aws:lambda:us-west-2:account-id:function:ThumbNail`\)\. If you are using versioning, you can also provide a qualified function ARN \(ARN that is qualified with function version or alias name as suffix\)\. AWS Lambda also allows you to specify only the function name with the account ID qualifier \(for example, `account-id:Thumbnail`\)\. Note that the length constraint applies only to the ARN\. If you specify only the function name, it is limited to 64 characters in length\.
2424
Length Constraints: Minimum length of 1\. Maximum length of 140\.
25-
Pattern: `(arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
25+
Pattern: `(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
2626

2727
** [Qualifier](#API_DeleteFunction_RequestSyntax) ** <a name="SSS-DeleteFunction-request-Qualifier"></a>
2828
Using this optional parameter you can specify a function version \(but not the `$LATEST` version\) to direct AWS Lambda to delete a specific function version\. If the function version has one or more aliases pointing to it, you will get an error because you cannot have aliases pointing to it\. You can delete any function version but not the `$LATEST`, that is, you cannot specify `$LATEST` as the value of this parameter\. The `$LATEST` version can be deleted only when you want to delete all the function versions and aliases\.
@@ -64,7 +64,6 @@ The AWS Lambda service encountered an internal error\.
6464
HTTP Status Code: 500
6565

6666
**TooManyRequestsException**
67-
6867
HTTP Status Code: 429
6968

7069
## See Also<a name="API_DeleteFunction_SeeAlso"></a>

doc_source/API_DeleteFunctionConcurrency.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The request requires the following URI parameters\.
1515
** [FunctionName](#API_DeleteFunctionConcurrency_RequestSyntax) ** <a name="SSS-DeleteFunctionConcurrency-request-FunctionName"></a>
1616
The name of the function you are removing concurrent execution limits from\. For more information, see [Managing Concurrency](concurrent-executions.md)\.
1717
Length Constraints: Minimum length of 1\. Maximum length of 140\.
18-
Pattern: `(arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
18+
Pattern: `(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
1919

2020
## Request Body<a name="API_DeleteFunctionConcurrency_RequestBody"></a>
2121

@@ -46,7 +46,6 @@ The AWS Lambda service encountered an internal error\.
4646
HTTP Status Code: 500
4747

4848
**TooManyRequestsException**
49-
5049
HTTP Status Code: 429
5150

5251
## See Also<a name="API_DeleteFunctionConcurrency_SeeAlso"></a>

0 commit comments

Comments
 (0)