Skip to content

Commit afb8c09

Browse files
author
AWS
committed
Amazon DocumentDB with MongoDB compatibility Update: Add support for NetworkType field in CreateDbCluster, ModifyDbCluster, RestoreDbClusterFromSnapshot and RestoreDbClusterToPointInTime for DocumentDB.
1 parent 83f4c8a commit afb8c09

File tree

2 files changed

+62
-9
lines changed

2 files changed

+62
-9
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon DocumentDB with MongoDB compatibility",
4+
"contributor": "",
5+
"description": "Add support for NetworkType field in CreateDbCluster, ModifyDbCluster, RestoreDbClusterFromSnapshot and RestoreDbClusterToPointInTime for DocumentDB."
6+
}

services/docdb/src/main/resources/codegen-resources/service-2.json

Lines changed: 56 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@
131131
{"shape":"DBInstanceNotFoundFault"},
132132
{"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"},
133133
{"shape":"GlobalClusterNotFoundFault"},
134-
{"shape":"InvalidGlobalClusterStateFault"}
134+
{"shape":"InvalidGlobalClusterStateFault"},
135+
{"shape":"NetworkTypeNotSupported"}
135136
],
136137
"documentation":"<p>Creates a new Amazon DocumentDB cluster.</p>"
137138
},
@@ -261,7 +262,7 @@
261262
{"shape":"InvalidDBClusterStateFault"},
262263
{"shape":"DBClusterNotFoundFault"}
263264
],
264-
"documentation":"<p>Creates an Amazon DocumentDB global cluster that can span multiple multiple Amazon Web Services Regions. The global cluster contains one primary cluster with read-write capability, and up-to give read-only secondary clusters. Global clusters uses storage-based fast replication across regions with latencies less than one second, using dedicated infrastructure with no impact to your workload’s performance.</p> <p/> <p>You can create a global cluster that is initially empty, and then add a primary and a secondary to it. Or you can specify an existing cluster during the create operation, and this cluster becomes the primary of the global cluster. </p> <note> <p>This action only applies to Amazon DocumentDB clusters.</p> </note>"
265+
"documentation":"<p>Creates an Amazon DocumentDB global cluster that can span multiple multiple Amazon Web Services Regions. The global cluster contains one primary cluster with read-write capability, and up-to 10 read-only secondary clusters. Global clusters uses storage-based fast replication across regions with latencies less than one second, using dedicated infrastructure with no impact to your workload’s performance.</p> <p/> <p>You can create a global cluster that is initially empty, and then add a primary and a secondary to it. Or you can specify an existing cluster during the create operation, and this cluster becomes the primary of the global cluster. </p> <note> <p>This action only applies to Amazon DocumentDB clusters.</p> </note>"
265266
},
266267
"DeleteDBCluster":{
267268
"name":"DeleteDBCluster",
@@ -699,7 +700,8 @@
699700
{"shape":"DBClusterParameterGroupNotFoundFault"},
700701
{"shape":"InvalidDBSecurityGroupStateFault"},
701702
{"shape":"InvalidDBInstanceStateFault"},
702-
{"shape":"DBClusterAlreadyExistsFault"}
703+
{"shape":"DBClusterAlreadyExistsFault"},
704+
{"shape":"NetworkTypeNotSupported"}
703705
],
704706
"documentation":"<p>Modifies a setting for an Amazon DocumentDB cluster. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. </p>"
705707
},
@@ -934,7 +936,8 @@
934936
{"shape":"InvalidRestoreFault"},
935937
{"shape":"DBSubnetGroupNotFoundFault"},
936938
{"shape":"InvalidSubnet"},
937-
{"shape":"KMSKeyNotAccessibleFault"}
939+
{"shape":"KMSKeyNotAccessibleFault"},
940+
{"shape":"NetworkTypeNotSupported"}
938941
],
939942
"documentation":"<p>Creates a new cluster from a snapshot or cluster snapshot.</p> <p>If a snapshot is specified, the target cluster is created from the source DB snapshot with a default configuration and default security group.</p> <p>If a cluster snapshot is specified, the target cluster is created from the source cluster restore point with the same configuration as the original source DB cluster, except that the new cluster is created with the default security group.</p>"
940943
},
@@ -964,7 +967,8 @@
964967
{"shape":"InvalidSubnet"},
965968
{"shape":"InvalidVPCNetworkStateFault"},
966969
{"shape":"KMSKeyNotAccessibleFault"},
967-
{"shape":"StorageQuotaExceededFault"}
970+
{"shape":"StorageQuotaExceededFault"},
971+
{"shape":"NetworkTypeNotSupported"}
968972
],
969973
"documentation":"<p>Restores a cluster to an arbitrary point in time. Users can restore to any point in time before <code>LatestRestorableTime</code> for up to <code>BackupRetentionPeriod</code> days. The target cluster is created from the source cluster with the same configuration as the original cluster, except that the new cluster is created with the default security group. </p>"
970974
},
@@ -1302,7 +1306,7 @@
13021306
"members":{
13031307
"SourceDBClusterSnapshotIdentifier":{
13041308
"shape":"String",
1305-
"documentation":"<p>The identifier of the cluster snapshot to copy. This parameter is not case sensitive.</p> <p>Constraints:</p> <ul> <li> <p>Must specify a valid system snapshot in the <i>available</i> state.</p> </li> <li> <p>If the source snapshot is in the same Amazon Web Services Region as the copy, specify a valid snapshot identifier.</p> </li> <li> <p>If the source snapshot is in a different Amazon Web Services Region than the copy, specify a valid cluster snapshot ARN.</p> </li> </ul> <p>Example: <code>my-cluster-snapshot1</code> </p>"
1309+
"documentation":"<p>The identifier of the cluster snapshot to copy. This parameter is not case sensitive.</p> <p>Constraints:</p> <ul> <li> <p>Must specify a valid cluster snapshot in the <i>available</i> state.</p> </li> <li> <p>If the source cluster snapshot is in the same Amazon Web Services Region as the copy, specify a valid snapshot identifier.</p> </li> <li> <p>If the source cluster snapshot is in a different Amazon Web Services Region or owned by another Amazon Web Services account, specify the snapshot ARN.</p> </li> </ul> <p>Example: <code>my-cluster-snapshot1</code> </p>"
13061310
},
13071311
"TargetDBClusterSnapshotIdentifier":{
13081312
"shape":"String",
@@ -1422,7 +1426,7 @@
14221426
},
14231427
"StorageType":{
14241428
"shape":"String",
1425-
"documentation":"<p>The storage type to associate with the DB 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> <note> <p>When you create a DocumentDB DB cluster with the storage type set to <code>iopt1</code>, the storage type is returned in the response. The storage type isn't returned when you set it to <code>standard</code>.</p> </note>"
1429+
"documentation":"<p>The storage type to associate with the DB 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> <note> <p>When you create an Amazon DocumentDB cluster with the storage type set to <code>iopt1</code>, the storage type is returned in the response. The storage type isn't returned when you set it to <code>standard</code>.</p> </note>"
14261430
},
14271431
"ServerlessV2ScalingConfiguration":{
14281432
"shape":"ServerlessV2ScalingConfiguration",
@@ -1435,6 +1439,10 @@
14351439
"MasterUserSecretKmsKeyId":{
14361440
"shape":"String",
14371441
"documentation":"<p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager. This setting is valid only if the master user password is managed by Amazon DocumentDB in Amazon Web Services Secrets Manager for the DB cluster.</p> <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p> <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p> <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>"
1442+
},
1443+
"NetworkType":{
1444+
"shape":"String",
1445+
"documentation":"<p>The network type of the cluster.</p> <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/documentdb/latest/developerguide/vpc-clusters.html\">DocumentDB clusters in a VPC</a> in the Amazon DocumentDB Developer Guide.</p> <p>Valid Values: <code>IPV4</code> | <code>DUAL</code> </p>"
14381446
}
14391447
},
14401448
"documentation":"<p>Represents the input to <a>CreateDBCluster</a>. </p>"
@@ -1825,6 +1833,10 @@
18251833
"shape":"Boolean",
18261834
"documentation":"<p>Specifies whether this cluster can be deleted. If <code>DeletionProtection</code> is enabled, the cluster cannot be deleted unless it is modified and <code>DeletionProtection</code> is disabled. <code>DeletionProtection</code> protects clusters from being accidentally deleted.</p>"
18271835
},
1836+
"IOOptimizedNextAllowedModificationTime":{
1837+
"shape":"TStamp",
1838+
"documentation":"<p>The next time you can modify the Amazon DocumentDB cluster to use the iopt1 storage type.</p>"
1839+
},
18281840
"StorageType":{
18291841
"shape":"String",
18301842
"documentation":"<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>"
@@ -1836,6 +1848,10 @@
18361848
"MasterUserSecret":{
18371849
"shape":"ClusterMasterUserSecret",
18381850
"documentation":"<p>The secret managed by Amazon DocumentDB in Amazon Web Services Secrets Manager for the master user password.</p>"
1851+
},
1852+
"NetworkType":{
1853+
"shape":"String",
1854+
"documentation":"<p>The network type of the cluster.</p> <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/documentdb/latest/developerguide/vpc-clusters.html\">DocumentDB clusters in a VPC</a> in the Amazon DocumentDB Developer Guide.</p> <p>Valid Values: <code>IPV4</code> | <code>DUAL</code> </p>"
18391855
}
18401856
},
18411857
"documentation":"<p>Detailed information about a cluster. </p>",
@@ -2551,6 +2567,10 @@
25512567
"DBSubnetGroupArn":{
25522568
"shape":"String",
25532569
"documentation":"<p>The Amazon Resource Name (ARN) for the DB subnet group.</p>"
2570+
},
2571+
"SupportedNetworkTypes":{
2572+
"shape":"NetworkTypeList",
2573+
"documentation":"<p>The network type of the DB subnet group.</p> <p>Valid Values: <code>IPV4</code> | <code>DUAL</code> </p> <p>A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL).</p>"
25542574
}
25552575
},
25562576
"documentation":"<p>Detailed information about a subnet group. </p>",
@@ -3879,7 +3899,7 @@
38793899
},
38803900
"AllowMajorVersionUpgrade":{
38813901
"shape":"Boolean",
3882-
"documentation":"<p>A value that indicates whether major version upgrades are allowed.</p> <p>Constraints: You must allow major version upgrades when specifying a value for the <code>EngineVersion</code> parameter that is a different major version than the DB cluster's current version.</p>"
3902+
"documentation":"<p>A value that indicates whether major version upgrades are allowed.</p> <p>Constraints:</p> <ul> <li> <p>You must allow major version upgrades when specifying a value for the <code>EngineVersion</code> parameter that is a different major version than the cluster's current version.</p> </li> <li> <p>Since some parameters are version specific, changing them requires executing a new <code>ModifyDBCluster</code> API call after the in-place MVU completes.</p> </li> </ul> <note> <p>Performing an MVU directly impacts the following parameters:</p> <ul> <li> <p> <code>MasterUserPassword</code> </p> </li> <li> <p> <code>NewDBClusterIdentifier</code> </p> </li> <li> <p> <code>VpcSecurityGroupIds</code> </p> </li> <li> <p> <code>Port</code> </p> </li> </ul> </note>"
38833903
},
38843904
"DeletionProtection":{
38853905
"shape":"BooleanOptional",
@@ -3904,6 +3924,10 @@
39043924
"RotateMasterUserPassword":{
39053925
"shape":"BooleanOptional",
39063926
"documentation":"<p>Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password.</p> <p>This setting is valid only if the master user password is managed by Amazon DocumentDB in Amazon Web Services Secrets Manager for the cluster. The secret value contains the updated password.</p> <p>Constraint: You must apply the change immediately when rotating the master user password.</p>"
3927+
},
3928+
"NetworkType":{
3929+
"shape":"String",
3930+
"documentation":"<p>The network type of the cluster.</p> <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/documentdb/latest/developerguide/vpc-clusters.html\">DocumentDB clusters in a VPC</a> in the Amazon DocumentDB Developer Guide.</p> <p>Valid Values: <code>IPV4</code> | <code>DUAL</code> </p>"
39073931
}
39083932
},
39093933
"documentation":"<p>Represents the input to <a>ModifyDBCluster</a>.</p>"
@@ -4111,6 +4135,21 @@
41114135
"GlobalCluster":{"shape":"GlobalCluster"}
41124136
}
41134137
},
4138+
"NetworkTypeList":{
4139+
"type":"list",
4140+
"member":{"shape":"String"}
4141+
},
4142+
"NetworkTypeNotSupported":{
4143+
"type":"structure",
4144+
"members":{},
4145+
"documentation":"<p>The network type is not supported by either <code>DBSubnetGroup</code> or the DB engine version.</p>",
4146+
"error":{
4147+
"code":"NetworkTypeNotSupported",
4148+
"httpStatusCode":400,
4149+
"senderFault":true
4150+
},
4151+
"exception":true
4152+
},
41144153
"OrderableDBInstanceOption":{
41154154
"type":"structure",
41164155
"members":{
@@ -4176,7 +4215,7 @@
41764215
},
41774216
"ParameterValue":{
41784217
"shape":"String",
4179-
"documentation":"<p>Specifies the value of the parameter.</p>"
4218+
"documentation":"<p>Specifies the value of the parameter. Must be one or more of the cluster parameter's <code>AllowedValues</code> in CSV format:</p> <p>Valid values are:</p> <ul> <li> <p> <code>enabled</code>: The cluster accepts secure connections using TLS version 1.0 through 1.3. </p> </li> <li> <p> <code>disabled</code>: The cluster does not accept secure connections using TLS. </p> </li> <li> <p> <code>fips-140-3</code>: The cluster only accepts secure connections per the requirements of the Federal Information Processing Standards (FIPS) publication 140-3. Only supported starting with Amazon DocumentDB 5.0 (engine version 3.0.3727) clusters in these regions: ca-central-1, us-west-2, us-east-1, us-east-2, us-gov-east-1, us-gov-west-1.</p> </li> <li> <p> <code>tls1.2+</code>: The cluster accepts secure connections using TLS version 1.2 and above. Only supported starting with Amazon DocumentDB 4.0 (engine version 2.0.10980) and Amazon DocumentDB 5.0 (engine version 3.0.11051).</p> </li> <li> <p> <code>tls1.3+</code>: The cluster accepts secure connections using TLS version 1.3 and above. Only supported starting with Amazon DocumentDB 4.0 (engine version 2.0.10980) and Amazon DocumentDB 5.0 (engine version 3.0.11051).</p> </li> </ul>"
41804219
},
41814220
"Description":{
41824221
"shape":"String",
@@ -4564,6 +4603,10 @@
45644603
"StorageType":{
45654604
"shape":"String",
45664605
"documentation":"<p>The storage type to associate with the DB 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>"
4606+
},
4607+
"NetworkType":{
4608+
"shape":"String",
4609+
"documentation":"<p>The network type of the cluster.</p> <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/documentdb/latest/developerguide/vpc-clusters.html\">DocumentDB clusters in a VPC</a> in the Amazon DocumentDB Developer Guide.</p> <p>Valid Values: <code>IPV4</code> | <code>DUAL</code> </p>"
45674610
}
45684611
},
45694612
"documentation":"<p>Represents the input to <a>RestoreDBClusterFromSnapshot</a>.</p>"
@@ -4636,6 +4679,10 @@
46364679
"StorageType":{
46374680
"shape":"String",
46384681
"documentation":"<p>The storage type to associate with the DB 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>"
4682+
},
4683+
"NetworkType":{
4684+
"shape":"String",
4685+
"documentation":"<p>The network type of the cluster.</p> <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/documentdb/latest/developerguide/vpc-clusters.html\">DocumentDB clusters in a VPC</a> in the Amazon DocumentDB Developer Guide.</p> <p>Valid Values: <code>IPV4</code> | <code>DUAL</code> </p>"
46394686
}
46404687
},
46414688
"documentation":"<p>Represents the input to <a>RestoreDBClusterToPointInTime</a>.</p>"

0 commit comments

Comments
 (0)