LayerVersionPermission¶
-
class
aws_cdk.aws_lambda.
LayerVersionPermission
(*, account_id, organization_id=None)¶ Bases:
object
Identification of an account (or organization) that is allowed to access a Lambda Layer Version.
- Parameters
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 whenorganizationId
is specified).organization_id (
Optional
[str
]) – The ID of the AWS Organization to which the grant is restricted. Can only be specified ifaccountId
is'*'
Attributes
-
account_id
¶ 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 whenorganizationId
is specified).- Return type
str
-
organization_id
¶ The ID of the AWS Organization to which the grant is restricted.
Can only be specified if
accountId
is'*'
- Return type
Optional
[str
]