UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

75 lines (74 loc) 3.61 kB
import * as pulumi from "@pulumi/pulumi"; /** * Resource Type definition for AWS::SecretsManager::SecretTargetAttachment */ export declare class SecretTargetAttachment extends pulumi.CustomResource { /** * Get an existing SecretTargetAttachment resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): SecretTargetAttachment; /** * Returns true if the given object is an instance of SecretTargetAttachment. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SecretTargetAttachment; readonly awsId: pulumi.Output<string>; /** * The ARN or name of the secret. To reference a secret also created in this template, use the see [Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html) function with the secret's logical ID. This field is unique for each target attachment definition. */ readonly secretId: pulumi.Output<string>; /** * The ID of the database or cluster. */ readonly targetId: pulumi.Output<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 */ readonly targetType: pulumi.Output<string>; /** * Create a SecretTargetAttachment resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SecretTargetAttachmentArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a SecretTargetAttachment resource. */ export interface SecretTargetAttachmentArgs { /** * The ARN or name of the secret. To reference a secret also created in this template, use the see [Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html) function with the secret's logical ID. This field is unique for each target attachment definition. */ secretId: pulumi.Input<string>; /** * The ID of the database or cluster. */ targetId: pulumi.Input<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 */ targetType: pulumi.Input<string>; }