SecretAttachmentTargetProps Struct
Attachment target specifications.
| Source | aws-secretsmanager/lib/secret.ts |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_secretsmanager as secretsmanager } from 'aws-cdk-lib';
const secretAttachmentTargetProps: secretsmanager.SecretAttachmentTargetProps = {
targetId: 'targetId',
targetType: secretsmanager.AttachmentTargetType.RDS_DB_INSTANCE,
};
python
# 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_attachment_target_props = secretsmanager.SecretAttachmentTargetProps(
target_id="targetId",
target_type=secretsmanager.AttachmentTargetType.RDS_DB_INSTANCE
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.secretsmanager.*;
SecretAttachmentTargetProps secretAttachmentTargetProps = SecretAttachmentTargetProps.builder()
.targetId("targetId")
.targetType(AttachmentTargetType.RDS_DB_INSTANCE)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SecretsManager;
var secretAttachmentTargetProps = new SecretAttachmentTargetProps {
TargetId = "targetId",
TargetType = AttachmentTargetType.RDS_DB_INSTANCE
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
secretAttachmentTargetProps := &SecretAttachmentTargetProps{
TargetId: jsii.String("targetId"),
TargetType: awscdk.Aws_secretsmanager.AttachmentTargetType_RDS_DB_INSTANCE,
}
Properties
The id of the target to attach the secret to.
targetTypeAttachmentTargetTypetarget_typeAttachmentTargetTypetargetTypeAttachmentTargetTypeTargetTypeAttachmentTargetTypeTargetTypeAttachmentTargetType required #The type of the target to attach the secret to.