Skip to content

Commit 6fff363

Browse files
author
awstools
committed
feat(client-lambda): Release FilterCriteria encryption for Lambda EventSourceMapping, enabling customers to encrypt their filter criteria using a customer-owned KMS key.
1 parent 1baa7ea commit 6fff363

13 files changed

+184
-21
lines changed

clients/client-lambda/src/commands/AddPermissionCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ export interface AddPermissionCommandInput extends AddPermissionRequest {}
2828
export interface AddPermissionCommandOutput extends AddPermissionResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Grants an Amazon Web Service, Amazon Web Services account, or Amazon Web Services organization
31+
* <p>Grants an Amazon Web Servicesservice, Amazon Web Services account, or Amazon Web Services organization
3232
* permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict
3333
* access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name
3434
* (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies
3535
* to version $LATEST.</p>
3636
* <p>To grant permission to another account, specify the account ID as the <code>Principal</code>. To grant
3737
* permission to an organization defined in Organizations, specify the organization ID as the
38-
* <code>PrincipalOrgID</code>. For Amazon Web Services, the principal is a domain-style identifier that
39-
* the service defines, such as <code>s3.amazonaws.com</code> or <code>sns.amazonaws.com</code>. For Amazon Web Services, you can also specify the ARN of the associated resource as the <code>SourceArn</code>. If
38+
* <code>PrincipalOrgID</code>. For Amazon Web Servicesservices, the principal is a domain-style identifier that
39+
* the service defines, such as <code>s3.amazonaws.com</code> or <code>sns.amazonaws.com</code>. For Amazon Web Servicesservices, you can also specify the ARN of the associated resource as the <code>SourceArn</code>. If
4040
* you grant permission to a service principal without specifying the source, other accounts could potentially
4141
* configure resources in their account to invoke your Lambda function.</p>
4242
* <p>This operation adds a statement to a resource-based permissions policy for the function. For more information

clients/client-lambda/src/commands/CreateEventSourceMappingCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ export interface CreateEventSourceMappingCommandOutput extends EventSourceMappin
212212
* CollectionName: "STRING_VALUE",
213213
* FullDocument: "UpdateLookup" || "Default",
214214
* },
215+
* KMSKeyArn: "STRING_VALUE",
215216
* };
216217
* const command = new CreateEventSourceMappingCommand(input);
217218
* const response = await client.send(command);
@@ -283,6 +284,11 @@ export interface CreateEventSourceMappingCommandOutput extends EventSourceMappin
283284
* // CollectionName: "STRING_VALUE",
284285
* // FullDocument: "UpdateLookup" || "Default",
285286
* // },
287+
* // KMSKeyArn: "STRING_VALUE",
288+
* // FilterCriteriaError: { // FilterCriteriaError
289+
* // ErrorCode: "STRING_VALUE",
290+
* // Message: "STRING_VALUE",
291+
* // },
286292
* // };
287293
*
288294
* ```

clients/client-lambda/src/commands/CreateFunctionCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface CreateFunctionCommandOutput extends FunctionConfiguration, __Me
3535
/**
3636
* <p>Creates a Lambda function. To create a function, you need a <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html">deployment package</a> and an <a href="https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role">execution role</a>. The
3737
* deployment package is a .zip file archive or container image that contains your function code. The execution role
38-
* grants the function permission to use Amazon Web Services, such as Amazon CloudWatch Logs for log
38+
* grants the function permission to use Amazon Web Servicesservices, such as Amazon CloudWatch Logs for log
3939
* streaming and X-Ray for request tracing.</p>
4040
* <p>If the deployment package is a <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html">container
4141
* image</a>, then you set the package type to <code>Image</code>. For a container image, the code property
@@ -66,9 +66,9 @@ export interface CreateFunctionCommandOutput extends FunctionConfiguration, __Me
6666
* <a>UpdateFunctionCode</a>, Lambda checks that the code package has a valid signature from
6767
* a trusted publisher. The code-signing configuration includes set of signing profiles, which define the trusted
6868
* publishers for this function.</p>
69-
* <p>If another Amazon Web Services account or an Amazon Web Service invokes your function, use <a>AddPermission</a> to grant permission by creating a resource-based Identity and Access Management (IAM) policy. You can grant permissions at the function level, on a version, or on an alias.</p>
69+
* <p>If another Amazon Web Services account or an Amazon Web Servicesservice invokes your function, use <a>AddPermission</a> to grant permission by creating a resource-based Identity and Access Management (IAM) policy. You can grant permissions at the function level, on a version, or on an alias.</p>
7070
* <p>To invoke your function directly, use <a>Invoke</a>. To invoke your function in response to events
71-
* in other Amazon Web Services, create an event source mapping (<a>CreateEventSourceMapping</a>),
71+
* in other Amazon Web Servicesservices, create an event source mapping (<a>CreateEventSourceMapping</a>),
7272
* or configure a function trigger in the other service. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/lambda-invocation.html">Invoking Lambda
7373
* functions</a>.</p>
7474
* @example

clients/client-lambda/src/commands/DeleteEventSourceMappingCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ export interface DeleteEventSourceMappingCommandOutput extends EventSourceMappin
111111
* // CollectionName: "STRING_VALUE",
112112
* // FullDocument: "UpdateLookup" || "Default",
113113
* // },
114+
* // KMSKeyArn: "STRING_VALUE",
115+
* // FilterCriteriaError: { // FilterCriteriaError
116+
* // ErrorCode: "STRING_VALUE",
117+
* // Message: "STRING_VALUE",
118+
* // },
114119
* // };
115120
*
116121
* ```

clients/client-lambda/src/commands/DeleteFunctionCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface DeleteFunctionCommandOutput extends __MetadataBearer {}
3131
* <p>Deletes a Lambda function. To delete a specific function version, use the <code>Qualifier</code> parameter.
3232
* Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit
3333
* permissions for <a>DeleteAlias</a>.</p>
34-
* <p>To delete Lambda event source mappings that invoke a function, use <a>DeleteEventSourceMapping</a>. For Amazon Web Services and resources that invoke your function
34+
* <p>To delete Lambda event source mappings that invoke a function, use <a>DeleteEventSourceMapping</a>. For Amazon Web Servicesservices and resources that invoke your function
3535
* directly, delete the trigger in the service where you originally configured it.</p>
3636
* @example
3737
* Use a bare-bones client and the command you need to make an API call.

clients/client-lambda/src/commands/GetEventSourceMappingCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ export interface GetEventSourceMappingCommandOutput extends EventSourceMappingCo
109109
* // CollectionName: "STRING_VALUE",
110110
* // FullDocument: "UpdateLookup" || "Default",
111111
* // },
112+
* // KMSKeyArn: "STRING_VALUE",
113+
* // FilterCriteriaError: { // FilterCriteriaError
114+
* // ErrorCode: "STRING_VALUE",
115+
* // Message: "STRING_VALUE",
116+
* // },
112117
* // };
113118
*
114119
* ```

clients/client-lambda/src/commands/ListEventSourceMappingsCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ export interface ListEventSourceMappingsCommandOutput extends ListEventSourceMap
115115
* // CollectionName: "STRING_VALUE",
116116
* // FullDocument: "UpdateLookup" || "Default",
117117
* // },
118+
* // KMSKeyArn: "STRING_VALUE",
119+
* // FilterCriteriaError: { // FilterCriteriaError
120+
* // ErrorCode: "STRING_VALUE",
121+
* // Message: "STRING_VALUE",
122+
* // },
118123
* // },
119124
* // ],
120125
* // };

clients/client-lambda/src/commands/RemovePermissionCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface RemovePermissionCommandInput extends RemovePermissionRequest {}
2828
export interface RemovePermissionCommandOutput extends __MetadataBearer {}
2929

3030
/**
31-
* <p>Revokes function-use permission from an Amazon Web Service or another Amazon Web Services account. You
31+
* <p>Revokes function-use permission from an Amazon Web Servicesservice or another Amazon Web Services account. You
3232
* can get the ID of the statement from the output of <a>GetPolicy</a>.</p>
3333
* @example
3434
* Use a bare-bones client and the command you need to make an API call.

clients/client-lambda/src/commands/UpdateEventSourceMappingCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ export interface UpdateEventSourceMappingCommandOutput extends EventSourceMappin
192192
* CollectionName: "STRING_VALUE",
193193
* FullDocument: "UpdateLookup" || "Default",
194194
* },
195+
* KMSKeyArn: "STRING_VALUE",
195196
* };
196197
* const command = new UpdateEventSourceMappingCommand(input);
197198
* const response = await client.send(command);
@@ -263,6 +264,11 @@ export interface UpdateEventSourceMappingCommandOutput extends EventSourceMappin
263264
* // CollectionName: "STRING_VALUE",
264265
* // FullDocument: "UpdateLookup" || "Default",
265266
* // },
267+
* // KMSKeyArn: "STRING_VALUE",
268+
* // FilterCriteriaError: { // FilterCriteriaError
269+
* // ErrorCode: "STRING_VALUE",
270+
* // Message: "STRING_VALUE",
271+
* // },
266272
* // };
267273
*
268274
* ```

clients/client-lambda/src/commands/UpdateFunctionConfigurationCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export interface UpdateFunctionConfigurationCommandOutput extends FunctionConfig
4747
* <p>These settings can vary between versions of a function and are locked when you publish a version. You can't
4848
* modify the configuration of a published version, only the unpublished version.</p>
4949
* <p>To configure function concurrency, use <a>PutFunctionConcurrency</a>. To grant invoke permissions
50-
* to an Amazon Web Services account or Amazon Web Service, use <a>AddPermission</a>.</p>
50+
* to an Amazon Web Services account or Amazon Web Servicesservice, use <a>AddPermission</a>.</p>
5151
* @example
5252
* Use a bare-bones client and the command you need to make an API call.
5353
* ```javascript

0 commit comments

Comments
 (0)