Interface CfnSecretTargetAttachmentProps

All Superinterfaces:
All Known Implementing Classes:

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


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CfnSecretTargetAttachmentProps cfnSecretTargetAttachmentProps = CfnSecretTargetAttachmentProps.builder()
  • 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()
      a CfnSecretTargetAttachmentProps.Builder of CfnSecretTargetAttachmentProps