Bases: object
Identification of an account (or organization) that is allowed to access a Lambda Layer Version.
account_id (str
) â The AWS Account id of the account that is authorized to use a Lambda Layer Version. The wild-card '*'
can be used to grant access to âanyâ account (or any account in an organization when organizationId
is specified).
organization_id (Optional
[str
]) â The ID of the AWS Organization to which the grant is restricted. Can only be specified if accountId
is '*'
lit=test/integ.layer-version.lit.ts infused
Example:
layer = lambda_.LayerVersion(stack, "MyLayer", code=lambda_.Code.from_asset(path.join(__dirname, "layer-code")), compatible_runtimes=[lambda_.Runtime.NODEJS_14_X], license="Apache-2.0", description="A layer to test the L2 construct" ) # To grant usage by other AWS accounts layer.add_permission("remote-account-grant", account_id=aws_account_id) # To grant usage to all accounts in some AWS Ogranization # layer.grantUsage({ accountId: '*', organizationId }); lambda_.Function(stack, "MyLayeredLambda", code=lambda_.InlineCode("foo"), handler="index.handler", runtime=lambda_.Runtime.NODEJS_14_X, layers=[layer] )
Attributes
The AWS Account id of the account that is authorized to use a Lambda Layer Version.
The wild-card '*'
can be used to grant access to âanyâ account (or any account in an organization when organizationId
is specified).
The ID of the AWS Organization to which the grant is restricted.
Can only be specified if accountId
is '*'
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4