Documentation
¶
Index ¶
- func CfnDBClusterParameterGroup_CFN_RESOURCE_TYPE_NAME() *string
- func CfnDBClusterParameterGroup_IsCfnElement(x interface{}) *bool
- func CfnDBClusterParameterGroup_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnDBClusterParameterGroup_IsConstruct(x interface{}) *bool
- func CfnDBCluster_CFN_RESOURCE_TYPE_NAME() *string
- func CfnDBCluster_IsCfnElement(x interface{}) *bool
- func CfnDBCluster_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnDBCluster_IsConstruct(x interface{}) *bool
- func CfnDBInstance_CFN_RESOURCE_TYPE_NAME() *string
- func CfnDBInstance_IsCfnElement(x interface{}) *bool
- func CfnDBInstance_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnDBInstance_IsConstruct(x interface{}) *bool
- func CfnDBSubnetGroup_CFN_RESOURCE_TYPE_NAME() *string
- func CfnDBSubnetGroup_IsCfnElement(x interface{}) *bool
- func CfnDBSubnetGroup_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnDBSubnetGroup_IsConstruct(x interface{}) *bool
- func ClusterParameterGroup_IsConstruct(x interface{}) *bool
- func ClusterParameterGroup_IsResource(construct constructs.IConstruct) *bool
- func DatabaseCluster_DEFAULT_NUM_INSTANCES() *float64
- func DatabaseCluster_DEFAULT_PORT() *float64
- func DatabaseCluster_IsConstruct(x interface{}) *bool
- func DatabaseCluster_IsResource(construct constructs.IConstruct) *bool
- func DatabaseInstance_IsConstruct(x interface{}) *bool
- func DatabaseInstance_IsResource(construct constructs.IConstruct) *bool
- func DatabaseSecret_FromSecretAttributes(scope constructs.Construct, id *string, ...) awssecretsmanager.ISecret
- func DatabaseSecret_FromSecretCompleteArn(scope constructs.Construct, id *string, secretCompleteArn *string) awssecretsmanager.ISecret
- func DatabaseSecret_FromSecretNameV2(scope constructs.Construct, id *string, secretName *string) awssecretsmanager.ISecret
- func DatabaseSecret_FromSecretPartialArn(scope constructs.Construct, id *string, secretPartialArn *string) awssecretsmanager.ISecret
- func DatabaseSecret_IsConstruct(x interface{}) *bool
- func DatabaseSecret_IsResource(construct constructs.IConstruct) *bool
- func NewCfnDBClusterParameterGroup_Override(c CfnDBClusterParameterGroup, scope constructs.Construct, id *string, ...)
- func NewCfnDBCluster_Override(c CfnDBCluster, scope constructs.Construct, id *string, ...)
- func NewCfnDBInstance_Override(c CfnDBInstance, scope constructs.Construct, id *string, ...)
- func NewCfnDBSubnetGroup_Override(c CfnDBSubnetGroup, scope constructs.Construct, id *string, ...)
- func NewClusterParameterGroup_Override(c ClusterParameterGroup, scope constructs.Construct, id *string, ...)
- func NewDatabaseCluster_Override(d DatabaseCluster, scope constructs.Construct, id *string, ...)
- func NewDatabaseInstance_Override(d DatabaseInstance, scope constructs.Construct, id *string, ...)
- func NewDatabaseSecret_Override(d DatabaseSecret, scope constructs.Construct, id *string, ...)
- func NewEndpoint_Override(e Endpoint, address *string, port *float64)
- type BackupProps
- type CfnDBCluster
- type CfnDBClusterParameterGroup
- type CfnDBClusterParameterGroupProps
- type CfnDBClusterProps
- type CfnDBInstance
- type CfnDBInstanceProps
- type CfnDBSubnetGroup
- type CfnDBSubnetGroupProps
- type ClusterParameterGroup
- type ClusterParameterGroupProps
- type DatabaseCluster
- type DatabaseClusterAttributes
- type DatabaseClusterProps
- type DatabaseInstance
- type DatabaseInstanceAttributes
- type DatabaseInstanceProps
- type DatabaseSecret
- type DatabaseSecretProps
- type Endpoint
- type IClusterParameterGroup
- type IDatabaseCluster
- type IDatabaseInstance
- type Login
- type RotationMultiUserOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnDBClusterParameterGroup_CFN_RESOURCE_TYPE_NAME ¶
func CfnDBClusterParameterGroup_CFN_RESOURCE_TYPE_NAME() *string
func CfnDBClusterParameterGroup_IsCfnElement ¶
func CfnDBClusterParameterGroup_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnDBClusterParameterGroup_IsCfnResource ¶
func CfnDBClusterParameterGroup_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnDBClusterParameterGroup_IsConstruct ¶
func CfnDBClusterParameterGroup_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func CfnDBCluster_CFN_RESOURCE_TYPE_NAME ¶
func CfnDBCluster_CFN_RESOURCE_TYPE_NAME() *string
func CfnDBCluster_IsCfnElement ¶
func CfnDBCluster_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnDBCluster_IsCfnResource ¶
func CfnDBCluster_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnDBCluster_IsConstruct ¶
func CfnDBCluster_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func CfnDBInstance_CFN_RESOURCE_TYPE_NAME ¶
func CfnDBInstance_CFN_RESOURCE_TYPE_NAME() *string
func CfnDBInstance_IsCfnElement ¶
func CfnDBInstance_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnDBInstance_IsCfnResource ¶
func CfnDBInstance_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnDBInstance_IsConstruct ¶
func CfnDBInstance_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func CfnDBSubnetGroup_CFN_RESOURCE_TYPE_NAME ¶
func CfnDBSubnetGroup_CFN_RESOURCE_TYPE_NAME() *string
func CfnDBSubnetGroup_IsCfnElement ¶
func CfnDBSubnetGroup_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnDBSubnetGroup_IsCfnResource ¶
func CfnDBSubnetGroup_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnDBSubnetGroup_IsConstruct ¶
func CfnDBSubnetGroup_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func ClusterParameterGroup_IsConstruct ¶
func ClusterParameterGroup_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func ClusterParameterGroup_IsResource ¶
func ClusterParameterGroup_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func DatabaseCluster_DEFAULT_NUM_INSTANCES ¶
func DatabaseCluster_DEFAULT_NUM_INSTANCES() *float64
func DatabaseCluster_DEFAULT_PORT ¶
func DatabaseCluster_DEFAULT_PORT() *float64
func DatabaseCluster_IsConstruct ¶
func DatabaseCluster_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func DatabaseCluster_IsResource ¶
func DatabaseCluster_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func DatabaseInstance_IsConstruct ¶
func DatabaseInstance_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func DatabaseInstance_IsResource ¶
func DatabaseInstance_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func DatabaseSecret_FromSecretAttributes ¶
func DatabaseSecret_FromSecretAttributes(scope constructs.Construct, id *string, attrs *awssecretsmanager.SecretAttributes) awssecretsmanager.ISecret
Import an existing secret into the Stack.
func DatabaseSecret_FromSecretCompleteArn ¶
func DatabaseSecret_FromSecretCompleteArn(scope constructs.Construct, id *string, secretCompleteArn *string) awssecretsmanager.ISecret
Imports a secret by complete ARN.
The complete ARN is the ARN with the Secrets Manager-supplied suffix.
func DatabaseSecret_FromSecretNameV2 ¶
func DatabaseSecret_FromSecretNameV2(scope constructs.Construct, id *string, secretName *string) awssecretsmanager.ISecret
Imports a secret by secret name.
A secret with this name must exist in the same account & region. Replaces the deprecated `fromSecretName`.
func DatabaseSecret_FromSecretPartialArn ¶
func DatabaseSecret_FromSecretPartialArn(scope constructs.Construct, id *string, secretPartialArn *string) awssecretsmanager.ISecret
Imports a secret by partial ARN.
The partial ARN is the ARN without the Secrets Manager-supplied suffix.
func DatabaseSecret_IsConstruct ¶
func DatabaseSecret_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func DatabaseSecret_IsResource ¶
func DatabaseSecret_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
func NewCfnDBClusterParameterGroup_Override ¶
func NewCfnDBClusterParameterGroup_Override(c CfnDBClusterParameterGroup, scope constructs.Construct, id *string, props *CfnDBClusterParameterGroupProps)
Create a new `AWS::DocDB::DBClusterParameterGroup`.
func NewCfnDBCluster_Override ¶
func NewCfnDBCluster_Override(c CfnDBCluster, scope constructs.Construct, id *string, props *CfnDBClusterProps)
Create a new `AWS::DocDB::DBCluster`.
func NewCfnDBInstance_Override ¶
func NewCfnDBInstance_Override(c CfnDBInstance, scope constructs.Construct, id *string, props *CfnDBInstanceProps)
Create a new `AWS::DocDB::DBInstance`.
func NewCfnDBSubnetGroup_Override ¶
func NewCfnDBSubnetGroup_Override(c CfnDBSubnetGroup, scope constructs.Construct, id *string, props *CfnDBSubnetGroupProps)
Create a new `AWS::DocDB::DBSubnetGroup`.
func NewClusterParameterGroup_Override ¶
func NewClusterParameterGroup_Override(c ClusterParameterGroup, scope constructs.Construct, id *string, props *ClusterParameterGroupProps)
func NewDatabaseCluster_Override ¶
func NewDatabaseCluster_Override(d DatabaseCluster, scope constructs.Construct, id *string, props *DatabaseClusterProps)
func NewDatabaseInstance_Override ¶
func NewDatabaseInstance_Override(d DatabaseInstance, scope constructs.Construct, id *string, props *DatabaseInstanceProps)
func NewDatabaseSecret_Override ¶
func NewDatabaseSecret_Override(d DatabaseSecret, scope constructs.Construct, id *string, props *DatabaseSecretProps)
func NewEndpoint_Override ¶
Constructs an Endpoint instance.
Types ¶
type BackupProps ¶
type BackupProps struct {
// A daily time range in 24-hours UTC format in which backups preferably execute.
//
// Must be at least 30 minutes long.
//
// Example: '01:00-02:00'
PreferredWindow *string `json:"preferredWindow"`
// How many days to retain the backup.
Retention awscdk.Duration `json:"retention"`
}
Backup configuration for DocumentDB databases.
TODO: EXAMPLE
type CfnDBCluster ¶
type CfnDBCluster interface {
awscdk.CfnResource
awscdk.IInspectable
AttrClusterResourceId() *string
AttrEndpoint() *string
AttrPort() *string
AttrReadEndpoint() *string
AvailabilityZones() *[]*string
SetAvailabilityZones(val *[]*string)
BackupRetentionPeriod() *float64
SetBackupRetentionPeriod(val *float64)
CfnOptions() awscdk.ICfnResourceOptions
CfnProperties() *map[string]interface{}
CfnResourceType() *string
CreationStack() *[]*string
DbClusterIdentifier() *string
SetDbClusterIdentifier(val *string)
DbClusterParameterGroupName() *string
SetDbClusterParameterGroupName(val *string)
DbSubnetGroupName() *string
SetDbSubnetGroupName(val *string)
DeletionProtection() interface{}
SetDeletionProtection(val interface{})
EnableCloudwatchLogsExports() *[]*string
SetEnableCloudwatchLogsExports(val *[]*string)
EngineVersion() *string
SetEngineVersion(val *string)
KmsKeyId() *string
SetKmsKeyId(val *string)
LogicalId() *string
MasterUsername() *string
SetMasterUsername(val *string)
MasterUserPassword() *string
SetMasterUserPassword(val *string)
Node() constructs.Node
Port() *float64
SetPort(val *float64)
PreferredBackupWindow() *string
SetPreferredBackupWindow(val *string)
PreferredMaintenanceWindow() *string
SetPreferredMaintenanceWindow(val *string)
Ref() *string
SnapshotIdentifier() *string
SetSnapshotIdentifier(val *string)
Stack() awscdk.Stack
StorageEncrypted() interface{}
SetStorageEncrypted(val interface{})
Tags() awscdk.TagManager
UpdatedProperites() *map[string]interface{}
VpcSecurityGroupIds() *[]*string
SetVpcSecurityGroupIds(val *[]*string)
AddDeletionOverride(path *string)
AddDependsOn(target awscdk.CfnResource)
AddMetadata(key *string, value interface{})
AddOverride(path *string, value interface{})
AddPropertyDeletionOverride(propertyPath *string)
AddPropertyOverride(propertyPath *string, value interface{})
ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
GetAtt(attributeName *string) awscdk.Reference
GetMetadata(key *string) interface{}
Inspect(inspector awscdk.TreeInspector)
OverrideLogicalId(newLogicalId *string)
RenderProperties(props *map[string]interface{}) *map[string]interface{}
ShouldSynthesize() *bool
ToString() *string
ValidateProperties(_properties interface{})
}
A CloudFormation `AWS::DocDB::DBCluster`.
TODO: EXAMPLE
func NewCfnDBCluster ¶
func NewCfnDBCluster(scope constructs.Construct, id *string, props *CfnDBClusterProps) CfnDBCluster
Create a new `AWS::DocDB::DBCluster`.
type CfnDBClusterParameterGroup ¶
type CfnDBClusterParameterGroup interface {
awscdk.CfnResource
awscdk.IInspectable
CfnOptions() awscdk.ICfnResourceOptions
CfnProperties() *map[string]interface{}
CfnResourceType() *string
CreationStack() *[]*string
Description() *string
SetDescription(val *string)
Family() *string
SetFamily(val *string)
LogicalId() *string
Name() *string
SetName(val *string)
Node() constructs.Node
Parameters() interface{}
SetParameters(val interface{})
Ref() *string
Stack() awscdk.Stack
Tags() awscdk.TagManager
UpdatedProperites() *map[string]interface{}
AddDeletionOverride(path *string)
AddDependsOn(target awscdk.CfnResource)
AddMetadata(key *string, value interface{})
AddOverride(path *string, value interface{})
AddPropertyDeletionOverride(propertyPath *string)
AddPropertyOverride(propertyPath *string, value interface{})
ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
GetAtt(attributeName *string) awscdk.Reference
GetMetadata(key *string) interface{}
Inspect(inspector awscdk.TreeInspector)
OverrideLogicalId(newLogicalId *string)
RenderProperties(props *map[string]interface{}) *map[string]interface{}
ShouldSynthesize() *bool
ToString() *string
ValidateProperties(_properties interface{})
}
A CloudFormation `AWS::DocDB::DBClusterParameterGroup`.
TODO: EXAMPLE
func NewCfnDBClusterParameterGroup ¶
func NewCfnDBClusterParameterGroup(scope constructs.Construct, id *string, props *CfnDBClusterParameterGroupProps) CfnDBClusterParameterGroup
Create a new `AWS::DocDB::DBClusterParameterGroup`.
type CfnDBClusterParameterGroupProps ¶
type CfnDBClusterParameterGroupProps struct {
// `AWS::DocDB::DBClusterParameterGroup.Description`.
Description *string `json:"description"`
// `AWS::DocDB::DBClusterParameterGroup.Family`.
Family *string `json:"family"`
// `AWS::DocDB::DBClusterParameterGroup.Name`.
Name *string `json:"name"`
// `AWS::DocDB::DBClusterParameterGroup.Parameters`.
Parameters interface{} `json:"parameters"`
// `AWS::DocDB::DBClusterParameterGroup.Tags`.
Tags *[]*awscdk.CfnTag `json:"tags"`
}
Properties for defining a `AWS::DocDB::DBClusterParameterGroup`.
TODO: EXAMPLE
type CfnDBClusterProps ¶
type CfnDBClusterProps struct {
// `AWS::DocDB::DBCluster.AvailabilityZones`.
AvailabilityZones *[]*string `json:"availabilityZones"`
// `AWS::DocDB::DBCluster.BackupRetentionPeriod`.
BackupRetentionPeriod *float64 `json:"backupRetentionPeriod"`
// `AWS::DocDB::DBCluster.DBClusterIdentifier`.
DbClusterIdentifier *string `json:"dbClusterIdentifier"`
// `AWS::DocDB::DBCluster.DBClusterParameterGroupName`.
DbClusterParameterGroupName *string `json:"dbClusterParameterGroupName"`
// `AWS::DocDB::DBCluster.DBSubnetGroupName`.
DbSubnetGroupName *string `json:"dbSubnetGroupName"`
// `AWS::DocDB::DBCluster.DeletionProtection`.
DeletionProtection interface{} `json:"deletionProtection"`
// `AWS::DocDB::DBCluster.EnableCloudwatchLogsExports`.
EnableCloudwatchLogsExports *[]*string `json:"enableCloudwatchLogsExports"`
// `AWS::DocDB::DBCluster.EngineVersion`.
EngineVersion *string `json:"engineVersion"`
// `AWS::DocDB::DBCluster.KmsKeyId`.
KmsKeyId *string `json:"kmsKeyId"`
// `AWS::DocDB::DBCluster.MasterUsername`.
MasterUsername *string `json:"masterUsername"`
// `AWS::DocDB::DBCluster.MasterUserPassword`.
MasterUserPassword *string `json:"masterUserPassword"`
// `AWS::DocDB::DBCluster.Port`.
Port *float64 `json:"port"`
// `AWS::DocDB::DBCluster.PreferredBackupWindow`.
PreferredBackupWindow *string `json:"preferredBackupWindow"`
// `AWS::DocDB::DBCluster.PreferredMaintenanceWindow`.
PreferredMaintenanceWindow *string `json:"preferredMaintenanceWindow"`
// `AWS::DocDB::DBCluster.SnapshotIdentifier`.
SnapshotIdentifier *string `json:"snapshotIdentifier"`
// `AWS::DocDB::DBCluster.StorageEncrypted`.
StorageEncrypted interface{} `json:"storageEncrypted"`
// `AWS::DocDB::DBCluster.Tags`.
Tags *[]*awscdk.CfnTag `json:"tags"`
// `AWS::DocDB::DBCluster.VpcSecurityGroupIds`.
VpcSecurityGroupIds *[]*string `json:"vpcSecurityGroupIds"`
}
Properties for defining a `AWS::DocDB::DBCluster`.
TODO: EXAMPLE
type CfnDBInstance ¶
type CfnDBInstance interface {
awscdk.CfnResource
awscdk.IInspectable
AttrEndpoint() *string
AttrPort() *string
AutoMinorVersionUpgrade() interface{}
SetAutoMinorVersionUpgrade(val interface{})
AvailabilityZone() *string
SetAvailabilityZone(val *string)
CfnOptions() awscdk.ICfnResourceOptions
CfnProperties() *map[string]interface{}
CfnResourceType() *string
CreationStack() *[]*string
DbClusterIdentifier() *string
SetDbClusterIdentifier(val *string)
DbInstanceClass() *string
SetDbInstanceClass(val *string)
DbInstanceIdentifier() *string
SetDbInstanceIdentifier(val *string)
LogicalId() *string
Node() constructs.Node
PreferredMaintenanceWindow() *string
SetPreferredMaintenanceWindow(val *string)
Ref() *string
Stack() awscdk.Stack
Tags() awscdk.TagManager
UpdatedProperites() *map[string]interface{}
AddDeletionOverride(path *string)
AddDependsOn(target awscdk.CfnResource)
AddMetadata(key *string, value interface{})
AddOverride(path *string, value interface{})
AddPropertyDeletionOverride(propertyPath *string)
AddPropertyOverride(propertyPath *string, value interface{})
ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
GetAtt(attributeName *string) awscdk.Reference
GetMetadata(key *string) interface{}
Inspect(inspector awscdk.TreeInspector)
OverrideLogicalId(newLogicalId *string)
RenderProperties(props *map[string]interface{}) *map[string]interface{}
ShouldSynthesize() *bool
ToString() *string
ValidateProperties(_properties interface{})
}
A CloudFormation `AWS::DocDB::DBInstance`.
TODO: EXAMPLE
func NewCfnDBInstance ¶
func NewCfnDBInstance(scope constructs.Construct, id *string, props *CfnDBInstanceProps) CfnDBInstance
Create a new `AWS::DocDB::DBInstance`.
type CfnDBInstanceProps ¶
type CfnDBInstanceProps struct {
// `AWS::DocDB::DBInstance.AutoMinorVersionUpgrade`.
AutoMinorVersionUpgrade interface{} `json:"autoMinorVersionUpgrade"`
// `AWS::DocDB::DBInstance.AvailabilityZone`.
AvailabilityZone *string `json:"availabilityZone"`
// `AWS::DocDB::DBInstance.DBClusterIdentifier`.
DbClusterIdentifier *string `json:"dbClusterIdentifier"`
// `AWS::DocDB::DBInstance.DBInstanceClass`.
DbInstanceClass *string `json:"dbInstanceClass"`
// `AWS::DocDB::DBInstance.DBInstanceIdentifier`.
DbInstanceIdentifier *string `json:"dbInstanceIdentifier"`
// `AWS::DocDB::DBInstance.PreferredMaintenanceWindow`.
PreferredMaintenanceWindow *string `json:"preferredMaintenanceWindow"`
// `AWS::DocDB::DBInstance.Tags`.
Tags *[]*awscdk.CfnTag `json:"tags"`
}
Properties for defining a `AWS::DocDB::DBInstance`.
TODO: EXAMPLE
type CfnDBSubnetGroup ¶
type CfnDBSubnetGroup interface {
awscdk.CfnResource
awscdk.IInspectable
CfnOptions() awscdk.ICfnResourceOptions
CfnProperties() *map[string]interface{}
CfnResourceType() *string
CreationStack() *[]*string
DbSubnetGroupDescription() *string
SetDbSubnetGroupDescription(val *string)
DbSubnetGroupName() *string
SetDbSubnetGroupName(val *string)
LogicalId() *string
Node() constructs.Node
Ref() *string
Stack() awscdk.Stack
SubnetIds() *[]*string
SetSubnetIds(val *[]*string)
Tags() awscdk.TagManager
UpdatedProperites() *map[string]interface{}
AddDeletionOverride(path *string)
AddDependsOn(target awscdk.CfnResource)
AddMetadata(key *string, value interface{})
AddOverride(path *string, value interface{})
AddPropertyDeletionOverride(propertyPath *string)
AddPropertyOverride(propertyPath *string, value interface{})
ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
GetAtt(attributeName *string) awscdk.Reference
GetMetadata(key *string) interface{}
Inspect(inspector awscdk.TreeInspector)
OverrideLogicalId(newLogicalId *string)
RenderProperties(props *map[string]interface{}) *map[string]interface{}
ShouldSynthesize() *bool
ToString() *string
ValidateProperties(_properties interface{})
}
A CloudFormation `AWS::DocDB::DBSubnetGroup`.
TODO: EXAMPLE
func NewCfnDBSubnetGroup ¶
func NewCfnDBSubnetGroup(scope constructs.Construct, id *string, props *CfnDBSubnetGroupProps) CfnDBSubnetGroup
Create a new `AWS::DocDB::DBSubnetGroup`.
type CfnDBSubnetGroupProps ¶
type CfnDBSubnetGroupProps struct {
// `AWS::DocDB::DBSubnetGroup.DBSubnetGroupDescription`.
DbSubnetGroupDescription *string `json:"dbSubnetGroupDescription"`
// `AWS::DocDB::DBSubnetGroup.DBSubnetGroupName`.
DbSubnetGroupName *string `json:"dbSubnetGroupName"`
// `AWS::DocDB::DBSubnetGroup.SubnetIds`.
SubnetIds *[]*string `json:"subnetIds"`
// `AWS::DocDB::DBSubnetGroup.Tags`.
Tags *[]*awscdk.CfnTag `json:"tags"`
}
Properties for defining a `AWS::DocDB::DBSubnetGroup`.
TODO: EXAMPLE
type ClusterParameterGroup ¶
type ClusterParameterGroup interface {
awscdk.Resource
IClusterParameterGroup
Env() *awscdk.ResourceEnvironment
Node() constructs.Node
ParameterGroupName() *string
PhysicalName() *string
Stack() awscdk.Stack
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
GeneratePhysicalName() *string
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
GetResourceNameAttribute(nameAttr *string) *string
ToString() *string
}
A cluster parameter group.
TODO: EXAMPLE
func NewClusterParameterGroup ¶
func NewClusterParameterGroup(scope constructs.Construct, id *string, props *ClusterParameterGroupProps) ClusterParameterGroup
type ClusterParameterGroupProps ¶
type ClusterParameterGroupProps struct {
// The name of the cluster parameter group.
DbClusterParameterGroupName *string `json:"dbClusterParameterGroupName"`
// Description for this parameter group.
Description *string `json:"description"`
// Database family of this parameter group.
Family *string `json:"family"`
// The parameters in this parameter group.
Parameters *map[string]*string `json:"parameters"`
}
Properties for a cluster parameter group.
TODO: EXAMPLE
type DatabaseCluster ¶
type DatabaseCluster interface {
awscdk.Resource
IDatabaseCluster
ClusterEndpoint() Endpoint
ClusterIdentifier() *string
ClusterReadEndpoint() Endpoint
ClusterResourceIdentifier() *string
Connections() awsec2.Connections
Env() *awscdk.ResourceEnvironment
InstanceEndpoints() *[]Endpoint
InstanceIdentifiers() *[]*string
Node() constructs.Node
PhysicalName() *string
Secret() awssecretsmanager.ISecret
SecurityGroupId() *string
Stack() awscdk.Stack
AddRotationMultiUser(id *string, options *RotationMultiUserOptions) awssecretsmanager.SecretRotation
AddRotationSingleUser(automaticallyAfter awscdk.Duration) awssecretsmanager.SecretRotation
AddSecurityGroups(securityGroups ...awsec2.ISecurityGroup)
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
AsSecretAttachmentTarget() *awssecretsmanager.SecretAttachmentTargetProps
GeneratePhysicalName() *string
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
GetResourceNameAttribute(nameAttr *string) *string
ToString() *string
}
Create a clustered database with a given number of instances.
TODO: EXAMPLE
func NewDatabaseCluster ¶
func NewDatabaseCluster(scope constructs.Construct, id *string, props *DatabaseClusterProps) DatabaseCluster
type DatabaseClusterAttributes ¶
type DatabaseClusterAttributes struct {
// Cluster endpoint address.
ClusterEndpointAddress *string `json:"clusterEndpointAddress"`
// Identifier for the cluster.
ClusterIdentifier *string `json:"clusterIdentifier"`
// Endpoint addresses of individual instances.
InstanceEndpointAddresses *[]*string `json:"instanceEndpointAddresses"`
// Identifier for the instances.
InstanceIdentifiers *[]*string `json:"instanceIdentifiers"`
// The database port.
Port *float64 `json:"port"`
// Reader endpoint address.
ReaderEndpointAddress *string `json:"readerEndpointAddress"`
// The security group of the database cluster.
SecurityGroup awsec2.ISecurityGroup `json:"securityGroup"`
}
Properties that describe an existing cluster instance.
TODO: EXAMPLE
type DatabaseClusterProps ¶
type DatabaseClusterProps struct {
// Backup settings.
// See: https://docs.aws.amazon.com/documentdb/latest/developerguide/backup-restore.db-cluster-snapshots.html#backup-restore.backup-window
//
Backup *BackupProps `json:"backup"`
// An optional identifier for the cluster.
DbClusterName *string `json:"dbClusterName"`
// Specifies whether this cluster can be deleted.
//
// If deletionProtection is
// enabled, the cluster cannot be deleted unless it is modified and
// deletionProtection is disabled. deletionProtection protects clusters from
// being accidentally deleted.
DeletionProtection *bool `json:"deletionProtection"`
// What version of the database to start.
EngineVersion *string `json:"engineVersion"`
// Base identifier for instances.
//
// Every replica is named by appending the replica number to this string, 1-based.
InstanceIdentifierBase *string `json:"instanceIdentifierBase"`
// Number of DocDB compute instances.
Instances *float64 `json:"instances"`
// What type of instance to start for the replicas.
InstanceType awsec2.InstanceType `json:"instanceType"`
// The KMS key for storage encryption.
KmsKey awskms.IKey `json:"kmsKey"`
// Username and password for the administrative user.
MasterUser *Login `json:"masterUser"`
// The DB parameter group to associate with the instance.
ParameterGroup IClusterParameterGroup `json:"parameterGroup"`
// The port the DocumentDB cluster will listen on.
Port *float64 `json:"port"`
// A weekly time range in which maintenance should preferably execute.
//
// Must be at least 30 minutes long.
//
// Example: 'tue:04:17-tue:04:47'
// See: https://docs.aws.amazon.com/documentdb/latest/developerguide/db-instance-maintain.html#maintenance-window
//
PreferredMaintenanceWindow *string `json:"preferredMaintenanceWindow"`
// The removal policy to apply when the cluster and its instances are removed or replaced during a stack update, or when the stack is deleted.
//
// This
// removal policy also applies to the implicit security group created for the
// cluster if one is not supplied as a parameter.
RemovalPolicy awscdk.RemovalPolicy `json:"removalPolicy"`
// Security group.
SecurityGroup awsec2.ISecurityGroup `json:"securityGroup"`
// Whether to enable storage encryption.
StorageEncrypted *bool `json:"storageEncrypted"`
// What subnets to run the DocumentDB instances in.
//
// Must be at least 2 subnets in two different AZs.
Vpc awsec2.IVpc `json:"vpc"`
// Where to place the instances within the VPC.
VpcSubnets *awsec2.SubnetSelection `json:"vpcSubnets"`
}
Properties for a new database cluster.
TODO: EXAMPLE
type DatabaseInstance ¶
type DatabaseInstance interface {
awscdk.Resource
IDatabaseInstance
Cluster() IDatabaseCluster
DbInstanceEndpointAddress() *string
DbInstanceEndpointPort() *string
Env() *awscdk.ResourceEnvironment
InstanceArn() *string
InstanceEndpoint() Endpoint
InstanceIdentifier() *string
Node() constructs.Node
PhysicalName() *string
Stack() awscdk.Stack
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
GeneratePhysicalName() *string
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
GetResourceNameAttribute(nameAttr *string) *string
ToString() *string
}
A database instance.
TODO: EXAMPLE
func NewDatabaseInstance ¶
func NewDatabaseInstance(scope constructs.Construct, id *string, props *DatabaseInstanceProps) DatabaseInstance
type DatabaseInstanceAttributes ¶
type DatabaseInstanceAttributes struct {
// The endpoint address.
InstanceEndpointAddress *string `json:"instanceEndpointAddress"`
// The instance identifier.
InstanceIdentifier *string `json:"instanceIdentifier"`
// The database port.
Port *float64 `json:"port"`
}
Properties that describe an existing instance.
TODO: EXAMPLE
type DatabaseInstanceProps ¶
type DatabaseInstanceProps struct {
// Indicates that minor engine upgrades are applied automatically to the DB instance during the maintenance window.
AutoMinorVersionUpgrade *bool `json:"autoMinorVersionUpgrade"`
// The name of the Availability Zone where the DB instance will be located.
AvailabilityZone *string `json:"availabilityZone"`
// The DocumentDB database cluster the instance should launch into.
Cluster IDatabaseCluster `json:"cluster"`
// A name for the DB instance.
//
// If you specify a name, AWS CloudFormation
// converts it to lowercase.
DbInstanceName *string `json:"dbInstanceName"`
// The name of the compute and memory capacity classes.
InstanceType awsec2.InstanceType `json:"instanceType"`
// The weekly time range (in UTC) during which system maintenance can occur.
//
// Format: `ddd:hh24:mi-ddd:hh24:mi`
// Constraint: Minimum 30-minute window
PreferredMaintenanceWindow *string `json:"preferredMaintenanceWindow"`
// The CloudFormation policy to apply when the instance is removed from the stack or replaced during an update.
RemovalPolicy awscdk.RemovalPolicy `json:"removalPolicy"`
}
Construction properties for a DatabaseInstanceNew.
TODO: EXAMPLE
type DatabaseSecret ¶
type DatabaseSecret interface {
awssecretsmanager.Secret
ArnForPolicies() *string
AutoCreatePolicy() *bool
EncryptionKey() awskms.IKey
Env() *awscdk.ResourceEnvironment
Node() constructs.Node
PhysicalName() *string
SecretArn() *string
SecretFullArn() *string
SecretName() *string
SecretValue() awscdk.SecretValue
Stack() awscdk.Stack
AddReplicaRegion(region *string, encryptionKey awskms.IKey)
AddRotationSchedule(id *string, options *awssecretsmanager.RotationScheduleOptions) awssecretsmanager.RotationSchedule
AddToResourcePolicy(statement awsiam.PolicyStatement) *awsiam.AddToResourcePolicyResult
ApplyRemovalPolicy(policy awscdk.RemovalPolicy)
Attach(target awssecretsmanager.ISecretAttachmentTarget) awssecretsmanager.ISecret
DenyAccountRootDelete()
GeneratePhysicalName() *string
GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string
GetResourceNameAttribute(nameAttr *string) *string
GrantRead(grantee awsiam.IGrantable, versionStages *[]*string) awsiam.Grant
GrantWrite(grantee awsiam.IGrantable) awsiam.Grant
SecretValueFromJson(jsonField *string) awscdk.SecretValue
ToString() *string
}
A database secret.
TODO: EXAMPLE
func NewDatabaseSecret ¶
func NewDatabaseSecret(scope constructs.Construct, id *string, props *DatabaseSecretProps) DatabaseSecret
type DatabaseSecretProps ¶
type DatabaseSecretProps struct {
// The KMS key to use to encrypt the secret.
EncryptionKey awskms.IKey `json:"encryptionKey"`
// Characters to not include in the generated password.
ExcludeCharacters *string `json:"excludeCharacters"`
// The master secret which will be used to rotate this secret.
MasterSecret awssecretsmanager.ISecret `json:"masterSecret"`
// The physical name of the secret.
SecretName *string `json:"secretName"`
// The username.
Username *string `json:"username"`
}
Construction properties for a DatabaseSecret.
TODO: EXAMPLE
type Endpoint ¶
type Endpoint interface {
Hostname() *string
Port() *float64
SocketAddress() *string
PortAsString() *string
}
Connection endpoint of a database cluster or instance.
Consists of a combination of hostname and port.
TODO: EXAMPLE
func NewEndpoint ¶
Constructs an Endpoint instance.
type IClusterParameterGroup ¶
type IClusterParameterGroup interface {
awscdk.IResource
// The name of this parameter group.
ParameterGroupName() *string
}
A parameter group.
func ClusterParameterGroup_FromParameterGroupName ¶
func ClusterParameterGroup_FromParameterGroupName(scope constructs.Construct, id *string, parameterGroupName *string) IClusterParameterGroup
Imports a parameter group.
type IDatabaseCluster ¶
type IDatabaseCluster interface {
awsec2.IConnectable
awscdk.IResource
awssecretsmanager.ISecretAttachmentTarget
// The endpoint to use for read/write operations.
ClusterEndpoint() Endpoint
// Identifier of the cluster.
ClusterIdentifier() *string
// Endpoint to use for load-balanced read-only operations.
ClusterReadEndpoint() Endpoint
// Endpoints which address each individual replica.
InstanceEndpoints() *[]Endpoint
// Identifiers of the replicas.
InstanceIdentifiers() *[]*string
// The security group for this database cluster.
SecurityGroupId() *string
}
Create a clustered database with a given number of instances.
func DatabaseCluster_FromDatabaseClusterAttributes ¶
func DatabaseCluster_FromDatabaseClusterAttributes(scope constructs.Construct, id *string, attrs *DatabaseClusterAttributes) IDatabaseCluster
Import an existing DatabaseCluster from properties.
type IDatabaseInstance ¶
type IDatabaseInstance interface {
awscdk.IResource
// The instance endpoint address.
DbInstanceEndpointAddress() *string
// The instance endpoint port.
DbInstanceEndpointPort() *string
// The instance arn.
InstanceArn() *string
// The instance endpoint.
InstanceEndpoint() Endpoint
// The instance identifier.
InstanceIdentifier() *string
}
A database instance.
func DatabaseInstance_FromDatabaseInstanceAttributes ¶
func DatabaseInstance_FromDatabaseInstanceAttributes(scope constructs.Construct, id *string, attrs *DatabaseInstanceAttributes) IDatabaseInstance
Import an existing database instance.
type Login ¶
type Login struct {
// Specifies characters to not include in generated passwords.
ExcludeCharacters *string `json:"excludeCharacters"`
// KMS encryption key to encrypt the generated secret.
KmsKey awskms.IKey `json:"kmsKey"`
// Password.
//
// Do not put passwords in your CDK code directly.
Password awscdk.SecretValue `json:"password"`
// The physical name of the secret, that will be generated.
SecretName *string `json:"secretName"`
// Username.
Username *string `json:"username"`
}
Login credentials for a database cluster.
TODO: EXAMPLE
type RotationMultiUserOptions ¶
type RotationMultiUserOptions struct {
// Specifies the number of days after the previous rotation before Secrets Manager triggers the next automatic rotation.
AutomaticallyAfter awscdk.Duration `json:"automaticallyAfter"`
// The secret to rotate.
//
// It must be a JSON string with the following format:
// “`
// {
// "engine": <required: must be set to 'mongo'>,
// "host": <required: instance host name>,
// "username": <required: username>,
// "password": <required: password>,
// "dbname": <optional: database name>,
// "port": <optional: if not specified, default port 27017 will be used>,
// "masterarn": <required: the arn of the master secret which will be used to create users/change passwords>
// "ssl": <optional: if not specified, defaults to false. This must be true if being used for DocumentDB rotations
// where the cluster has TLS enabled>
// }
// “`
Secret awssecretsmanager.ISecret `json:"secret"`
}
Options to add the multi user rotation.
TODO: EXAMPLE