Class CfnSecretTargetAttachment
The AWS::SecretsManager::SecretTargetAttachment
resource completes the final link between a Secrets Manager secret and the associated database by adding the database connection information to the secret JSON.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.SecretsManager
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnSecretTargetAttachment : CfnResource, IInspectable
Syntax (vb)
Public Class CfnSecretTargetAttachment
Inherits CfnResource
Implements IInspectable
Remarks
If you want to turn on automatic rotation for a database credential secret, the secret must contain the database connection information. For more information, see JSON structure of Secrets Manager database credential secrets .
For Amazon RDS master user credentials, see AWS::RDS::DBCluster MasterUserSecret .
CloudformationResource: AWS::SecretsManager::SecretTargetAttachment
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 cfnSecretTargetAttachment = new CfnSecretTargetAttachment(this, "MyCfnSecretTargetAttachment", new CfnSecretTargetAttachmentProps {
SecretId = "secretId",
TargetId = "targetId",
TargetType = "targetType"
});
Synopsis
Constructors
CfnSecretTargetAttachment(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnSecretTargetAttachment(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnSecretTargetAttachment(Construct, String, ICfnSecretTargetAttachmentProps) |
Properties
AttrId | |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
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. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnSecretTargetAttachment(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnSecretTargetAttachment(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnSecretTargetAttachment(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnSecretTargetAttachment(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnSecretTargetAttachment(Construct, String, ICfnSecretTargetAttachmentProps)
public CfnSecretTargetAttachment(Construct scope, string id, ICfnSecretTargetAttachmentProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnSecretTargetAttachmentProps
Resource properties.
Properties
AttrId
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
SecretId
The ARN or name of the secret.
public virtual string SecretId { get; set; }
Property Value
System.String
TargetId
The ID of the database or cluster.
public virtual string TargetId { get; set; }
Property Value
System.String
TargetType
A string that defines the type of service or database associated with the secret.
public virtual string TargetType { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>