SecretAttachmentTargetProps

class aws_cdk.aws_secretsmanager.SecretAttachmentTargetProps(*, target_id, target_type)

Bases: object

Attachment target specifications.

Parameters:
  • target_id (str) – The id of the target to attach the secret to.

  • target_type (AttachmentTargetType) – The type of the target to attach the secret to.

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_attachment_target_props = secretsmanager.SecretAttachmentTargetProps(
    target_id="targetId",
    target_type=secretsmanager.AttachmentTargetType.INSTANCE
)

Attributes

target_id

The id of the target to attach the secret to.

target_type

The type of the target to attach the secret to.