We recommend new projects start with resources from the AWS provider.
aws-native.secretsmanager.SecretTargetAttachment
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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:
- Secret
Id 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.
- Target
Id string - The ID of the database or cluster.
- Target
Type 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 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.
- Target
Id string - The ID of the database or cluster.
- Target
Type 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 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.
- target
Id String - The ID of the database or cluster.
- target
Type 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 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.
- target
Id string - The ID of the database or cluster.
- target
Type 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
- secret
Id 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.
- target
Id String - The ID of the database or cluster.
- target
Type 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:
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.