-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnTagAssociationProps.go
102 lines (99 loc) · 3.28 KB
/
CfnTagAssociationProps.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
package awslakeformation
// Properties for defining a `CfnTagAssociation`.
//
// Example:
// import cdk "github.com/aws/aws-cdk-go/awscdk"
// import "github.com/aws/aws-cdk-go/awscdkgluealpha"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var stack stack
// var accountId string
//
//
// tagKey := "aws"
// tagValues := []*string{
// "dev",
// }
//
// database := awscdkgluealpha.NewDatabase(this, jsii.String("Database"))
//
// table := awscdkgluealpha.NewS3Table(this, jsii.String("Table"), &S3TableProps{
// Database: Database,
// Columns: []column{
// &column{
// Name: jsii.String("col1"),
// Type: awscdkgluealpha.Schema_STRING(),
// },
// &column{
// Name: jsii.String("col2"),
// Type: awscdkgluealpha.Schema_STRING(),
// },
// },
// DataFormat: awscdkgluealpha.DataFormat_CSV(),
// })
//
// synthesizer := stack.Synthesizer.(defaultStackSynthesizer)
// awscdk.NewCfnDataLakeSettings(this, jsii.String("DataLakeSettings"), &CfnDataLakeSettingsProps{
// Admins: []interface{}{
// &DataLakePrincipalProperty{
// DataLakePrincipalIdentifier: stack.FormatArn(&ArnComponents{
// Service: jsii.String("iam"),
// Resource: jsii.String("role"),
// Region: jsii.String(""),
// Account: accountId,
// ResourceName: jsii.String("Admin"),
// }),
// },
// &DataLakePrincipalProperty{
// // The CDK cloudformation execution role.
// DataLakePrincipalIdentifier: synthesizer.cloudFormationExecutionRoleArn.replace(jsii.String("${AWS::Partition}"), jsii.String("aws")),
// },
// },
// })
//
// tag := awscdk.NewCfnTag(this, jsii.String("Tag"), &CfnTagProps{
// CatalogId: accountId,
// TagKey: jsii.String(TagKey),
// TagValues: TagValues,
// })
//
// lfTagPairProperty := &LFTagPairProperty{
// CatalogId: accountId,
// TagKey: jsii.String(TagKey),
// TagValues: TagValues,
// }
//
// tagAssociation := awscdk.NewCfnTagAssociation(this, jsii.String("TagAssociation"), &CfnTagAssociationProps{
// LfTags: []interface{}{
// lfTagPairProperty,
// },
// Resource: &ResourceProperty{
// TableWithColumns: &TableWithColumnsResourceProperty{
// DatabaseName: database.DatabaseName,
// ColumnNames: []*string{
// jsii.String("col1"),
// jsii.String("col2"),
// },
// CatalogId: accountId,
// Name: table.TableName,
// },
// },
// })
//
// tagAssociation.Node.AddDependency(tag)
// tagAssociation.Node.AddDependency(table)
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-tagassociation.html
//
type CfnTagAssociationProps struct {
// A structure containing an LF-tag key-value pair.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-tagassociation.html#cfn-lakeformation-tagassociation-lftags
//
LfTags interface{} `field:"required" json:"lfTags" yaml:"lfTags"`
// UTF-8 string (valid values: `DATABASE | TABLE` ).
//
// The resource for which the LF-tag policy applies.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-tagassociation.html#cfn-lakeformation-tagassociation-resource
//
Resource interface{} `field:"required" json:"resource" yaml:"resource"`
}