Skip to content

Commit

Permalink
Periodic update - 06/10/2022
Browse files Browse the repository at this point in the history
  • Loading branch information
kinclay committed Jun 10, 2022
1 parent 174fd25 commit 4c88540
Show file tree
Hide file tree
Showing 348 changed files with 3,403 additions and 1,118 deletions.
Binary file removed doc_source/.DS_Store
Binary file not shown.
Empty file modified doc_source/API_AccountLimit.md
100755 → 100644
Empty file.
Empty file modified doc_source/API_AccountUsage.md
100755 → 100644
Empty file.
Empty file modified doc_source/API_AddLayerVersionPermission.md
100755 → 100644
Empty file.
19 changes: 17 additions & 2 deletions doc_source/API_AddPermission.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# AddPermission<a name="API_AddPermission"></a>

Grants an AWS service or another account permission to use a function\. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias\. If you use a qualifier, the invoker must use the full Amazon Resource Name \(ARN\) of that version or alias to invoke the function\. Note: Lambda does not support adding policies to version $LATEST\.
Grants an AWS service, account, or organization permission to use a function\. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias\. If you use a qualifier, the invoker must use the full Amazon Resource Name \(ARN\) of that version or alias to invoke the function\. Note: Lambda does not support adding policies to version $LATEST\.

To grant permission to another account, specify the account ID as the `Principal`\. For AWS services, the principal is a domain\-style identifier defined by the service, like `s3.amazonaws.com` or `sns.amazonaws.com`\. For AWS services, you can also specify the ARN of the associated resource as the `SourceArn`\. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function\.
To grant permission to another account, specify the account ID as the `Principal`\. To grant permission to an organization defined in AWS Organizations, specify the organization ID as the `PrincipalOrgID`\. For AWS services, the principal is a domain\-style identifier defined by the service, like `s3.amazonaws.com` or `sns.amazonaws.com`\. For AWS services, you can also specify the ARN of the associated resource as the `SourceArn`\. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function\.

This action adds a statement to a resource\-based permissions policy for the function\. For more information about function policies, see [Lambda Function Policies](https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html)\.

Expand All @@ -15,7 +15,9 @@ Content-type: application/json
{
"Action": "string",
"EventSourceToken": "string",
"FunctionUrlAuthType": "string",
"Principal": "string",
"PrincipalOrgID": "string",
"RevisionId": "string",
"SourceAccount": "string",
"SourceArn": "string",
Expand Down Expand Up @@ -59,6 +61,12 @@ For Alexa Smart Home functions, a token that must be supplied by the invoker\.
Type: String
Length Constraints: Minimum length of 0\. Maximum length of 256\.
Pattern: `[a-zA-Z0-9._\-]+`
Required: No

** [FunctionUrlAuthType](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-FunctionUrlAuthType"></a>
The type of authentication that your function URL uses\. Set to `AWS_IAM` if you want to restrict access to authenticated `IAM` users only\. Set to `NONE` if you want to bypass IAM authentication to create a public endpoint\. For more information, see [ Security and auth model for Lambda function URLs](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html)\.
Type: String
Valid Values:` NONE | AWS_IAM`
Required: No

** [Principal](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-Principal"></a>
Expand All @@ -67,6 +75,13 @@ Type: String
Pattern: `[^\s]+`
Required: Yes

** [PrincipalOrgID](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-PrincipalOrgID"></a>
The identifier for your organization in AWS Organizations\. Use this to grant permissions to all the AWS accounts under this organization\.
Type: String
Length Constraints: Minimum length of 12\. Maximum length of 34\.
Pattern: `^o-[a-z0-9]{10,32}$`
Required: No

** [RevisionId](#API_AddPermission_RequestSyntax) ** <a name="SSS-AddPermission-request-RevisionId"></a>
Only update the policy if the revision ID matches the ID that's specified\. Use this option to avoid modifying a policy that has changed since you last read it\.
Type: String
Expand Down
Empty file modified doc_source/API_AliasConfiguration.md
100755 → 100644
Empty file.
Empty file modified doc_source/API_AliasRoutingConfiguration.md
100755 → 100644
Empty file.
Empty file modified doc_source/API_AllowedPublishers.md
100755 → 100644
Empty file.
Empty file modified doc_source/API_CodeSigningConfig.md
100755 → 100644
Empty file.
Empty file modified doc_source/API_CodeSigningPolicies.md
100755 → 100644
Empty file.
Empty file modified doc_source/API_Concurrency.md
100755 → 100644
Empty file.
57 changes: 57 additions & 0 deletions doc_source/API_Cors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Cors<a name="API_Cors"></a>

The [cross\-origin resource sharing \(CORS\)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings for your Lambda function URL\. Use CORS to grant access to your function URL from any origin\. You can also use CORS to control access for specific HTTP headers and methods in requests to your function URL\.

## Contents<a name="API_Cors_Contents"></a>

** AllowCredentials ** <a name="SSS-Type-Cors-AllowCredentials"></a>
Whether to allow cookies or other credentials in requests to your function URL\. The default is `false`\.
Type: Boolean
Required: No

** AllowHeaders ** <a name="SSS-Type-Cors-AllowHeaders"></a>
The HTTP headers that origins can include in requests to your function URL\. For example: `Date`, `Keep-Alive`, `X-Custom-Header`\.
Type: Array of strings
Array Members: Maximum number of 100 items\.
Length Constraints: Maximum length of 1024\.
Pattern: `.*`
Required: No

** AllowMethods ** <a name="SSS-Type-Cors-AllowMethods"></a>
The HTTP methods that are allowed when calling your function URL\. For example: `GET`, `POST`, `DELETE`, or the wildcard character \(`*`\)\.
Type: Array of strings
Array Members: Maximum number of 6 items\.
Length Constraints: Maximum length of 6\.
Pattern: `.*`
Required: No

** AllowOrigins ** <a name="SSS-Type-Cors-AllowOrigins"></a>
The origins that can access your function URL\. You can list any number of specific origins, separated by a comma\. For example: `https://www.example.com`, `http://localhost:60905`\.
Alternatively, you can grant access to all origins using the wildcard character \(`*`\)\.
Type: Array of strings
Array Members: Maximum number of 100 items\.
Length Constraints: Minimum length of 1\. Maximum length of 253\.
Pattern: `.*`
Required: No

** ExposeHeaders ** <a name="SSS-Type-Cors-ExposeHeaders"></a>
The HTTP headers in your function response that you want to expose to origins that call your function URL\. For example: `Date`, `Keep-Alive`, `X-Custom-Header`\.
Type: Array of strings
Array Members: Maximum number of 100 items\.
Length Constraints: Maximum length of 1024\.
Pattern: `.*`
Required: No

** MaxAge ** <a name="SSS-Type-Cors-MaxAge"></a>
The maximum amount of time, in seconds, that web browsers can cache results of a preflight request\. By default, this is set to `0`, which means that the browser doesn't cache results\.
Type: Integer
Valid Range: Minimum value of 0\. Maximum value of 86400\.
Required: No

## See Also<a name="API_Cors_SeeAlso"></a>

For more information about using this API in one of the language\-specific AWS SDKs, see the following:
+ [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/lambda-2015-03-31/Cors)
+ [AWS SDK for Go](https://docs.aws.amazon.com/goto/SdkForGoV1/lambda-2015-03-31/Cors)
+ [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/lambda-2015-03-31/Cors)
+ [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/lambda-2015-03-31/Cors)
Empty file modified doc_source/API_CreateAlias.md
100755 → 100644
Empty file.
Empty file modified doc_source/API_CreateCodeSigningConfig.md
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions doc_source/API_CreateEventSourceMapping.md
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ The request accepts the following data in JSON format\.
** [BatchSize](#API_CreateEventSourceMapping_RequestSyntax) ** <a name="SSS-CreateEventSourceMapping-request-BatchSize"></a>
The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function\. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation \(6 MB\)\.
+ **Amazon Kinesis** \- Default 100\. Max 10,000\.
+ **Amazon DynamoDB Streams** \- Default 100\. Max 1,000\.
+ **Amazon DynamoDB Streams** \- Default 100\. Max 10,000\.
+ **Amazon Simple Queue Service** \- Default 10\. For standard queues the max is 10,000\. For FIFO queues the max is 10\.
+ **Amazon Managed Streaming for Apache Kafka** \- Default 100\. Max 10,000\.
+ **Self\-Managed Apache Kafka** \- Default 100\. Max 10,000\.
Expand Down Expand Up @@ -309,7 +309,7 @@ Type: String
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-_]+))?`

** [FunctionResponseTypes](#API_CreateEventSourceMapping_ResponseSyntax) ** <a name="SSS-CreateEventSourceMapping-response-FunctionResponseTypes"></a>
\(Streams only\) A list of current response type enums applied to the event source mapping\.
\(Streams and Amazon SQS\) A list of current response type enums applied to the event source mapping\.
Type: Array of strings
Array Members: Minimum number of 0 items\. Maximum number of 1 item\.
Valid Values:` ReportBatchItemFailures`
Expand Down
19 changes: 17 additions & 2 deletions doc_source/API_CreateFunction.md
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ Content-type: application/json
"string" : "string"
}
},
"EphemeralStorage": {
"Size": number
},
"FileSystemConfigs": [
{
"Arn": "string",
Expand Down Expand Up @@ -118,6 +121,11 @@ Required: No
** [Environment](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-Environment"></a>
Environment variables that are accessible from function code during execution\.
Type: [Environment](API_Environment.md) object
Required: No

** [EphemeralStorage](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-EphemeralStorage"></a>
The size of the function’s /tmp directory in MB\. The default value is 512, but can be any whole number between 512 and 10240 MB\.
Type: [EphemeralStorage](API_EphemeralStorage.md) object
Required: No

** [FileSystemConfigs](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-FileSystemConfigs"></a>
Expand Down Expand Up @@ -190,7 +198,7 @@ Required: Yes
** [Runtime](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-Runtime"></a>
The identifier of the function's [runtime](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html)\. Runtime is required if the deployment package is a \.zip file archive\.
Type: String
Valid Values:` nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | nodejs10.x | nodejs12.x | nodejs14.x | java8 | java8.al2 | java11 | python2.7 | python3.6 | python3.7 | python3.8 | python3.9 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | dotnetcore3.1 | nodejs4.3-edge | go1.x | ruby2.5 | ruby2.7 | provided | provided.al2`
Valid Values:` nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | nodejs10.x | nodejs12.x | nodejs14.x | nodejs16.x | java8 | java8.al2 | java11 | python2.7 | python3.6 | python3.7 | python3.8 | python3.9 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | dotnetcore3.1 | dotnet6 | nodejs4.3-edge | go1.x | ruby2.5 | ruby2.7 | provided | provided.al2`
Required: No

** [Tags](#API_CreateFunction_RequestSyntax) ** <a name="SSS-CreateFunction-request-Tags"></a>
Expand Down Expand Up @@ -237,6 +245,9 @@ Content-type: application/json
"string" : "string"
}
},
"EphemeralStorage": {
"Size": number
},
"FileSystemConfigs": [
{
"Arn": "string",
Expand Down Expand Up @@ -327,6 +338,10 @@ Length Constraints: Minimum length of 0\. Maximum length of 256\.
The function's [environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html)\.
Type: [EnvironmentResponse](API_EnvironmentResponse.md) object

** [EphemeralStorage](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-EphemeralStorage"></a>
The size of the function’s /tmp directory in MB\. The default value is 512, but can be any whole number between 512 and 10240 MB\.
Type: [EphemeralStorage](API_EphemeralStorage.md) object

** [FileSystemConfigs](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-FileSystemConfigs"></a>
Connection settings for an [Amazon EFS file system](https://docs.aws.amazon.com/lambda/latest/dg/configuration-filesystem.html)\.
Type: Array of [FileSystemConfig](API_FileSystemConfig.md) objects
Expand Down Expand Up @@ -407,7 +422,7 @@ Pattern: `arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+`
** [Runtime](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-Runtime"></a>
The runtime environment for the Lambda function\.
Type: String
Valid Values:` nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | nodejs10.x | nodejs12.x | nodejs14.x | java8 | java8.al2 | java11 | python2.7 | python3.6 | python3.7 | python3.8 | python3.9 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | dotnetcore3.1 | nodejs4.3-edge | go1.x | ruby2.5 | ruby2.7 | provided | provided.al2`
Valid Values:` nodejs | nodejs4.3 | nodejs6.10 | nodejs8.10 | nodejs10.x | nodejs12.x | nodejs14.x | nodejs16.x | java8 | java8.al2 | java11 | python2.7 | python3.6 | python3.7 | python3.8 | python3.9 | dotnetcore1.0 | dotnetcore2.0 | dotnetcore2.1 | dotnetcore3.1 | dotnet6 | nodejs4.3-edge | go1.x | ruby2.5 | ruby2.7 | provided | provided.al2`

** [SigningJobArn](#API_CreateFunction_ResponseSyntax) ** <a name="SSS-CreateFunction-response-SigningJobArn"></a>
The ARN of the signing job\.
Expand Down
144 changes: 144 additions & 0 deletions doc_source/API_CreateFunctionUrlConfig.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
# CreateFunctionUrlConfig<a name="API_CreateFunctionUrlConfig"></a>

Creates a Lambda function URL with the specified configuration parameters\. A function URL is a dedicated HTTP\(S\) endpoint that you can use to invoke your function\.

## Request Syntax<a name="API_CreateFunctionUrlConfig_RequestSyntax"></a>

```
POST /2021-10-31/functions/FunctionName/url?Qualifier=Qualifier HTTP/1.1
Content-type: application/json
{
"AuthType": "string",
"Cors": {
"AllowCredentials": boolean,
"AllowHeaders": [ "string" ],
"AllowMethods": [ "string" ],
"AllowOrigins": [ "string" ],
"ExposeHeaders": [ "string" ],
"MaxAge": number
}
}
```

## URI Request Parameters<a name="API_CreateFunctionUrlConfig_RequestParameters"></a>

The request uses the following URI parameters\.

** [FunctionName](#API_CreateFunctionUrlConfig_RequestSyntax) ** <a name="SSS-CreateFunctionUrlConfig-request-FunctionName"></a>
The name of the Lambda function\.

**Name formats**
+ **Function name** \- `my-function`\.
+ **Function ARN** \- `arn:aws:lambda:us-west-2:123456789012:function:my-function`\.
+ **Partial ARN** \- `123456789012:function:my-function`\.
The length constraint applies only to the full ARN\. If you specify only the function name, it is limited to 64 characters in length\.
Length Constraints: Minimum length of 1\. Maximum length of 140\.
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-_]+))?`
Required: Yes

** [Qualifier](#API_CreateFunctionUrlConfig_RequestSyntax) ** <a name="SSS-CreateFunctionUrlConfig-request-Qualifier"></a>
The alias name\.
Length Constraints: Minimum length of 1\. Maximum length of 128\.
Pattern: `(^\$LATEST$)|((?!^[0-9]+$)([a-zA-Z0-9-_]+))`

## Request Body<a name="API_CreateFunctionUrlConfig_RequestBody"></a>

The request accepts the following data in JSON format\.

** [AuthType](#API_CreateFunctionUrlConfig_RequestSyntax) ** <a name="SSS-CreateFunctionUrlConfig-request-AuthType"></a>
The type of authentication that your function URL uses\. Set to `AWS_IAM` if you want to restrict access to authenticated `IAM` users only\. Set to `NONE` if you want to bypass IAM authentication to create a public endpoint\. For more information, see [ Security and auth model for Lambda function URLs](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html)\.
Type: String
Valid Values:` NONE | AWS_IAM`
Required: Yes

** [Cors](#API_CreateFunctionUrlConfig_RequestSyntax) ** <a name="SSS-CreateFunctionUrlConfig-request-Cors"></a>
The [cross\-origin resource sharing \(CORS\)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings for your function URL\.
Type: [Cors](API_Cors.md) object
Required: No

## Response Syntax<a name="API_CreateFunctionUrlConfig_ResponseSyntax"></a>

```
HTTP/1.1 201
Content-type: application/json
{
"AuthType": "string",
"Cors": {
"AllowCredentials": boolean,
"AllowHeaders": [ "string" ],
"AllowMethods": [ "string" ],
"AllowOrigins": [ "string" ],
"ExposeHeaders": [ "string" ],
"MaxAge": number
},
"CreationTime": "string",
"FunctionArn": "string",
"FunctionUrl": "string"
}
```

## Response Elements<a name="API_CreateFunctionUrlConfig_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 201 response\.

The following data is returned in JSON format by the service\.

** [AuthType](#API_CreateFunctionUrlConfig_ResponseSyntax) ** <a name="SSS-CreateFunctionUrlConfig-response-AuthType"></a>
The type of authentication that your function URL uses\. Set to `AWS_IAM` if you want to restrict access to authenticated `IAM` users only\. Set to `NONE` if you want to bypass IAM authentication to create a public endpoint\. For more information, see [ Security and auth model for Lambda function URLs](https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html)\.
Type: String
Valid Values:` NONE | AWS_IAM`

** [Cors](#API_CreateFunctionUrlConfig_ResponseSyntax) ** <a name="SSS-CreateFunctionUrlConfig-response-Cors"></a>
The [cross\-origin resource sharing \(CORS\)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) settings for your function URL\.
Type: [Cors](API_Cors.md) object

** [CreationTime](#API_CreateFunctionUrlConfig_ResponseSyntax) ** <a name="SSS-CreateFunctionUrlConfig-response-CreationTime"></a>
When the function URL was created, in [ISO\-8601 format](https://www.w3.org/TR/NOTE-datetime) \(YYYY\-MM\-DDThh:mm:ss\.sTZD\)\.
Type: String

** [FunctionArn](#API_CreateFunctionUrlConfig_ResponseSyntax) ** <a name="SSS-CreateFunctionUrlConfig-response-FunctionArn"></a>
The Amazon Resource Name \(ARN\) of your function\.
Type: String
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-_]+))?`

** [FunctionUrl](#API_CreateFunctionUrlConfig_ResponseSyntax) ** <a name="SSS-CreateFunctionUrlConfig-response-FunctionUrl"></a>
The HTTP URL endpoint for your function\.
Type: String
Length Constraints: Minimum length of 40\. Maximum length of 100\.

## Errors<a name="API_CreateFunctionUrlConfig_Errors"></a>

** InvalidParameterValueException **
One of the parameters in the request is invalid\.
HTTP Status Code: 400

** ResourceConflictException **
The resource already exists, or another operation is in progress\.
HTTP Status Code: 409

** ResourceNotFoundException **
The resource specified in the request does not exist\.
HTTP Status Code: 404

** ServiceException **
The AWS Lambda service encountered an internal error\.
HTTP Status Code: 500

** TooManyRequestsException **
The request throughput limit was exceeded\.
HTTP Status Code: 429

## See Also<a name="API_CreateFunctionUrlConfig_SeeAlso"></a>

For more information about using this API in one of the language\-specific AWS SDKs, see the following:
+ [AWS Command Line Interface](https://docs.aws.amazon.com/goto/aws-cli/lambda-2015-03-31/CreateFunctionUrlConfig)
+ [AWS SDK for \.NET](https://docs.aws.amazon.com/goto/DotNetSDKV3/lambda-2015-03-31/CreateFunctionUrlConfig)
+ [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/lambda-2015-03-31/CreateFunctionUrlConfig)
+ [AWS SDK for Go](https://docs.aws.amazon.com/goto/SdkForGoV1/lambda-2015-03-31/CreateFunctionUrlConfig)
+ [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/lambda-2015-03-31/CreateFunctionUrlConfig)
+ [AWS SDK for JavaScript](https://docs.aws.amazon.com/goto/AWSJavaScriptSDK/lambda-2015-03-31/CreateFunctionUrlConfig)
+ [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/lambda-2015-03-31/CreateFunctionUrlConfig)
+ [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/lambda-2015-03-31/CreateFunctionUrlConfig)
+ [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/lambda-2015-03-31/CreateFunctionUrlConfig)
Empty file modified doc_source/API_DeadLetterConfig.md
100755 → 100644
Empty file.
Empty file modified doc_source/API_DeleteAlias.md
100755 → 100644
Empty file.
Empty file modified doc_source/API_DeleteCodeSigningConfig.md
100755 → 100644
Empty file.
Loading

0 comments on commit 4c88540

Please sign in to comment.