Interface CfnSecretTargetAttachmentProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnSecretTargetAttachmentProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.270Z") @Stability(Stable) public interface CfnSecretTargetAttachmentProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnSecretTargetAttachment.

Example:

 // 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.*;
 CfnSecretTargetAttachmentProps cfnSecretTargetAttachmentProps = CfnSecretTargetAttachmentProps.builder()
         .secretId("secretId")
         .targetId("targetId")
         .targetType("targetType")
         .build();
 
  • Method Details

    • getSecretId

      @Stability(Stable) @NotNull String getSecretId()
      The ARN or name of the secret.

      To reference a secret also created in this template, use the see Ref function with the secret's logical ID.

    • getTargetId

      @Stability(Stable) @NotNull String getTargetId()
      The ID of the database or cluster.
    • getTargetType

      @Stability(Stable) @NotNull String getTargetType()
      A string that defines the type of service or database associated with the secret.

      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:

      • AWS::RDS::DBInstance
      • AWS::RDS::DBCluster
      • AWS::Redshift::Cluster
      • AWS::DocDB::DBInstance
      • AWS::DocDB::DBCluster
    • builder

      @Stability(Stable) static CfnSecretTargetAttachmentProps.Builder builder()
      Returns:
      a CfnSecretTargetAttachmentProps.Builder of CfnSecretTargetAttachmentProps