SecretTargetAttachmentProps

class aws_cdk.aws_secretsmanager.SecretTargetAttachmentProps(*, target, secret)

Bases: AttachedSecretOptions

Construction properties for an AttachedSecret.

Parameters:
ExampleMetadata:

fixture=_generated

Example:

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

# secret: secretsmanager.Secret
# secret_attachment_target: secretsmanager.ISecretAttachmentTarget

secret_target_attachment_props = secretsmanager.SecretTargetAttachmentProps(
    secret=secret,
    target=secret_attachment_target
)

Attributes

secret

The secret to attach to the target.

target

The target to attach the secret to.