Properties
| Name | Type | Description |
|---|---|---|
| StatementId | object | |
| Action | object | |
| Principal | object | |
| OrganizationId | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/AddLayerVersionPermissionRequest",
"title": "AddLayerVersionPermissionRequest",
"type": "object",
"required": [
"StatementId",
"Action",
"Principal"
],
"properties": {
"StatementId": {
"allOf": [
{
"$ref": "#/components/schemas/StatementId"
},
{
"description": "An identifier that distinguishes the policy from others on the same layer version."
}
]
},
"Action": {
"allOf": [
{
"$ref": "#/components/schemas/LayerPermissionAllowedAction"
},
{
"description": "The API action that grants access to the layer. For example, <code>lambda:GetLayerVersion</code>."
}
]
},
"Principal": {
"allOf": [
{
"$ref": "#/components/schemas/LayerPermissionAllowedPrincipal"
},
{
"description": "An account ID, or <code>*</code> to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (if <code>organizationId</code> is not specified). For the last case, make sure that you really do want all Amazon Web Services accounts to have usage permission to this layer. "
}
]
},
"OrganizationId": {
"allOf": [
{
"$ref": "#/components/schemas/OrganizationId"
},
{
"description": "With the principal set to <code>*</code>, grant permission to all accounts in the specified organization."
}
]
}
}
}