Class: AWSCDK::RDS::DatabaseClusterFromSnapshotProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RDS::DatabaseClusterFromSnapshotProps
- Defined in:
- rds/database_cluster_from_snapshot_props.rb
Overview
Properties for DatabaseClusterFromSnapshot.
Instance Attribute Summary collapse
-
#auto_minor_version_upgrade ⇒ Boolean?
readonly
Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window.
-
#backtrack_window ⇒ AWSCDK::Duration?
readonly
The number of seconds to set a cluster's target backtrack window to.
-
#backup ⇒ AWSCDK::RDS::BackupProps?
readonly
Backup settings.
-
#cloudwatch_logs_exports ⇒ Array<String>?
readonly
The list of log types that need to be enabled for exporting to CloudWatch Logs.
-
#cloudwatch_logs_retention ⇒ AWSCDK::Logs::RetentionDays?
readonly
The number of days log events are kept in CloudWatch Logs.
-
#cloudwatch_logs_retention_role ⇒ AWSCDK::IAM::IRole?
readonly
The IAM role for the Lambda function associated with the custom resource that sets the retention policy.
-
#cluster_identifier ⇒ String?
readonly
An optional identifier for the cluster.
-
#cluster_scailability_type ⇒ AWSCDK::RDS::ClusterScailabilityType?
readonly
deprecated
Deprecated.
Use clusterScalabilityType instead. This will be removed in the next major version.
-
#cluster_scalability_type ⇒ AWSCDK::RDS::ClusterScalabilityType?
readonly
Specifies the scalability mode of the Aurora DB cluster.
-
#copy_tags_to_snapshot ⇒ Boolean?
readonly
Whether to copy tags to the snapshot when a snapshot is created.
-
#credentials ⇒ AWSCDK::RDS::Credentials?
readonly
deprecated
Deprecated.
use
snapshotCredentialswhich allows to generate a new password -
#database_insights_mode ⇒ AWSCDK::RDS::DatabaseInsightsMode?
readonly
The database insights mode.
-
#default_database_name ⇒ String?
readonly
Name of a database which is automatically created inside the cluster.
-
#delete_automated_backups ⇒ Boolean?
readonly
Specifies whether to remove automated backups immediately after the DB cluster is deleted.
-
#deletion_protection ⇒ Boolean?
readonly
Indicates whether the DB cluster should have deletion protection enabled.
-
#domain ⇒ String?
readonly
Directory ID for associating the DB cluster with a specific Active Directory.
-
#domain_role ⇒ AWSCDK::IAM::IRole?
readonly
The IAM role to be used when making API calls to the Directory Service.
-
#enable_cluster_level_enhanced_monitoring ⇒ Boolean?
readonly
Whether to enable enhanced monitoring at the cluster level.
-
#enable_data_api ⇒ Boolean?
readonly
Whether to enable the Data API for the cluster.
-
#enable_local_write_forwarding ⇒ Boolean?
readonly
Whether read replicas can forward write operations to the writer DB instance in the DB cluster.
-
#enable_performance_insights ⇒ Boolean?
readonly
Whether to enable Performance Insights for the DB cluster.
-
#engine ⇒ AWSCDK::RDS::IClusterEngine
readonly
What kind of database to start.
-
#engine_lifecycle_support ⇒ AWSCDK::RDS::EngineLifecycleSupport?
readonly
The life cycle type for this DB cluster.
-
#iam_authentication ⇒ Boolean?
readonly
Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.
-
#instance_identifier_base ⇒ String?
readonly
Base identifier for instances.
-
#instance_props ⇒ AWSCDK::RDS::InstanceProps?
readonly
deprecated
Deprecated.
- use writer and readers instead
-
#instance_update_behaviour ⇒ AWSCDK::RDS::InstanceUpdateBehaviour?
readonly
The ordering of updates for instances.
-
#instances ⇒ Numeric?
readonly
deprecated
Deprecated.
- use writer and readers instead
-
#manage_master_user_password ⇒ Boolean?
readonly
Whether to use RDS native integration with AWS Secrets Manager for master user password management.
-
#monitoring_interval ⇒ AWSCDK::Duration?
readonly
The interval between points when Amazon RDS collects enhanced monitoring metrics.
-
#monitoring_role ⇒ AWSCDK::IAM::IRole?
readonly
Role that will be used to manage DB monitoring.
-
#network_type ⇒ AWSCDK::RDS::NetworkType?
readonly
The network type of the DB instance.
-
#parameter_group ⇒ AWSCDK::RDS::IParameterGroup?
readonly
Additional parameters to pass to the database engine.
-
#parameters ⇒ Hash{String => String}?
readonly
The parameters in the DBClusterParameterGroup to create automatically.
-
#performance_insight_encryption_key ⇒ AWSCDK::KMS::IKey?
readonly
The AWS KMS key for encryption of Performance Insights data.
-
#performance_insight_retention ⇒ AWSCDK::RDS::PerformanceInsightRetention?
readonly
The amount of time, in days, to retain Performance Insights data.
-
#port ⇒ Numeric?
readonly
What port to listen on.
-
#preferred_maintenance_window ⇒ String?
readonly
A preferred maintenance window day/time range.
-
#readers ⇒ Array<AWSCDK::RDS::IClusterInstance>?
readonly
A list of instances to create as cluster reader instances.
-
#removal_policy ⇒ AWSCDK::RemovalPolicy?
readonly
The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.
-
#s3_export_buckets ⇒ Array<AWSCDK::S3::IBucket>?
readonly
S3 buckets that you want to load data into.
-
#s3_export_role ⇒ AWSCDK::IAM::IRole?
readonly
Role that will be associated with this DB cluster to enable S3 export.
-
#s3_import_buckets ⇒ Array<AWSCDK::S3::IBucket>?
readonly
S3 buckets that you want to load data from.
-
#s3_import_role ⇒ AWSCDK::IAM::IRole?
readonly
Role that will be associated with this DB cluster to enable S3 import.
-
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>?
readonly
Security group.
-
#serverless_v2_auto_pause_duration ⇒ AWSCDK::Duration?
readonly
Specifies the duration an Aurora Serverless v2 DB instance must be idle before Aurora attempts to automatically pause it.
-
#serverless_v2_max_capacity ⇒ Numeric?
readonly
The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
-
#serverless_v2_min_capacity ⇒ Numeric?
readonly
The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
-
#snapshot_credentials ⇒ AWSCDK::RDS::SnapshotCredentials?
readonly
Master user credentials.
-
#snapshot_identifier ⇒ String
readonly
The identifier for the DB instance snapshot or DB cluster snapshot to restore from.
-
#storage_encrypted ⇒ Boolean?
readonly
Whether to enable storage encryption.
-
#storage_encryption_key ⇒ AWSCDK::Interfaces::AWSKMS::IKeyRef?
readonly
The KMS key for storage encryption.
-
#storage_type ⇒ AWSCDK::RDS::DBClusterStorageType?
readonly
The storage type to be associated with the DB cluster.
-
#subnet_group ⇒ AWSCDK::Interfaces::AWSRDS::IDBSubnetGroupRef?
readonly
Existing subnet group for the cluster.
-
#vpc ⇒ AWSCDK::EC2::IVPC?
readonly
What subnets to run the RDS instances in.
-
#vpc_subnets ⇒ AWSCDK::EC2::SubnetSelection?
readonly
Where to place the instances within the VPC.
-
#writer ⇒ AWSCDK::RDS::IClusterInstance?
readonly
The instance to use for the cluster writer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(engine:, snapshot_identifier:, auto_minor_version_upgrade: nil, backtrack_window: nil, backup: nil, cloudwatch_logs_exports: nil, cloudwatch_logs_retention: nil, cloudwatch_logs_retention_role: nil, cluster_identifier: nil, cluster_scailability_type: nil, cluster_scalability_type: nil, copy_tags_to_snapshot: nil, credentials: nil, database_insights_mode: nil, default_database_name: nil, delete_automated_backups: nil, deletion_protection: nil, domain: nil, domain_role: nil, enable_cluster_level_enhanced_monitoring: nil, enable_data_api: nil, enable_local_write_forwarding: nil, enable_performance_insights: nil, engine_lifecycle_support: nil, iam_authentication: nil, instance_identifier_base: nil, instance_props: nil, instances: nil, instance_update_behaviour: nil, manage_master_user_password: nil, monitoring_interval: nil, monitoring_role: nil, network_type: nil, parameter_group: nil, parameters: nil, performance_insight_encryption_key: nil, performance_insight_retention: nil, port: nil, preferred_maintenance_window: nil, readers: nil, removal_policy: nil, s3_export_buckets: nil, s3_export_role: nil, s3_import_buckets: nil, s3_import_role: nil, security_groups: nil, serverless_v2_auto_pause_duration: nil, serverless_v2_max_capacity: nil, serverless_v2_min_capacity: nil, snapshot_credentials: nil, storage_encrypted: nil, storage_encryption_key: nil, storage_type: nil, subnet_group: nil, vpc: nil, vpc_subnets: nil, writer: nil) ⇒ DatabaseClusterFromSnapshotProps
constructor
A new instance of DatabaseClusterFromSnapshotProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(engine:, snapshot_identifier:, auto_minor_version_upgrade: nil, backtrack_window: nil, backup: nil, cloudwatch_logs_exports: nil, cloudwatch_logs_retention: nil, cloudwatch_logs_retention_role: nil, cluster_identifier: nil, cluster_scailability_type: nil, cluster_scalability_type: nil, copy_tags_to_snapshot: nil, credentials: nil, database_insights_mode: nil, default_database_name: nil, delete_automated_backups: nil, deletion_protection: nil, domain: nil, domain_role: nil, enable_cluster_level_enhanced_monitoring: nil, enable_data_api: nil, enable_local_write_forwarding: nil, enable_performance_insights: nil, engine_lifecycle_support: nil, iam_authentication: nil, instance_identifier_base: nil, instance_props: nil, instances: nil, instance_update_behaviour: nil, manage_master_user_password: nil, monitoring_interval: nil, monitoring_role: nil, network_type: nil, parameter_group: nil, parameters: nil, performance_insight_encryption_key: nil, performance_insight_retention: nil, port: nil, preferred_maintenance_window: nil, readers: nil, removal_policy: nil, s3_export_buckets: nil, s3_export_role: nil, s3_import_buckets: nil, s3_import_role: nil, security_groups: nil, serverless_v2_auto_pause_duration: nil, serverless_v2_max_capacity: nil, serverless_v2_min_capacity: nil, snapshot_credentials: nil, storage_encrypted: nil, storage_encryption_key: nil, storage_type: nil, subnet_group: nil, vpc: nil, vpc_subnets: nil, writer: nil) ⇒ DatabaseClusterFromSnapshotProps
Returns a new instance of DatabaseClusterFromSnapshotProps.
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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 64 def initialize(engine:, snapshot_identifier:, auto_minor_version_upgrade: nil, backtrack_window: nil, backup: nil, cloudwatch_logs_exports: nil, cloudwatch_logs_retention: nil, cloudwatch_logs_retention_role: nil, cluster_identifier: nil, cluster_scailability_type: nil, cluster_scalability_type: nil, copy_tags_to_snapshot: nil, credentials: nil, database_insights_mode: nil, default_database_name: nil, delete_automated_backups: nil, deletion_protection: nil, domain: nil, domain_role: nil, enable_cluster_level_enhanced_monitoring: nil, enable_data_api: nil, enable_local_write_forwarding: nil, enable_performance_insights: nil, engine_lifecycle_support: nil, iam_authentication: nil, instance_identifier_base: nil, instance_props: nil, instances: nil, instance_update_behaviour: nil, manage_master_user_password: nil, monitoring_interval: nil, monitoring_role: nil, network_type: nil, parameter_group: nil, parameters: nil, performance_insight_encryption_key: nil, performance_insight_retention: nil, port: nil, preferred_maintenance_window: nil, readers: nil, removal_policy: nil, s3_export_buckets: nil, s3_export_role: nil, s3_import_buckets: nil, s3_import_role: nil, security_groups: nil, serverless_v2_auto_pause_duration: nil, serverless_v2_max_capacity: nil, serverless_v2_min_capacity: nil, snapshot_credentials: nil, storage_encrypted: nil, storage_encryption_key: nil, storage_type: nil, subnet_group: nil, vpc: nil, vpc_subnets: nil, writer: nil) @engine = engine Jsii::Type.check_type(@engine, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLklDbHVzdGVyRW5naW5lIn0=")), "engine") @snapshot_identifier = snapshot_identifier Jsii::Type.check_type(@snapshot_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "snapshotIdentifier") @auto_minor_version_upgrade = auto_minor_version_upgrade Jsii::Type.check_type(@auto_minor_version_upgrade, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "autoMinorVersionUpgrade") unless @auto_minor_version_upgrade.nil? @backtrack_window = backtrack_window Jsii::Type.check_type(@backtrack_window, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "backtrackWindow") unless @backtrack_window.nil? @backup = backup.is_a?(Hash) ? ::AWSCDK::RDS::BackupProps.new(**backup.transform_keys(&:to_sym)) : backup Jsii::Type.check_type(@backup, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLkJhY2t1cFByb3BzIn0=")), "backup") unless @backup.nil? @cloudwatch_logs_exports = cloudwatch_logs_exports Jsii::Type.check_type(@cloudwatch_logs_exports, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "cloudwatchLogsExports") unless @cloudwatch_logs_exports.nil? @cloudwatch_logs_retention = cloudwatch_logs_retention Jsii::Type.check_type(@cloudwatch_logs_retention, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5SZXRlbnRpb25EYXlzIn0=")), "cloudwatchLogsRetention") unless @cloudwatch_logs_retention.nil? @cloudwatch_logs_retention_role = cloudwatch_logs_retention_role Jsii::Type.check_type(@cloudwatch_logs_retention_role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "cloudwatchLogsRetentionRole") unless @cloudwatch_logs_retention_role.nil? @cluster_identifier = cluster_identifier Jsii::Type.check_type(@cluster_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clusterIdentifier") unless @cluster_identifier.nil? @cluster_scailability_type = cluster_scailability_type Jsii::Type.check_type(@cluster_scailability_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLkNsdXN0ZXJTY2FpbGFiaWxpdHlUeXBlIn0=")), "clusterScailabilityType") unless @cluster_scailability_type.nil? @cluster_scalability_type = cluster_scalability_type Jsii::Type.check_type(@cluster_scalability_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLkNsdXN0ZXJTY2FsYWJpbGl0eVR5cGUifQ==")), "clusterScalabilityType") unless @cluster_scalability_type.nil? @copy_tags_to_snapshot = Jsii::Type.check_type(@copy_tags_to_snapshot, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "copyTagsToSnapshot") unless @copy_tags_to_snapshot.nil? @credentials = credentials Jsii::Type.check_type(@credentials, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLkNyZWRlbnRpYWxzIn0=")), "credentials") unless @credentials.nil? @database_insights_mode = database_insights_mode Jsii::Type.check_type(@database_insights_mode, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLkRhdGFiYXNlSW5zaWdodHNNb2RlIn0=")), "databaseInsightsMode") unless @database_insights_mode.nil? @default_database_name = default_database_name Jsii::Type.check_type(@default_database_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultDatabaseName") unless @default_database_name.nil? @delete_automated_backups = delete_automated_backups Jsii::Type.check_type(@delete_automated_backups, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "deleteAutomatedBackups") unless @delete_automated_backups.nil? @deletion_protection = deletion_protection Jsii::Type.check_type(@deletion_protection, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "deletionProtection") unless @deletion_protection.nil? @domain = domain Jsii::Type.check_type(@domain, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domain") unless @domain.nil? @domain_role = domain_role Jsii::Type.check_type(@domain_role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "domainRole") unless @domain_role.nil? @enable_cluster_level_enhanced_monitoring = enable_cluster_level_enhanced_monitoring Jsii::Type.check_type(@enable_cluster_level_enhanced_monitoring, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enableClusterLevelEnhancedMonitoring") unless @enable_cluster_level_enhanced_monitoring.nil? @enable_data_api = enable_data_api Jsii::Type.check_type(@enable_data_api, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enableDataApi") unless @enable_data_api.nil? @enable_local_write_forwarding = enable_local_write_forwarding Jsii::Type.check_type(@enable_local_write_forwarding, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enableLocalWriteForwarding") unless @enable_local_write_forwarding.nil? @enable_performance_insights = enable_performance_insights Jsii::Type.check_type(@enable_performance_insights, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enablePerformanceInsights") unless @enable_performance_insights.nil? @engine_lifecycle_support = engine_lifecycle_support Jsii::Type.check_type(@engine_lifecycle_support, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLkVuZ2luZUxpZmVjeWNsZVN1cHBvcnQifQ==")), "engineLifecycleSupport") unless @engine_lifecycle_support.nil? @iam_authentication = iam_authentication Jsii::Type.check_type(@iam_authentication, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "iamAuthentication") unless @iam_authentication.nil? @instance_identifier_base = instance_identifier_base Jsii::Type.check_type(@instance_identifier_base, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceIdentifierBase") unless @instance_identifier_base.nil? @instance_props = instance_props.is_a?(Hash) ? ::AWSCDK::RDS::InstanceProps.new(**instance_props.transform_keys(&:to_sym)) : instance_props Jsii::Type.check_type(@instance_props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLkluc3RhbmNlUHJvcHMifQ==")), "instanceProps") unless @instance_props.nil? @instances = instances Jsii::Type.check_type(@instances, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "instances") unless @instances.nil? @instance_update_behaviour = instance_update_behaviour Jsii::Type.check_type(@instance_update_behaviour, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLkluc3RhbmNlVXBkYXRlQmVoYXZpb3VyIn0=")), "instanceUpdateBehaviour") unless @instance_update_behaviour.nil? @manage_master_user_password = manage_master_user_password Jsii::Type.check_type(@manage_master_user_password, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "manageMasterUserPassword") unless @manage_master_user_password.nil? @monitoring_interval = monitoring_interval Jsii::Type.check_type(@monitoring_interval, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "monitoringInterval") unless @monitoring_interval.nil? @monitoring_role = monitoring_role Jsii::Type.check_type(@monitoring_role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "monitoringRole") unless @monitoring_role.nil? @network_type = network_type Jsii::Type.check_type(@network_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLk5ldHdvcmtUeXBlIn0=")), "networkType") unless @network_type.nil? @parameter_group = parameter_group Jsii::Type.check_type(@parameter_group, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLklQYXJhbWV0ZXJHcm91cCJ9")), "parameterGroup") unless @parameter_group.nil? @parameters = parameters Jsii::Type.check_type(@parameters, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "parameters") unless @parameters.nil? @performance_insight_encryption_key = performance_insight_encryption_key Jsii::Type.check_type(@performance_insight_encryption_key, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa21zLklLZXkifQ==")), "performanceInsightEncryptionKey") unless @performance_insight_encryption_key.nil? @performance_insight_retention = performance_insight_retention Jsii::Type.check_type(@performance_insight_retention, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLlBlcmZvcm1hbmNlSW5zaWdodFJldGVudGlvbiJ9")), "performanceInsightRetention") unless @performance_insight_retention.nil? @port = port Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port") unless @port.nil? @preferred_maintenance_window = preferred_maintenance_window Jsii::Type.check_type(@preferred_maintenance_window, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "preferredMaintenanceWindow") unless @preferred_maintenance_window.nil? @readers = readers Jsii::Type.check_type(@readers, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19yZHMuSUNsdXN0ZXJJbnN0YW5jZSJ9LCJraW5kIjoiYXJyYXkifX0=")), "readers") unless @readers.nil? @removal_policy = removal_policy Jsii::Type.check_type(@removal_policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "removalPolicy") unless @removal_policy.nil? @s3_export_buckets = s3_export_buckets Jsii::Type.check_type(@s3_export_buckets, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5JQnVja2V0In0sImtpbmQiOiJhcnJheSJ9fQ==")), "s3ExportBuckets") unless @s3_export_buckets.nil? @s3_export_role = s3_export_role Jsii::Type.check_type(@s3_export_role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "s3ExportRole") unless @s3_export_role.nil? @s3_import_buckets = s3_import_buckets Jsii::Type.check_type(@s3_import_buckets, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zMy5JQnVja2V0In0sImtpbmQiOiJhcnJheSJ9fQ==")), "s3ImportBuckets") unless @s3_import_buckets.nil? @s3_import_role = s3_import_role Jsii::Type.check_type(@s3_import_role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "s3ImportRole") unless @s3_import_role.nil? @security_groups = security_groups Jsii::Type.check_type(@security_groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuSVNlY3VyaXR5R3JvdXAifSwia2luZCI6ImFycmF5In19")), "securityGroups") unless @security_groups.nil? @serverless_v2_auto_pause_duration = serverless_v2_auto_pause_duration Jsii::Type.check_type(@serverless_v2_auto_pause_duration, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "serverlessV2AutoPauseDuration") unless @serverless_v2_auto_pause_duration.nil? @serverless_v2_max_capacity = serverless_v2_max_capacity Jsii::Type.check_type(@serverless_v2_max_capacity, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "serverlessV2MaxCapacity") unless @serverless_v2_max_capacity.nil? @serverless_v2_min_capacity = serverless_v2_min_capacity Jsii::Type.check_type(@serverless_v2_min_capacity, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "serverlessV2MinCapacity") unless @serverless_v2_min_capacity.nil? @snapshot_credentials = snapshot_credentials Jsii::Type.check_type(@snapshot_credentials, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLlNuYXBzaG90Q3JlZGVudGlhbHMifQ==")), "snapshotCredentials") unless @snapshot_credentials.nil? @storage_encrypted = storage_encrypted Jsii::Type.check_type(@storage_encrypted, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "storageEncrypted") unless @storage_encrypted.nil? @storage_encryption_key = storage_encryption_key Jsii::Type.check_type(@storage_encryption_key, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19rbXMuSUtleVJlZiJ9")), "storageEncryptionKey") unless @storage_encryption_key.nil? @storage_type = storage_type Jsii::Type.check_type(@storage_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLkRCQ2x1c3RlclN0b3JhZ2VUeXBlIn0=")), "storageType") unless @storage_type.nil? @subnet_group = subnet_group Jsii::Type.check_type(@subnet_group, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19yZHMuSURCU3VibmV0R3JvdXBSZWYifQ==")), "subnetGroup") unless @subnet_group.nil? @vpc = vpc Jsii::Type.check_type(@vpc, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLklWcGMifQ==")), "vpc") unless @vpc.nil? @vpc_subnets = vpc_subnets.is_a?(Hash) ? ::AWSCDK::EC2::SubnetSelection.new(**vpc_subnets.transform_keys(&:to_sym)) : vpc_subnets Jsii::Type.check_type(@vpc_subnets, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLlN1Ym5ldFNlbGVjdGlvbiJ9")), "vpcSubnets") unless @vpc_subnets.nil? @writer = writer Jsii::Type.check_type(@writer, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLklDbHVzdGVySW5zdGFuY2UifQ==")), "writer") unless @writer.nil? end |
Instance Attribute Details
#auto_minor_version_upgrade ⇒ Boolean? (readonly)
Default: true
Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window.
196 197 198 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 196 def auto_minor_version_upgrade @auto_minor_version_upgrade end |
#backtrack_window ⇒ AWSCDK::Duration? (readonly)
Default: 0 seconds (no backtrack)
The number of seconds to set a cluster's target backtrack window to.
This feature is only supported by the Aurora MySQL database engine and cannot be enabled on existing clusters.
205 206 207 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 205 def backtrack_window @backtrack_window end |
#backup ⇒ AWSCDK::RDS::BackupProps? (readonly)
Default: - Backup retention period for automated backups is 1 day. Backup preferred window is set to a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
Backup settings.
211 212 213 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 211 def backup @backup end |
#cloudwatch_logs_exports ⇒ Array<String>? (readonly)
Default: - no log exports
The list of log types that need to be enabled for exporting to CloudWatch Logs.
216 217 218 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 216 def cloudwatch_logs_exports @cloudwatch_logs_exports end |
#cloudwatch_logs_retention ⇒ AWSCDK::Logs::RetentionDays? (readonly)
Default: - logs never expire
The number of days log events are kept in CloudWatch Logs.
When updating
this property, unsetting it doesn't remove the log retention policy. To
remove the retention policy, set the value to Infinity.
225 226 227 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 225 def cloudwatch_logs_retention @cloudwatch_logs_retention end |
#cloudwatch_logs_retention_role ⇒ AWSCDK::IAM::IRole? (readonly)
Default: - a new role is created.
The IAM role for the Lambda function associated with the custom resource that sets the retention policy.
230 231 232 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 230 def cloudwatch_logs_retention_role @cloudwatch_logs_retention_role end |
#cluster_identifier ⇒ String? (readonly)
Default: - A name is automatically generated.
An optional identifier for the cluster.
235 236 237 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 235 def cluster_identifier @cluster_identifier end |
#cluster_scailability_type ⇒ AWSCDK::RDS::ClusterScailabilityType? (readonly)
Use clusterScalabilityType instead. This will be removed in the next major version.
Default: ClusterScailabilityType.STANDARD
[Misspelled] Specifies the scalability mode of the Aurora DB cluster.
Set LIMITLESS if you want to use a limitless database; otherwise, set it to STANDARD.
243 244 245 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 243 def cluster_scailability_type @cluster_scailability_type end |
#cluster_scalability_type ⇒ AWSCDK::RDS::ClusterScalabilityType? (readonly)
Default: ClusterScalabilityType.STANDARD
Specifies the scalability mode of the Aurora DB cluster.
Set LIMITLESS if you want to use a limitless database; otherwise, set it to STANDARD.
250 251 252 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 250 def cluster_scalability_type @cluster_scalability_type end |
#copy_tags_to_snapshot ⇒ Boolean? (readonly)
Default: - true
Whether to copy tags to the snapshot when a snapshot is created.
255 256 257 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 255 def @copy_tags_to_snapshot end |
#credentials ⇒ AWSCDK::RDS::Credentials? (readonly)
use snapshotCredentials which allows to generate a new password
Default: - A username of 'admin' (or 'postgres' for PostgreSQL) and SecretsManager-generated password that will not be applied to the cluster, use snapshotCredentials for the correct behavior.
Credentials for the administrative user.
Note - using this prop only works with Credentials.fromPassword() with the
username of the snapshot, Credentials.fromUsername() with the username and
password of the snapshot or Credentials.fromSecret() with a secret containing
the username and password of the snapshot.
266 267 268 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 266 def credentials @credentials end |
#database_insights_mode ⇒ AWSCDK::RDS::DatabaseInsightsMode? (readonly)
Default: - DatabaseInsightsMode.STANDARD when performance insights are enabled and Amazon Aurora engine is used, otherwise not set.
The database insights mode.
271 272 273 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 271 def database_insights_mode @database_insights_mode end |
#default_database_name ⇒ String? (readonly)
Default: - Database is not created in cluster.
Name of a database which is automatically created inside the cluster.
276 277 278 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 276 def default_database_name @default_database_name end |
#delete_automated_backups ⇒ Boolean? (readonly)
Default: undefined - AWS RDS default is to remove automated backups immediately after the DB cluster is deleted, unless the AWS Backup policy specifies a point-in-time restore rule.
Specifies whether to remove automated backups immediately after the DB cluster is deleted.
281 282 283 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 281 def delete_automated_backups @delete_automated_backups end |
#deletion_protection ⇒ Boolean? (readonly)
Default: - true if removalPolicy is RETAIN, undefined otherwise, which will not enable deletion protection. To disable deletion protection after it has been enabled, you must explicitly set this value to false.
Indicates whether the DB cluster should have deletion protection enabled.
286 287 288 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 286 def deletion_protection @deletion_protection end |
#domain ⇒ String? (readonly)
Default: - DB cluster is not associated with an Active Directory; Kerberos authentication is not enabled.
Directory ID for associating the DB cluster with a specific Active Directory.
Necessary for enabling Kerberos authentication. If specified, the DB cluster joins the given Active Directory, enabling Kerberos authentication. If not specified, the DB cluster will not be associated with any Active Directory, and Kerberos authentication will not be enabled.
294 295 296 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 294 def domain @domain end |
#domain_role ⇒ AWSCDK::IAM::IRole? (readonly)
Default: - If DatabaseClusterBaseProps.domain is specified, a role with the AmazonRDSDirectoryServiceAccess policy is automatically created.
The IAM role to be used when making API calls to the Directory Service.
The role needs the AWS-managed policy
AmazonRDSDirectoryServiceAccess or equivalent.
302 303 304 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 302 def domain_role @domain_role end |
#enable_cluster_level_enhanced_monitoring ⇒ Boolean? (readonly)
Default: - When the monitoringInterval is set, enhanced monitoring is enabled for each instance.
Whether to enable enhanced monitoring at the cluster level.
If set to true, monitoring_interval and monitoring_role are applied to not the instances, but the cluster.
monitoring_interval is required to be set if enable_cluster_level_enhanced_monitoring is set to true.
310 311 312 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 310 def enable_cluster_level_enhanced_monitoring @enable_cluster_level_enhanced_monitoring end |
#enable_data_api ⇒ Boolean? (readonly)
Default: - false
Whether to enable the Data API for the cluster.
315 316 317 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 315 def enable_data_api @enable_data_api end |
#enable_local_write_forwarding ⇒ Boolean? (readonly)
Default: false
Whether read replicas can forward write operations to the writer DB instance in the DB cluster.
This setting can only be enabled for Aurora MySQL 3.04 or higher, and for Aurora PostgreSQL 16.4 or higher (for version 16), 15.8 or higher (for version 15), and 14.13 or higher (for version 14).
324 325 326 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 324 def enable_local_write_forwarding @enable_local_write_forwarding end |
#enable_performance_insights ⇒ Boolean? (readonly)
Default: - false, unless performanceInsightRetention or performanceInsightEncryptionKey is set, or databaseInsightsMode is set to DatabaseInsightsMode.ADVANCED.
Whether to enable Performance Insights for the DB cluster.
329 330 331 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 329 def enable_performance_insights @enable_performance_insights end |
#engine ⇒ AWSCDK::RDS::IClusterEngine (readonly)
What kind of database to start.
184 185 186 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 184 def engine @engine end |
#engine_lifecycle_support ⇒ AWSCDK::RDS::EngineLifecycleSupport? (readonly)
Default: undefined - AWS RDS default setting is EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT
The life cycle type for this DB cluster.
335 336 337 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 335 def engine_lifecycle_support @engine_lifecycle_support end |
#iam_authentication ⇒ Boolean? (readonly)
Default: false
Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.
340 341 342 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 340 def iam_authentication @iam_authentication end |
#instance_identifier_base ⇒ String? (readonly)
Default: - clusterIdentifier is used with the word "Instance" appended. If clusterIdentifier is not provided, the identifier is automatically generated.
Base identifier for instances.
Every replica is named by appending the replica number to this string, 1-based.
347 348 349 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 347 def instance_identifier_base @instance_identifier_base end |
#instance_props ⇒ AWSCDK::RDS::InstanceProps? (readonly)
- use writer and readers instead
Settings for the individual instances that are launched.
352 353 354 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 352 def instance_props @instance_props end |
#instance_update_behaviour ⇒ AWSCDK::RDS::InstanceUpdateBehaviour? (readonly)
Default: InstanceUpdateBehaviour.BULK
The ordering of updates for instances.
365 366 367 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 365 def instance_update_behaviour @instance_update_behaviour end |
#instances ⇒ Numeric? (readonly)
- use writer and readers instead
Default: 2
How many replicas/instances to create.
Has to be at least 1.
360 361 362 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 360 def instances @instances end |
#manage_master_user_password ⇒ Boolean? (readonly)
Default: false
Whether to use RDS native integration with AWS Secrets Manager for master user password management.
When enabled, RDS generates and manages the master user password in Secrets Manager. This is supported when restoring from snapshots, allowing migration to RDS-managed passwords.
374 375 376 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 374 def manage_master_user_password @manage_master_user_password end |
#monitoring_interval ⇒ AWSCDK::Duration? (readonly)
Default: - no enhanced monitoring
The interval between points when Amazon RDS collects enhanced monitoring metrics.
If you enable enable_cluster_level_enhanced_monitoring, this property is applied to the cluster,
otherwise it is applied to the instances.
382 383 384 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 382 def monitoring_interval @monitoring_interval end |
#monitoring_role ⇒ AWSCDK::IAM::IRole? (readonly)
Default: - A role is automatically created for you
Role that will be used to manage DB monitoring.
If you enable enable_cluster_level_enhanced_monitoring, this property is applied to the cluster,
otherwise it is applied to the instances.
390 391 392 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 390 def monitoring_role @monitoring_role end |
#network_type ⇒ AWSCDK::RDS::NetworkType? (readonly)
Default: - IPV4
The network type of the DB instance.
395 396 397 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 395 def network_type @network_type end |
#parameter_group ⇒ AWSCDK::RDS::IParameterGroup? (readonly)
Default: - No parameter group.
Additional parameters to pass to the database engine.
400 401 402 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 400 def parameter_group @parameter_group end |
#parameters ⇒ Hash{String => String}? (readonly)
Default: - None
The parameters in the DBClusterParameterGroup to create automatically.
You can only specify parameterGroup or parameters but not both. You need to use a versioned engine to auto-generate a DBClusterParameterGroup.
408 409 410 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 408 def parameters @parameters end |
#performance_insight_encryption_key ⇒ AWSCDK::KMS::IKey? (readonly)
Default: - default master key
The AWS KMS key for encryption of Performance Insights data.
413 414 415 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 413 def performance_insight_encryption_key @performance_insight_encryption_key end |
#performance_insight_retention ⇒ AWSCDK::RDS::PerformanceInsightRetention? (readonly)
Default: - 7
The amount of time, in days, to retain Performance Insights data.
If you set database_insights_mode to DatabaseInsightsMode.ADVANCED, you must set this property to PerformanceInsightRetention.MONTHS_15.
420 421 422 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 420 def performance_insight_retention @performance_insight_retention end |
#port ⇒ Numeric? (readonly)
Default: - The default for the engine is used.
What port to listen on.
425 426 427 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 425 def port @port end |
#preferred_maintenance_window ⇒ String? (readonly)
Default: - 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
A preferred maintenance window day/time range. Should be specified as a range ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC).
Example: 'Sun:23:45-Mon:00:15'
433 434 435 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 433 def preferred_maintenance_window @preferred_maintenance_window end |
#readers ⇒ Array<AWSCDK::RDS::IClusterInstance>? (readonly)
Default: - no readers are created. The cluster will have a single writer/reader
A list of instances to create as cluster reader instances.
438 439 440 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 438 def readers @readers end |
#removal_policy ⇒ AWSCDK::RemovalPolicy? (readonly)
Default: - RemovalPolicy.SNAPSHOT (remove the cluster and instances, but retain a snapshot of the data)
The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.
443 444 445 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 443 def removal_policy @removal_policy end |
#s3_export_buckets ⇒ Array<AWSCDK::S3::IBucket>? (readonly)
Default: - None
S3 buckets that you want to load data into. This feature is only supported by the Aurora database engine.
This property must not be used if s3_export_role is used.
For MySQL:
453 454 455 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 453 def s3_export_buckets @s3_export_buckets end |
#s3_export_role ⇒ AWSCDK::IAM::IRole? (readonly)
Default: - New role is created if s3ExportBuckets is set, no role is defined otherwise
Role that will be associated with this DB cluster to enable S3 export.
This feature is only supported by the Aurora database engine.
This property must not be used if s3_export_buckets is used.
To use this property with Aurora PostgreSQL, it must be configured with the S3 export feature enabled when creating the DatabaseClusterEngine
For MySQL:
465 466 467 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 465 def s3_export_role @s3_export_role end |
#s3_import_buckets ⇒ Array<AWSCDK::S3::IBucket>? (readonly)
Default: - None
S3 buckets that you want to load data from. This feature is only supported by the Aurora database engine.
This property must not be used if s3_import_role is used.
For MySQL:
475 476 477 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 475 def s3_import_buckets @s3_import_buckets end |
#s3_import_role ⇒ AWSCDK::IAM::IRole? (readonly)
Default: - New role is created if s3ImportBuckets is set, no role is defined otherwise
Role that will be associated with this DB cluster to enable S3 import.
This feature is only supported by the Aurora database engine.
This property must not be used if s3_import_buckets is used.
To use this property with Aurora PostgreSQL, it must be configured with the S3 import feature enabled when creating the DatabaseClusterEngine
For MySQL:
487 488 489 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 487 def s3_import_role @s3_import_role end |
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>? (readonly)
Default: - a new security group is created.
Security group.
492 493 494 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 492 def security_groups @security_groups end |
#serverless_v2_auto_pause_duration ⇒ AWSCDK::Duration? (readonly)
Default: - The default is 300 seconds (5 minutes).
Specifies the duration an Aurora Serverless v2 DB instance must be idle before Aurora attempts to automatically pause it.
The duration must be between 300 seconds (5 minutes) and 86,400 seconds (24 hours).
500 501 502 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 500 def serverless_v2_auto_pause_duration @serverless_v2_auto_pause_duration end |
#serverless_v2_max_capacity ⇒ Numeric? (readonly)
Default: 2
The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
You can specify ACU values in half-step increments, such as 40, 40.5, 41, and so on. The largest value that you can use is 256.
The maximum capacity must be higher than 0.5 ACUs.
511 512 513 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 511 def serverless_v2_max_capacity @serverless_v2_max_capacity end |
#serverless_v2_min_capacity ⇒ Numeric? (readonly)
Default: 0.5
The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value that you can use is 0.
For Aurora versions that support the Aurora Serverless v2 auto-pause feature, the smallest value that you can use is 0. For versions that don't support Aurora Serverless v2 auto-pause, the smallest value that you can use is 0.5.
523 524 525 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 523 def serverless_v2_min_capacity @serverless_v2_min_capacity end |
#snapshot_credentials ⇒ AWSCDK::RDS::SnapshotCredentials? (readonly)
Default: - The existing username and password from the snapshot will be used.
Master user credentials.
Note - It is not possible to change the master username for a snapshot; however, it is possible to provide (or generate) a new password.
531 532 533 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 531 def snapshot_credentials @snapshot_credentials end |
#snapshot_identifier ⇒ String (readonly)
The identifier for the DB instance snapshot or DB cluster snapshot to restore from.
You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use only the ARN to specify a DB instance snapshot.
191 192 193 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 191 def snapshot_identifier @snapshot_identifier end |
#storage_encrypted ⇒ Boolean? (readonly)
Default: - true if storageEncryptionKey is provided, false otherwise
Whether to enable storage encryption.
536 537 538 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 536 def storage_encrypted @storage_encrypted end |
#storage_encryption_key ⇒ AWSCDK::Interfaces::AWSKMS::IKeyRef? (readonly)
Default: - if storageEncrypted is true then the default master key, no key otherwise
The KMS key for storage encryption.
If specified, storage_encrypted will be set to true.
543 544 545 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 543 def storage_encryption_key @storage_encryption_key end |
#storage_type ⇒ AWSCDK::RDS::DBClusterStorageType? (readonly)
Default: - DBClusterStorageType.AURORA
The storage type to be associated with the DB cluster.
548 549 550 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 548 def storage_type @storage_type end |
#subnet_group ⇒ AWSCDK::Interfaces::AWSRDS::IDBSubnetGroupRef? (readonly)
Default: - a new subnet group will be created.
Existing subnet group for the cluster.
553 554 555 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 553 def subnet_group @subnet_group end |
#vpc ⇒ AWSCDK::EC2::IVPC? (readonly)
What subnets to run the RDS instances in.
Must be at least 2 subnets in two different AZs.
559 560 561 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 559 def vpc @vpc end |
#vpc_subnets ⇒ AWSCDK::EC2::SubnetSelection? (readonly)
Default: - the Vpc default strategy if not specified.
Where to place the instances within the VPC.
564 565 566 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 564 def vpc_subnets @vpc_subnets end |
#writer ⇒ AWSCDK::RDS::IClusterInstance? (readonly)
Default: - required if instanceProps is not provided
The instance to use for the cluster writer.
569 570 571 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 569 def writer @writer end |
Class Method Details
.jsii_properties ⇒ Object
571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 571 def self.jsii_properties { :engine => "engine", :snapshot_identifier => "snapshotIdentifier", :auto_minor_version_upgrade => "autoMinorVersionUpgrade", :backtrack_window => "backtrackWindow", :backup => "backup", :cloudwatch_logs_exports => "cloudwatchLogsExports", :cloudwatch_logs_retention => "cloudwatchLogsRetention", :cloudwatch_logs_retention_role => "cloudwatchLogsRetentionRole", :cluster_identifier => "clusterIdentifier", :cluster_scailability_type => "clusterScailabilityType", :cluster_scalability_type => "clusterScalabilityType", :copy_tags_to_snapshot => "copyTagsToSnapshot", :credentials => "credentials", :database_insights_mode => "databaseInsightsMode", :default_database_name => "defaultDatabaseName", :delete_automated_backups => "deleteAutomatedBackups", :deletion_protection => "deletionProtection", :domain => "domain", :domain_role => "domainRole", :enable_cluster_level_enhanced_monitoring => "enableClusterLevelEnhancedMonitoring", :enable_data_api => "enableDataApi", :enable_local_write_forwarding => "enableLocalWriteForwarding", :enable_performance_insights => "enablePerformanceInsights", :engine_lifecycle_support => "engineLifecycleSupport", :iam_authentication => "iamAuthentication", :instance_identifier_base => "instanceIdentifierBase", :instance_props => "instanceProps", :instances => "instances", :instance_update_behaviour => "instanceUpdateBehaviour", :manage_master_user_password => "manageMasterUserPassword", :monitoring_interval => "monitoringInterval", :monitoring_role => "monitoringRole", :network_type => "networkType", :parameter_group => "parameterGroup", :parameters => "parameters", :performance_insight_encryption_key => "performanceInsightEncryptionKey", :performance_insight_retention => "performanceInsightRetention", :port => "port", :preferred_maintenance_window => "preferredMaintenanceWindow", :readers => "readers", :removal_policy => "removalPolicy", :s3_export_buckets => "s3ExportBuckets", :s3_export_role => "s3ExportRole", :s3_import_buckets => "s3ImportBuckets", :s3_import_role => "s3ImportRole", :security_groups => "securityGroups", :serverless_v2_auto_pause_duration => "serverlessV2AutoPauseDuration", :serverless_v2_max_capacity => "serverlessV2MaxCapacity", :serverless_v2_min_capacity => "serverlessV2MinCapacity", :snapshot_credentials => "snapshotCredentials", :storage_encrypted => "storageEncrypted", :storage_encryption_key => "storageEncryptionKey", :storage_type => "storageType", :subnet_group => "subnetGroup", :vpc => "vpc", :vpc_subnets => "vpcSubnets", :writer => "writer", } end |
Instance Method Details
#to_jsii ⇒ Object
633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 |
# File 'rds/database_cluster_from_snapshot_props.rb', line 633 def to_jsii result = {} result.merge!({ "engine" => @engine, "snapshotIdentifier" => @snapshot_identifier, "autoMinorVersionUpgrade" => @auto_minor_version_upgrade, "backtrackWindow" => @backtrack_window, "backup" => @backup, "cloudwatchLogsExports" => @cloudwatch_logs_exports, "cloudwatchLogsRetention" => @cloudwatch_logs_retention, "cloudwatchLogsRetentionRole" => @cloudwatch_logs_retention_role, "clusterIdentifier" => @cluster_identifier, "clusterScailabilityType" => @cluster_scailability_type, "clusterScalabilityType" => @cluster_scalability_type, "copyTagsToSnapshot" => @copy_tags_to_snapshot, "credentials" => @credentials, "databaseInsightsMode" => @database_insights_mode, "defaultDatabaseName" => @default_database_name, "deleteAutomatedBackups" => @delete_automated_backups, "deletionProtection" => @deletion_protection, "domain" => @domain, "domainRole" => @domain_role, "enableClusterLevelEnhancedMonitoring" => @enable_cluster_level_enhanced_monitoring, "enableDataApi" => @enable_data_api, "enableLocalWriteForwarding" => @enable_local_write_forwarding, "enablePerformanceInsights" => @enable_performance_insights, "engineLifecycleSupport" => @engine_lifecycle_support, "iamAuthentication" => @iam_authentication, "instanceIdentifierBase" => @instance_identifier_base, "instanceProps" => @instance_props, "instances" => @instances, "instanceUpdateBehaviour" => @instance_update_behaviour, "manageMasterUserPassword" => @manage_master_user_password, "monitoringInterval" => @monitoring_interval, "monitoringRole" => @monitoring_role, "networkType" => @network_type, "parameterGroup" => @parameter_group, "parameters" => @parameters, "performanceInsightEncryptionKey" => @performance_insight_encryption_key, "performanceInsightRetention" => @performance_insight_retention, "port" => @port, "preferredMaintenanceWindow" => @preferred_maintenance_window, "readers" => @readers, "removalPolicy" => @removal_policy, "s3ExportBuckets" => @s3_export_buckets, "s3ExportRole" => @s3_export_role, "s3ImportBuckets" => @s3_import_buckets, "s3ImportRole" => @s3_import_role, "securityGroups" => @security_groups, "serverlessV2AutoPauseDuration" => @serverless_v2_auto_pause_duration, "serverlessV2MaxCapacity" => @serverless_v2_max_capacity, "serverlessV2MinCapacity" => @serverless_v2_min_capacity, "snapshotCredentials" => @snapshot_credentials, "storageEncrypted" => @storage_encrypted, "storageEncryptionKey" => @storage_encryption_key, "storageType" => @storage_type, "subnetGroup" => @subnet_group, "vpc" => @vpc, "vpcSubnets" => @vpc_subnets, "writer" => @writer, }) result.compact end |