Class CfnSecretTargetAttachment.Builder

java.lang.Object
software.amazon.awscdk.services.secretsmanager.CfnSecretTargetAttachment.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecretTargetAttachment>
Enclosing class:
CfnSecretTargetAttachment

@Stability(Stable) public static final class CfnSecretTargetAttachment.Builder extends Object implements software.amazon.jsii.Builder<CfnSecretTargetAttachment>
A fluent builder for CfnSecretTargetAttachment.
  • Method Details

    • create

      @Stability(Stable) public static CfnSecretTargetAttachment.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnSecretTargetAttachment.Builder.
    • secretId

      @Stability(Stable) public CfnSecretTargetAttachment.Builder secretId(String secretId)
      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.

      Parameters:
      secretId - The ARN or name of the secret. This parameter is required.
      Returns:
      this
    • targetId

      @Stability(Stable) public CfnSecretTargetAttachment.Builder targetId(String targetId)
      The ID of the database or cluster.

      Parameters:
      targetId - The ID of the database or cluster. This parameter is required.
      Returns:
      this
    • targetType

      @Stability(Stable) public CfnSecretTargetAttachment.Builder targetType(String targetType)
      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

      Parameters:
      targetType - A string that defines the type of service or database associated with the secret. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnSecretTargetAttachment build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnSecretTargetAttachment>
      Returns:
      a newly built instance of CfnSecretTargetAttachment.