/
CfnSecretTargetAttachmentProps.go
43 lines (40 loc) · 2.06 KB
/
CfnSecretTargetAttachmentProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package awssecretsmanager
// Properties for defining a `CfnSecretTargetAttachment`.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// cfnSecretTargetAttachmentProps := &CfnSecretTargetAttachmentProps{
// SecretId: jsii.String("secretId"),
// TargetId: jsii.String("targetId"),
// TargetType: jsii.String("targetType"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html
//
type CfnSecretTargetAttachmentProps struct {
// 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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html#cfn-secretsmanager-secrettargetattachment-secretid
//
SecretId *string `field:"required" json:"secretId" yaml:"secretId"`
// The ID of the database or cluster.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html#cfn-secretsmanager-secrettargetattachment-targetid
//
TargetId *string `field:"required" json:"targetId" yaml:"targetId"`
// 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.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secrettargetattachment.html#cfn-secretsmanager-secrettargetattachment-targettype
//
TargetType *string `field:"required" json:"targetType" yaml:"targetType"`
}