Skip to content

Commit 98cde70

Browse files
Add support for setting Serverless Scaling Configuration on clusters.
1 parent 41204fe commit 98cde70

23 files changed

+748
-16
lines changed

generator/ServiceModels/docdb/docdb-2014-10-31.api.json

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,7 @@
11971197
"DeletionProtection":{"shape":"BooleanOptional"},
11981198
"GlobalClusterIdentifier":{"shape":"GlobalClusterIdentifier"},
11991199
"StorageType":{"shape":"String"},
1200+
"ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfiguration"},
12001201
"ManageMasterUserPassword":{"shape":"BooleanOptional"},
12011202
"MasterUserSecretKmsKeyId":{"shape":"String"}
12021203
}
@@ -1372,6 +1373,7 @@
13721373
"EnabledCloudwatchLogsExports":{"shape":"LogTypeList"},
13731374
"DeletionProtection":{"shape":"Boolean"},
13741375
"StorageType":{"shape":"String"},
1376+
"ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfigurationInfo"},
13751377
"MasterUserSecret":{"shape":"ClusterMasterUserSecret"}
13761378
},
13771379
"wrapper":true
@@ -1602,7 +1604,8 @@
16021604
"ExportableLogTypes":{"shape":"LogTypeList"},
16031605
"SupportsLogExportsToCloudwatchLogs":{"shape":"Boolean"},
16041606
"SupportedCACertificateIdentifiers":{"shape":"CACertificateIdentifiersList"},
1605-
"SupportsCertificateRotationWithoutRestart":{"shape":"BooleanOptional"}
1607+
"SupportsCertificateRotationWithoutRestart":{"shape":"BooleanOptional"},
1608+
"ServerlessV2FeaturesSupport":{"shape":"ServerlessV2FeaturesSupport"}
16061609
}
16071610
},
16081611
"DBEngineVersionList":{
@@ -2120,6 +2123,7 @@
21202123
"MaxRecords":{"shape":"IntegerOptional"}
21212124
}
21222125
},
2126+
"DoubleOptional":{"type":"double"},
21232127
"Endpoint":{
21242128
"type":"structure",
21252129
"members":{
@@ -2608,6 +2612,7 @@
26082612
"AllowMajorVersionUpgrade":{"shape":"Boolean"},
26092613
"DeletionProtection":{"shape":"BooleanOptional"},
26102614
"StorageType":{"shape":"String"},
2615+
"ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfiguration"},
26112616
"ManageMasterUserPassword":{"shape":"BooleanOptional"},
26122617
"MasterUserSecretKmsKeyId":{"shape":"String"},
26132618
"RotateMasterUserPassword":{"shape":"BooleanOptional"}
@@ -2949,6 +2954,7 @@
29492954
"EnableCloudwatchLogsExports":{"shape":"LogTypeList"},
29502955
"DeletionProtection":{"shape":"BooleanOptional"},
29512956
"DBClusterParameterGroupName":{"shape":"String"},
2957+
"ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfiguration"},
29522958
"StorageType":{"shape":"String"}
29532959
}
29542960
},
@@ -2977,6 +2983,7 @@
29772983
"KmsKeyId":{"shape":"String"},
29782984
"EnableCloudwatchLogsExports":{"shape":"LogTypeList"},
29792985
"DeletionProtection":{"shape":"BooleanOptional"},
2986+
"ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfiguration"},
29802987
"StorageType":{"shape":"String"}
29812988
}
29822989
},
@@ -3019,6 +3026,27 @@
30193026
},
30203027
"exception":true
30213028
},
3029+
"ServerlessV2FeaturesSupport":{
3030+
"type":"structure",
3031+
"members":{
3032+
"MinCapacity":{"shape":"DoubleOptional"},
3033+
"MaxCapacity":{"shape":"DoubleOptional"}
3034+
}
3035+
},
3036+
"ServerlessV2ScalingConfiguration":{
3037+
"type":"structure",
3038+
"members":{
3039+
"MinCapacity":{"shape":"DoubleOptional"},
3040+
"MaxCapacity":{"shape":"DoubleOptional"}
3041+
}
3042+
},
3043+
"ServerlessV2ScalingConfigurationInfo":{
3044+
"type":"structure",
3045+
"members":{
3046+
"MinCapacity":{"shape":"DoubleOptional"},
3047+
"MaxCapacity":{"shape":"DoubleOptional"}
3048+
}
3049+
},
30223050
"SharedSnapshotQuotaExceededFault":{
30233051
"type":"structure",
30243052
"members":{

generator/ServiceModels/docdb/docdb-2014-10-31.docs.json

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,17 @@
773773
"refs": {
774774
}
775775
},
776+
"DoubleOptional": {
777+
"base": null,
778+
"refs": {
779+
"ServerlessV2FeaturesSupport$MinCapacity": "<p>The minimum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster. You can specify DCU values in half-step increments, such as 8, 8.5, 9, and so on.</p>",
780+
"ServerlessV2FeaturesSupport$MaxCapacity": "<p>The maximum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster. You can specify DCU values in half-step increments, such as 32, 32.5, 33, and so on.</p>",
781+
"ServerlessV2ScalingConfiguration$MinCapacity": "<p>The minimum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster. You can specify DCU values in half-step increments, such as 8, 8.5, 9, and so on.</p>",
782+
"ServerlessV2ScalingConfiguration$MaxCapacity": "<p>The maximum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster. You can specify DCU values in half-step increments, such as 32, 32.5, 33, and so on.</p>",
783+
"ServerlessV2ScalingConfigurationInfo$MinCapacity": "<p>The minimum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster. You can specify DCU values in half-step increments, such as 8, 8.5, 9, and so on.</p>",
784+
"ServerlessV2ScalingConfigurationInfo$MaxCapacity": "<p>The maximum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster. You can specify DCU values in half-step increments, such as 32, 32.5, 33, and so on. </p>"
785+
}
786+
},
776787
"Endpoint": {
777788
"base": "<p>Network information for accessing a cluster or instance. Client programs must specify a valid endpoint to access these Amazon DocumentDB resources.</p>",
778789
"refs": {
@@ -1277,7 +1288,7 @@
12771288
"ReadersArnList": {
12781289
"base": null,
12791290
"refs": {
1280-
"GlobalClusterMember$Readers": "<p>The Amazon Resource Name (ARN) for each read-only secondary cluster associated with the Aurora global cluster.</p>"
1291+
"GlobalClusterMember$Readers": "<p>The Amazon Resource Name (ARN) for each read-only secondary cluster associated with the Amazon DocumentDB global cluster.</p>"
12811292
}
12821293
},
12831294
"RebootDBInstanceMessage": {
@@ -1367,6 +1378,27 @@
13671378
"refs": {
13681379
}
13691380
},
1381+
"ServerlessV2FeaturesSupport": {
1382+
"base": "<p>Specifies any Amazon DocumentDB Serverless properties or limits that differ between Amazon DocumentDB engine versions. You can test the values of this attribute when deciding which Amazon DocumentDB version to use in a new or upgraded cluster. You can also retrieve the version of an existing cluster and check whether that version supports certain Amazon DocumentDB Serverless features before you attempt to use those features.</p>",
1383+
"refs": {
1384+
"DBEngineVersion$ServerlessV2FeaturesSupport": "<p>Specifies any Amazon DocumentDB Serverless properties or limits that differ between Amazon DocumentDB engine versions. You can test the values of this attribute when deciding which Amazon DocumentDB version to use in a new or upgraded cluster. You can also retrieve the version of an existing cluster and check whether that version supports certain Amazon DocumentDB Serverless features before you attempt to use those features.</p>"
1385+
}
1386+
},
1387+
"ServerlessV2ScalingConfiguration": {
1388+
"base": "<p>Sets the scaling configuration of an Amazon DocumentDB Serverless cluster.</p>",
1389+
"refs": {
1390+
"CreateDBClusterMessage$ServerlessV2ScalingConfiguration": "<p>Contains the scaling configuration of an Amazon DocumentDB Serverless cluster.</p>",
1391+
"ModifyDBClusterMessage$ServerlessV2ScalingConfiguration": "<p>Contains the scaling configuration of an Amazon DocumentDB Serverless cluster.</p>",
1392+
"RestoreDBClusterFromSnapshotMessage$ServerlessV2ScalingConfiguration": "<p>Contains the scaling configuration of an Amazon DocumentDB Serverless cluster.</p>",
1393+
"RestoreDBClusterToPointInTimeMessage$ServerlessV2ScalingConfiguration": "<p>Contains the scaling configuration of an Amazon DocumentDB Serverless cluster.</p>"
1394+
}
1395+
},
1396+
"ServerlessV2ScalingConfigurationInfo": {
1397+
"base": "<p>Retrieves the scaling configuration for an Amazon DocumentDB Serverless cluster.</p>",
1398+
"refs": {
1399+
"DBCluster$ServerlessV2ScalingConfiguration": "<p>The scaling configuration of an Amazon DocumentDB Serverless cluster.</p>"
1400+
}
1401+
},
13701402
"SharedSnapshotQuotaExceededFault": {
13711403
"base": "<p>You have exceeded the maximum number of accounts that you can share a manual DB snapshot with. </p>",
13721404
"refs": {
@@ -1508,7 +1540,7 @@
15081540
"DBCluster$DbClusterResourceId": "<p>The Amazon Web Services Region-unique, immutable identifier for the cluster. This identifier is found in CloudTrail log entries whenever the KMS key for the cluster is accessed.</p>",
15091541
"DBCluster$DBClusterArn": "<p>The Amazon Resource Name (ARN) for the cluster.</p>",
15101542
"DBCluster$CloneGroupId": "<p>Identifies the clone group to which the DB cluster is associated.</p>",
1511-
"DBCluster$StorageType": "<p>Storage type associated with your cluster</p> <p>Storage type associated with your cluster</p> <p>For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the <i>Amazon DocumentDB Developer Guide</i>.</p> <p>Valid values for storage type - <code>standard | iopt1</code> </p> <p>Default value is <code>standard </code> </p>",
1543+
"DBCluster$StorageType": "<p>Storage type associated with your cluster</p> <p>For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the <i>Amazon DocumentDB Developer Guide</i>.</p> <p>Valid values for storage type - <code>standard | iopt1</code> </p> <p>Default value is <code>standard </code> </p>",
15121544
"DBClusterMember$DBInstanceIdentifier": "<p>Specifies the instance identifier for this member of the cluster.</p>",
15131545
"DBClusterMember$DBClusterParameterGroupStatus": "<p>Specifies the status of the cluster parameter group for this member of the DB cluster.</p>",
15141546
"DBClusterMessage$Marker": "<p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>",
@@ -1532,7 +1564,7 @@
15321564
"DBClusterSnapshot$KmsKeyId": "<p>If <code>StorageEncrypted</code> is <code>true</code>, the KMS key identifier for the encrypted cluster snapshot.</p>",
15331565
"DBClusterSnapshot$DBClusterSnapshotArn": "<p>The Amazon Resource Name (ARN) for the cluster snapshot.</p>",
15341566
"DBClusterSnapshot$SourceDBClusterSnapshotArn": "<p>If the cluster snapshot was copied from a source cluster snapshot, the ARN for the source cluster snapshot; otherwise, a null value.</p>",
1535-
"DBClusterSnapshot$StorageType": "<p>Storage type associated with your cluster snapshot </p> <p>For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the <i>Amazon DocumentDB Developer Guide</i>.</p> <p>Valid values for storage type - <code>standard | iopt1</code> </p> <p>Default value is <code>standard </code> </p>",
1567+
"DBClusterSnapshot$StorageType": "<p>Storage type associated with your cluster snapshot</p> <p>For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the <i>Amazon DocumentDB Developer Guide</i>.</p> <p>Valid values for storage type - <code>standard | iopt1</code> </p> <p>Default value is <code>standard </code> </p>",
15361568
"DBClusterSnapshotAttribute$AttributeName": "<p>The name of the manual cluster snapshot attribute.</p> <p>The attribute named <code>restore</code> refers to the list of Amazon Web Services accounts that have permission to copy or restore the manual cluster snapshot.</p>",
15371569
"DBClusterSnapshotAttributesResult$DBClusterSnapshotIdentifier": "<p>The identifier of the cluster snapshot that the attributes apply to.</p>",
15381570
"DBClusterSnapshotMessage$Marker": "<p>An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>",
@@ -1632,7 +1664,7 @@
16321664
"FailoverDBClusterMessage$TargetDBInstanceIdentifier": "<p>The name of the instance to promote to the primary instance.</p> <p>You must specify the instance identifier for an Amazon DocumentDB replica in the cluster. For example, <code>mydbcluster-replica1</code>.</p>",
16331665
"Filter$Name": "<p>The name of the filter. Filter names are case sensitive.</p>",
16341666
"FilterValueList$member": null,
1635-
"GlobalCluster$GlobalClusterResourceId": "<p>The Amazon Web Services Region-unique, immutable identifier for the global database cluster. This identifier is found in CloudTrail log entries whenever the KMS customer master key (CMK) for the cluster is accessed. </p>",
1667+
"GlobalCluster$GlobalClusterResourceId": "<p>The Amazon Web Services RegionRegion-unique, immutable identifier for the global database cluster. This identifier is found in CloudTrail log entries whenever the KMS customer master key (CMK) for the cluster is accessed. </p>",
16361668
"GlobalCluster$GlobalClusterArn": "<p>The Amazon Resource Name (ARN) for the global cluster.</p>",
16371669
"GlobalCluster$Status": "<p>Specifies the current state of this global cluster.</p>",
16381670
"GlobalCluster$Engine": "<p>The Amazon DocumentDB database engine used by the global cluster. </p>",

0 commit comments

Comments
 (0)