IResourceWithPolicy

class aws_cdk.aws_iam.IResourceWithPolicy(*args, **kwargs)

Bases: aws_cdk.core.IConstruct, typing_extensions.Protocol

A resource with a resource policy that can be added to.

__init__(*args, **kwargs)

Methods

add_to_resource_policy(statement)

Add a statement to the resource’s resource policy.

Parameters

statement (PolicyStatement) –

Return type

AddToResourcePolicyResult

Attributes

node

The construct tree node for this construct.

Return type

ConstructNode