Skip to content

Commit 84c352d

Browse files
committed
Periodic update, Sept 2018
1 parent 7f63b6c commit 84c352d

File tree

86 files changed

+537
-584
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+537
-584
lines changed

doc_source/API_AddPermission.md

Lines changed: 2 additions & 2 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[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
34+
Pattern: `(arn:aws:lambda:)?([a-z]{2}-[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-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)`
84+
Pattern: `arn:aws:([a-zA-Z0-9\-])+:([a-z]{2}-[a-z]+-\d{1})?:(\d{12})?:(.*)`
8585
Required: No
8686

8787
** [StatementId](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-StatementId"></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[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
10+
Pattern: `arn:aws:lambda:[a-z]{2}-[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 & 2 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[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
32+
Pattern: `(arn:aws:lambda:)?([a-z]{2}-[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[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
92+
Pattern: `arn:aws:lambda:[a-z]{2}-[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\.

doc_source/API_CreateEventSourceMapping.md

Lines changed: 4 additions & 4 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-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)`
55+
Pattern: `arn:aws:([a-zA-Z0-9\-])+:([a-z]{2}-[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[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
66+
Pattern: `(arn:aws:lambda:)?([a-z]{2}-[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-zA-Z0-9\-])+:([a-z]{2}(-gov)?-[a-z]+-\d{1})?:(\d{12})?:(.*)`
112+
Pattern: `arn:aws:([a-zA-Z0-9\-])+:([a-z]{2}-[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[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
117+
Pattern: `arn:aws:lambda:[a-z]{2}-[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\.

doc_source/API_CreateFunction.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Required: No
8282
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\.
8383
Type: String
8484
Length Constraints: Minimum length of 1\. Maximum length of 140\.
85-
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-_]+))?`
85+
Pattern: `(arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
8686
Required: Yes
8787

8888
** [Handler](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-Handler"></a>
@@ -95,7 +95,7 @@ Required: Yes
9595
** [KMSKeyArn](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-KMSKeyArn"></a>
9696
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\.
9797
Type: String
98-
Pattern: `(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()`
98+
Pattern: `(arn:aws:[a-z0-9-.]+:.*)|()`
9999
Required: No
100100

101101
** [MemorySize](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-MemorySize"></a>
@@ -112,7 +112,7 @@ Required: No
112112
** [Role](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-Role"></a>
113113
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)\.
114114
Type: String
115-
Pattern: `arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+`
115+
Pattern: `arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+`
116116
Required: Yes
117117

118118
** [Runtime](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-Runtime"></a>
@@ -219,13 +219,13 @@ Type: [EnvironmentResponse](API_EnvironmentResponse.md) object
219219
** [FunctionArn](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-FunctionArn"></a>
220220
The Amazon Resource Name \(ARN\) assigned to the function\.
221221
Type: String
222-
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-_]+))?`
222+
Pattern: `arn:aws:lambda:[a-z]{2}-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_\.]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
223223

224224
** [FunctionName](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-FunctionName"></a>
225225
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\.
226226
Type: String
227227
Length Constraints: Minimum length of 1\. Maximum length of 170\.
228-
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-_]+))?`
228+
Pattern: `(arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_\.]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?`
229229

230230
** [Handler](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-Handler"></a>
231231
The function Lambda calls to begin executing your function\.
@@ -236,7 +236,7 @@ Pattern: `[^\s]+`
236236
** [KMSKeyArn](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-KMSKeyArn"></a>
237237
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\.
238238
Type: String
239-
Pattern: `(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()`
239+
Pattern: `(arn:aws:[a-z0-9-.]+:.*)|()`
240240

241241
** [LastModified](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-LastModified"></a>
242242
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 +245,7 @@ Type: String
245245
** [MasterArn](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-MasterArn"></a>
246246
Returns the ARN \(Amazon Resource Name\) of the master function\.
247247
Type: String
248-
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-_]+))?`
248+
Pattern: `arn:aws:lambda:[a-z]{2}-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?`
249249

250250
** [MemorySize](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-MemorySize"></a>
251251
The memory size, in MB, you configured for the function\. Must be a multiple of 64 MB\.
@@ -259,7 +259,7 @@ Type: String
259259
** [Role](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-Role"></a>
260260
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\.
261261
Type: String
262-
Pattern: `arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+`
262+
Pattern: `arn:aws:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+`
263263

264264
** [Runtime](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-Runtime"></a>
265265
The runtime environment for the Lambda function\.

0 commit comments

Comments
 (0)