Class CfnSecretTargetAttachmentProps
Properties for defining a CfnSecretTargetAttachment
.
Inheritance
System.Object
CfnSecretTargetAttachmentProps
Implements
Namespace: Amazon.CDK.AWS.SecretsManager
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnSecretTargetAttachmentProps : Object, ICfnSecretTargetAttachmentProps
Syntax (vb)
Public Class CfnSecretTargetAttachmentProps
Inherits Object
Implements ICfnSecretTargetAttachmentProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 cfnSecretTargetAttachmentProps = new CfnSecretTargetAttachmentProps {
SecretId = "secretId",
TargetId = "targetId",
TargetType = "targetType"
};
Synopsis
Constructors
CfnSecretTargetAttachmentProps() |
Properties
SecretId | The ARN or name of the secret. |
TargetId | The ID of the database or cluster. |
TargetType | A string that defines the type of service or database associated with the secret. |
Constructors
CfnSecretTargetAttachmentProps()
public CfnSecretTargetAttachmentProps()
Properties
SecretId
The ARN or name of the secret.
public string SecretId { get; set; }
Property Value
System.String
Remarks
To reference a secret also created in this template, use the see Ref function with the secret's logical ID.
TargetId
The ID of the database or cluster.
public string TargetId { get; set; }
Property Value
System.String
Remarks
TargetType
A string that defines the type of service or database associated with the secret.
public string TargetType { get; set; }
Property Value
System.String
Remarks
This value instructs Secrets Manager how to update the secret with the details of the service or database. This value must be one of the following: