-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnGlobalClusterProps.go
73 lines (70 loc) · 3.62 KB
/
CfnGlobalClusterProps.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
package awsrds
// Properties for defining a `CfnGlobalCluster`.
//
// 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"
//
// cfnGlobalClusterProps := &CfnGlobalClusterProps{
// DeletionProtection: jsii.Boolean(false),
// Engine: jsii.String("engine"),
// EngineVersion: jsii.String("engineVersion"),
// GlobalClusterIdentifier: jsii.String("globalClusterIdentifier"),
// SourceDbClusterIdentifier: jsii.String("sourceDbClusterIdentifier"),
// StorageEncrypted: jsii.Boolean(false),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-globalcluster.html
//
type CfnGlobalClusterProps struct {
// Specifies whether to enable deletion protection for the new global database cluster.
//
// The global database can't be deleted when deletion protection is enabled.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-globalcluster.html#cfn-rds-globalcluster-deletionprotection
//
DeletionProtection interface{} `field:"optional" json:"deletionProtection" yaml:"deletionProtection"`
// The database engine to use for this global database cluster.
//
// Valid Values: `aurora-mysql | aurora-postgresql`
//
// Constraints:
//
// - Can't be specified if `SourceDBClusterIdentifier` is specified. In this case, Amazon Aurora uses the engine of the source DB cluster.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-globalcluster.html#cfn-rds-globalcluster-engine
//
Engine *string `field:"optional" json:"engine" yaml:"engine"`
// The engine version to use for this global database cluster.
//
// Constraints:
//
// - Can't be specified if `SourceDBClusterIdentifier` is specified. In this case, Amazon Aurora uses the engine version of the source DB cluster.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-globalcluster.html#cfn-rds-globalcluster-engineversion
//
EngineVersion *string `field:"optional" json:"engineVersion" yaml:"engineVersion"`
// The cluster identifier for this global database cluster.
//
// This parameter is stored as a lowercase string.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-globalcluster.html#cfn-rds-globalcluster-globalclusteridentifier
//
GlobalClusterIdentifier *string `field:"optional" json:"globalClusterIdentifier" yaml:"globalClusterIdentifier"`
// The Amazon Resource Name (ARN) to use as the primary cluster of the global database.
//
// If you provide a value for this parameter, don't specify values for the following settings because Amazon Aurora uses the values from the specified source DB cluster:
//
// - `DatabaseName`
// - `Engine`
// - `EngineVersion`
// - `StorageEncrypted`.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-globalcluster.html#cfn-rds-globalcluster-sourcedbclusteridentifier
//
SourceDbClusterIdentifier *string `field:"optional" json:"sourceDbClusterIdentifier" yaml:"sourceDbClusterIdentifier"`
// Specifies whether to enable storage encryption for the new global database cluster.
//
// Constraints:
//
// - Can't be specified if `SourceDBClusterIdentifier` is specified. In this case, Amazon Aurora uses the setting from the source DB cluster.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-globalcluster.html#cfn-rds-globalcluster-storageencrypted
//
StorageEncrypted interface{} `field:"optional" json:"storageEncrypted" yaml:"storageEncrypted"`
}