ResourcePolicyProps
- class aws_cdk.aws_secretsmanager.ResourcePolicyProps(*, secret)
Bases:
object
Construction properties for a ResourcePolicy.
- Parameters:
secret (
ISecret
) – The secret to attach a resource-based permissions policy.- 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.aws_secretsmanager as secretsmanager # secret: secretsmanager.Secret resource_policy_props = secretsmanager.ResourcePolicyProps( secret=secret )
Attributes
- secret
The secret to attach a resource-based permissions policy.