-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnDatabaseProps.go
56 lines (53 loc) · 2.1 KB
/
CfnDatabaseProps.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
package awsglue
// Properties for defining a `CfnDatabase`.
//
// 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"
//
// var parameters interface{}
//
// cfnDatabaseProps := &CfnDatabaseProps{
// CatalogId: jsii.String("catalogId"),
// DatabaseInput: &DatabaseInputProperty{
// CreateTableDefaultPermissions: []interface{}{
// &PrincipalPrivilegesProperty{
// Permissions: []*string{
// jsii.String("permissions"),
// },
// Principal: &DataLakePrincipalProperty{
// DataLakePrincipalIdentifier: jsii.String("dataLakePrincipalIdentifier"),
// },
// },
// },
// Description: jsii.String("description"),
// FederatedDatabase: &FederatedDatabaseProperty{
// ConnectionName: jsii.String("connectionName"),
// Identifier: jsii.String("identifier"),
// },
// LocationUri: jsii.String("locationUri"),
// Name: jsii.String("name"),
// Parameters: parameters,
// TargetDatabase: &DatabaseIdentifierProperty{
// CatalogId: jsii.String("catalogId"),
// DatabaseName: jsii.String("databaseName"),
// Region: jsii.String("region"),
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-database.html
//
type CfnDatabaseProps struct {
// The AWS account ID for the account in which to create the catalog object.
//
// > To specify the account ID, you can use the `Ref` intrinsic function with the `AWS::AccountId` pseudo parameter. For example: `!Ref AWS::AccountId`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-database.html#cfn-glue-database-catalogid
//
CatalogId *string `field:"required" json:"catalogId" yaml:"catalogId"`
// The metadata for the database.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-database.html#cfn-glue-database-databaseinput
//
DatabaseInput interface{} `field:"required" json:"databaseInput" yaml:"databaseInput"`
}