Interface ICfnSecretTargetAttachmentProps
Properties for defining a CfnSecretTargetAttachment
.
Namespace: Amazon.CDK.AWS.SecretsManager
Assembly: Amazon.CDK.AWS.SecretsManager.dll
Syntax (csharp)
public interface ICfnSecretTargetAttachmentProps
Syntax (vb)
Public Interface 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
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. |
Properties
SecretId
The ARN or name of the secret.
string SecretId { get; }
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.
string TargetId { get; }
Property Value
System.String
Remarks
TargetType
A string that defines the type of service or database associated with the secret.
string TargetType { get; }
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: