Skip to content

Commit abc4ca7

Browse files
committed
fixes. Also, updates to Python SDK versions. Updates for .NET 2.1 phase 1 and 2 deprecation start dates.
1 parent e0af1ee commit abc4ca7

Some content is hidden

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

45 files changed

+106
-115
lines changed

doc_source/.DS_Store

6 KB
Binary file not shown.

doc_source/API_DeleteFunctionEventInvokeConfig.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ If the action is successful, the service sends back an HTTP 204 response with an
5151
One of the parameters in the request is invalid\.
5252
HTTP Status Code: 400
5353

54+
**ResourceConflictException**
55+
The resource already exists, or another operation is in progress\.
56+
HTTP Status Code: 409
57+
5458
**ResourceNotFoundException**
5559
The resource specified in the request does not exist\.
5660
HTTP Status Code: 404

doc_source/API_PutFunctionEventInvokeConfig.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ Valid Range: Minimum value of 0\. Maximum value of 2\.
137137
One of the parameters in the request is invalid\.
138138
HTTP Status Code: 400
139139

140+
**ResourceConflictException**
141+
The resource already exists, or another operation is in progress\.
142+
HTTP Status Code: 409
143+
140144
**ResourceNotFoundException**
141145
The resource specified in the request does not exist\.
142146
HTTP Status Code: 404

doc_source/API_UpdateFunctionEventInvokeConfig.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ Valid Range: Minimum value of 0\. Maximum value of 2\.
135135
One of the parameters in the request is invalid\.
136136
HTTP Status Code: 400
137137

138+
**ResourceConflictException**
139+
The resource already exists, or another operation is in progress\.
140+
HTTP Status Code: 409
141+
138142
**ResourceNotFoundException**
139143
The resource specified in the request does not exist\.
140144
HTTP Status Code: 404

doc_source/access-control-identity-based.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,14 @@ The following shows an example of a permissions policy with limited scope\. It a
3333
"Effect": "Allow",
3434
"Action": [
3535
"lambda:GetAccountSettings",
36-
"lambda:ListFunctions",
37-
"lambda:ListTags",
3836
"lambda:GetEventSourceMapping",
37+
"lambda:GetFunction",
38+
"lambda:GetFunctionConfiguration",
39+
"lambda:GetFunctionCodeSigningConfig",
40+
"lambda:GetFunctionConcurrency",
3941
"lambda:ListEventSourceMappings",
42+
"lambda:ListFunctions",
43+
"lambda:ListTags"
4044
"iam:ListRoles"
4145
],
4246
"Resource": "*"
@@ -96,10 +100,14 @@ The permissions in the policy are organized into statements based on the [resour
96100
```
97101
"Action": [
98102
"lambda:GetAccountSettings",
99-
"lambda:ListFunctions",
100-
"lambda:ListTags",
101103
"lambda:GetEventSourceMapping",
104+
"lambda:GetFunction",
105+
"lambda:GetFunctionConfiguration",
106+
"lambda:GetFunctionCodeSigningConfig",
107+
"lambda:GetFunctionConcurrency",
102108
"lambda:ListEventSourceMappings",
109+
"lambda:ListFunctions",
110+
"lambda:ListTags"
103111
"iam:ListRoles"
104112
],
105113
"Resource": "*"

doc_source/access-control-resource-based.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ For Lambda functions, you can [grant an account permission](#permissions-resourc
2727
"Service": "s3.amazonaws.com"
2828
},
2929
"Action": "lambda:InvokeFunction",
30-
"Resource": "arn:aws:lambda:us-east-2:123456789012:function:my-function,
30+
"Resource": "arn:aws:lambda:us-east-2:123456789012:function:my-function",
3131
"Condition": {
3232
"StringEquals": {
3333
"AWS:SourceAccount": "123456789012"

doc_source/configuration-filesystem.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,7 @@ Resources:
170170
CodeUri: function/.
171171
Description: Use a file system.
172172
FileSystemConfigs:
173-
-
174-
Arn: !Sub
175-
- "arn:aws:elasticfilesystem:eu-central-1:123456789101:access-point/fsap-015cxmplb72b405fd"
173+
- Arn: "arn:aws:elasticfilesystem:eu-central-1:123456789101:access-point/fsap-015cxmplb72b405fd"
176174
LocalMountPath: "/mnt/efs0"
177175
DependsOn: "MountTarget1"
178176
```

doc_source/configuration-images.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ When you deploy code as a container image to a Lambda function, the image underg
3535

3636
## Amazon ECR permissions<a name="configuration-images-permissions"></a>
3737

38-
For your function to access the container image in Amazon ECR, you can add `ecr:BatchGetImage` and `ecr:GetDownloadUrlForLayer` permissions to your Amazon ECR repository\. The following example shows the minumum policy:
38+
For your function to access the container image in Amazon ECR, you can add `ecr:BatchGetImage` and `ecr:GetDownloadUrlForLayer` permissions to your Amazon ECR repository\. The following example shows the minimum policy:
3939

4040
```
4141
{

doc_source/configuration-layers.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ You can create layers using the Lambda console, the Lambda API, AWS CloudFormati
1010
+ [Creating layer content](#configuration-layers-upload)
1111
+ [Compiling the \.zip file archive for your layer](#configuration-layers-compile)
1212
+ [Including library dependencies in a layer](#configuration-layers-path)
13+
+ [Language\-specific instructions](#configuration-layers-zip-cli)
1314
+ [Creating a layer](#configuration-layers-create)
1415
+ [Deleting a layer version](#configuration-layers-delete)
1516
+ [Configuring layer permissions](#configuration-layers-permissions)
@@ -19,20 +20,9 @@ You can create layers using the Lambda console, the Lambda API, AWS CloudFormati
1920

2021
When you create a layer, you must bundle all its content into a \.zip file archive\. You upload the \.zip file archive to your layer from Amazon Simple Storage Service \(Amazon S3\) or your local machine\. Lambda extracts the layer contents into the `/opt` directory when setting up the execution environment for the function\.
2122

22-
### Using the AWS CLI<a name="configuration-layers-zip-cli"></a>
23-
24-
You can create and upload a \.zip file for your layer using the Lambda console or the AWS Command Line Interface \(AWS CLI\)\. For language\-specific instructions, see the following topics\.
25-
+ [Deploy Node\.js Lambda functions with \.zip file archives](nodejs-package.md)
26-
+ [Deploy Python Lambda functions with \.zip file archives](python-package.md)
27-
+ [Deploy Ruby Lambda functions with \.zip file archives](ruby-package.md)
28-
+ [Deploy Java Lambda functions with \.zip or JAR file archives](java-package.md)
29-
+ [Deploy Go Lambda functions with \.zip file archives](golang-package.md)
30-
+ [Deploy C\# Lambda functions with \.zip file archives](csharp-package.md)
31-
+ [Deploy PowerShell Lambda functions with \.zip file archives](powershell-package.md)
32-
3323
## Compiling the \.zip file archive for your layer<a name="configuration-layers-compile"></a>
3424

35-
You build your layer code into a \.zip file archive using the same procedure as you would for a function\. If your layer includes any native code libraries, you must compile and build these libraries using a Linux development machine so that the binaries are compatible with [Amazon Linux](lambda-runtimes.md)\.
25+
You build your layer code into a \.zip file archive using the same procedure as you would for a function deployment package\. If your layer includes any native code libraries, you must compile and build these libraries using a Linux development machine so that the binaries are compatible with [Amazon Linux](lambda-runtimes.md)\.
3626

3727
One way to ensure that you package libraries correctly for Lambda is to use [AWS Cloud9](http://aws.amazon.com/cloud9/)\. For more information, see [Using Lambda layers to simplify your development process](http://aws.amazon.com/blogs/compute/using-lambda-layers-to-simplify-your-development-process/) on the AWS Compute Blog\.
3828

@@ -111,6 +101,17 @@ jq.zip
111101

112102
For more information about path settings in the Lambda execution environment, see [Defined runtime environment variables](configuration-envvars.md#configuration-envvars-runtime)\.
113103

104+
## Language\-specific instructions<a name="configuration-layers-zip-cli"></a>
105+
106+
For language\-specific instructions on how to create a \.zip file archive, see the following topics\.
107+
+ [Deploy Node\.js Lambda functions with \.zip file archives](nodejs-package.md)
108+
+ [Deploy Python Lambda functions with \.zip file archives](python-package.md)
109+
+ [Deploy Ruby Lambda functions with \.zip file archives](ruby-package.md)
110+
+ [Deploy Java Lambda functions with \.zip or JAR file archives](java-package.md)
111+
+ [Deploy Go Lambda functions with \.zip file archives](golang-package.md)
112+
+ [Deploy C\# Lambda functions with \.zip file archives](csharp-package.md)
113+
+ [Deploy PowerShell Lambda functions with \.zip file archives](powershell-package.md)
114+
114115
## Creating a layer<a name="configuration-layers-create"></a>
115116

116117
You can create new layers using the Lambda console or the Lambda API\.
@@ -234,7 +235,9 @@ Resources:
234235
Properties:
235236
LayerName: blank-nodejs-lib
236237
Description: Dependencies for the blank sample app.
237-
ContentUri: lib/.
238+
Content:
239+
S3Bucket: my-bucket-region-123456789012
240+
S3Key: layer.zip
238241
CompatibleRuntimes:
239242
- nodejs12.x
240243
```

doc_source/csharp-exceptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ aws lambda invoke \
186186
--payload '{"key1": "value1", "key2": "value2", "key3": "value3"}' output.txt
187187
```
188188

189-
The cli\-binary\-format option is required if you are using AWS CLI version 2\. You can also configure this option in your [ AWS CLI config file](https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration.html#cliv2-migration-binaryparam)
189+
The cli\-binary\-format option is required if you are using AWS CLI version 2\. You can also configure this option in your [ AWS CLI config file](https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration.html#cliv2-migration-binaryparam)\.
190190

191191
You should see the AWS CLI response in your command prompt:
192192

0 commit comments

Comments
 (0)