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.
import aws_cdk.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.

Return type

ISecret

target

The target to attach the secret to.

Return type

ISecretAttachmentTarget