PermissionsOptions

class aws_cdk.PermissionsOptions(*, resource_arns=None)

Bases: object

Options for configuring permissions in the <Resource>.actions() method.

Parameters:

resource_arns (Optional[Sequence[str]]) – The ARNs of the resources to grant permissions on. Default: - The ARN of the resource associated with the grant is used.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

permissions_options = cdk.PermissionsOptions(
    resource_arns=["resourceArns"]
)

Attributes

resource_arns

The ARNs of the resources to grant permissions on.

Default:
  • The ARN of the resource associated with the grant is used.