1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. secretsmanager
  5. SecretTargetAttachment

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.secretsmanager.SecretTargetAttachment

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

    Resource Type definition for AWS::SecretsManager::SecretTargetAttachment

    Create SecretTargetAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SecretTargetAttachment(name: string, args: SecretTargetAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def SecretTargetAttachment(resource_name: str,
                               args: SecretTargetAttachmentArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecretTargetAttachment(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               secret_id: Optional[str] = None,
                               target_id: Optional[str] = None,
                               target_type: Optional[str] = None)
    func NewSecretTargetAttachment(ctx *Context, name string, args SecretTargetAttachmentArgs, opts ...ResourceOption) (*SecretTargetAttachment, error)
    public SecretTargetAttachment(string name, SecretTargetAttachmentArgs args, CustomResourceOptions? opts = null)
    public SecretTargetAttachment(String name, SecretTargetAttachmentArgs args)
    public SecretTargetAttachment(String name, SecretTargetAttachmentArgs args, CustomResourceOptions options)
    
    type: aws-native:secretsmanager:SecretTargetAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SecretTargetAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SecretTargetAttachmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SecretTargetAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecretTargetAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecretTargetAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SecretTargetAttachment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SecretTargetAttachment resource accepts the following input properties:

    SecretId string
    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. This field is unique for each target attachment definition.
    TargetId string
    The ID of the database or cluster.
    TargetType string
    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::RedshiftServerless::Namespace
    • AWS::DocDB::DBInstance
    • AWS::DocDB::DBCluster
    • AWS::DocDBElastic::Cluster
    SecretId string
    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. This field is unique for each target attachment definition.
    TargetId string
    The ID of the database or cluster.
    TargetType string
    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::RedshiftServerless::Namespace
    • AWS::DocDB::DBInstance
    • AWS::DocDB::DBCluster
    • AWS::DocDBElastic::Cluster
    secretId String
    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. This field is unique for each target attachment definition.
    targetId String
    The ID of the database or cluster.
    targetType String
    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::RedshiftServerless::Namespace
    • AWS::DocDB::DBInstance
    • AWS::DocDB::DBCluster
    • AWS::DocDBElastic::Cluster
    secretId string
    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. This field is unique for each target attachment definition.
    targetId string
    The ID of the database or cluster.
    targetType string
    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::RedshiftServerless::Namespace
    • AWS::DocDB::DBInstance
    • AWS::DocDB::DBCluster
    • AWS::DocDBElastic::Cluster
    secret_id str
    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. This field is unique for each target attachment definition.
    target_id str
    The ID of the database or cluster.
    target_type str
    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::RedshiftServerless::Namespace
    • AWS::DocDB::DBInstance
    • AWS::DocDB::DBCluster
    • AWS::DocDBElastic::Cluster
    secretId String
    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. This field is unique for each target attachment definition.
    targetId String
    The ID of the database or cluster.
    targetType String
    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::RedshiftServerless::Namespace
    • AWS::DocDB::DBInstance
    • AWS::DocDB::DBCluster
    • AWS::DocDBElastic::Cluster

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecretTargetAttachment resource produces the following output properties:

    AwsId string
    Id string
    The provider-assigned unique ID for this managed resource.
    AwsId string
    Id string
    The provider-assigned unique ID for this managed resource.
    awsId String
    id String
    The provider-assigned unique ID for this managed resource.
    awsId string
    id string
    The provider-assigned unique ID for this managed resource.
    aws_id str
    id str
    The provider-assigned unique ID for this managed resource.
    awsId String
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi