aws-sdk-docdb 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39dff01300d084338d5bbc0c19a6c86add8beb4e
4
- data.tar.gz: fa134c776b13d2fb82eefec9627c58878142938d
3
+ metadata.gz: d24b3b3df9c97f53bd460795b971ed13ed26d51c
4
+ data.tar.gz: 53ea1b9a4a0f0d2a034d7624e1f5b5504d8c3abb
5
5
  SHA512:
6
- metadata.gz: 69194790486cb73dc4c493ee54c5ccf2d0c74e0283a653f083bfab7c26bb7c32a6523f52c80951585319587d287139a0556b3047e20ff5e1f4b3fc05b1c43c83
7
- data.tar.gz: e7fd18f5dffe4fface326507da228ff0eff338a23c9c650db6c8adaf8f0019939b77d5847c16faff5a02e4879bd9cdd6488949763f366e0d065414f2ad6a12bf
6
+ metadata.gz: 41924bf6e86b08a78c00e613e5252b136394c04aaaf4c73b157a96ba1f8e44a01581847e71eabc41d60c5ebf699cfc5bf51f9d322b5155ea1ed855bf23c1a6c4
7
+ data.tar.gz: 1c01283ff9219b9d4415c68fb7e05145d786d200837bb8b3982c7d955d75c66c00343a0b51af2f99f6bbcaf7fbdda43c2c02fe24c495d576d2f27ab769c886f7
@@ -43,6 +43,6 @@ require_relative 'aws-sdk-docdb/customizations'
43
43
  # @service
44
44
  module Aws::DocDB
45
45
 
46
- GEM_VERSION = '1.8.0'
46
+ GEM_VERSION = '1.9.0'
47
47
 
48
48
  end
@@ -637,7 +637,7 @@ module Aws::DocDB
637
637
  # The port number on which the instances in the DB cluster accept
638
638
  # connections.
639
639
  #
640
- # @option params [String] :master_username
640
+ # @option params [required, String] :master_username
641
641
  # The name of the master user for the DB cluster.
642
642
  #
643
643
  # Constraints:
@@ -648,9 +648,10 @@ module Aws::DocDB
648
648
  #
649
649
  # * Cannot be a reserved word for the chosen database engine.
650
650
  #
651
- # @option params [String] :master_user_password
651
+ # @option params [required, String] :master_user_password
652
652
  # The password for the master database user. This password can contain
653
- # any printable ASCII character except "/", """, or "@".
653
+ # any printable ASCII character except forward slash (/), double quote
654
+ # ("), or the "at" symbol (@).
654
655
  #
655
656
  # Constraints: Must contain from 8 to 41 characters.
656
657
  #
@@ -725,6 +726,12 @@ module Aws::DocDB
725
726
  # A list of log types that need to be enabled for exporting to Amazon
726
727
  # CloudWatch Logs.
727
728
  #
729
+ # @option params [Boolean] :deletion_protection
730
+ # Specifies whether this cluster can be deleted. If `DeletionProtection`
731
+ # is enabled, the cluster cannot be deleted unless it is modified and
732
+ # `DeletionProtection` is disabled. `DeletionProtection` protects
733
+ # clusters from being accidentally deleted.
734
+ #
728
735
  # @return [Types::CreateDBClusterResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
729
736
  #
730
737
  # * {Types::CreateDBClusterResult#db_cluster #db_cluster} => Types::DBCluster
@@ -741,8 +748,8 @@ module Aws::DocDB
741
748
  # engine: "String", # required
742
749
  # engine_version: "String",
743
750
  # port: 1,
744
- # master_username: "String",
745
- # master_user_password: "String",
751
+ # master_username: "String", # required
752
+ # master_user_password: "String", # required
746
753
  # preferred_backup_window: "String",
747
754
  # preferred_maintenance_window: "String",
748
755
  # tags: [
@@ -754,6 +761,7 @@ module Aws::DocDB
754
761
  # storage_encrypted: false,
755
762
  # kms_key_id: "String",
756
763
  # enable_cloudwatch_logs_exports: ["String"],
764
+ # deletion_protection: false,
757
765
  # })
758
766
  #
759
767
  # @example Response structure
@@ -796,6 +804,7 @@ module Aws::DocDB
796
804
  # resp.db_cluster.cluster_create_time #=> Time
797
805
  # resp.db_cluster.enabled_cloudwatch_logs_exports #=> Array
798
806
  # resp.db_cluster.enabled_cloudwatch_logs_exports[0] #=> String
807
+ # resp.db_cluster.deletion_protection #=> Boolean
799
808
  #
800
809
  # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CreateDBCluster AWS API Documentation
801
810
  #
@@ -982,7 +991,7 @@ module Aws::DocDB
982
991
  #
983
992
  # @option params [required, String] :db_instance_class
984
993
  # The compute and memory capacity of the DB instance; for example,
985
- # `db.m4.large`.
994
+ # `db.r5.large`.
986
995
  #
987
996
  # @option params [required, String] :engine
988
997
  # The name of the database engine to be used for this instance.
@@ -1286,6 +1295,7 @@ module Aws::DocDB
1286
1295
  # resp.db_cluster.cluster_create_time #=> Time
1287
1296
  # resp.db_cluster.enabled_cloudwatch_logs_exports #=> Array
1288
1297
  # resp.db_cluster.enabled_cloudwatch_logs_exports[0] #=> String
1298
+ # resp.db_cluster.deletion_protection #=> Boolean
1289
1299
  #
1290
1300
  # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DeleteDBCluster AWS API Documentation
1291
1301
  #
@@ -1944,6 +1954,7 @@ module Aws::DocDB
1944
1954
  # resp.db_clusters[0].cluster_create_time #=> Time
1945
1955
  # resp.db_clusters[0].enabled_cloudwatch_logs_exports #=> Array
1946
1956
  # resp.db_clusters[0].enabled_cloudwatch_logs_exports[0] #=> String
1957
+ # resp.db_clusters[0].deletion_protection #=> Boolean
1947
1958
  #
1948
1959
  # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBClusters AWS API Documentation
1949
1960
  #
@@ -2727,6 +2738,7 @@ module Aws::DocDB
2727
2738
  # resp.db_cluster.cluster_create_time #=> Time
2728
2739
  # resp.db_cluster.enabled_cloudwatch_logs_exports #=> Array
2729
2740
  # resp.db_cluster.enabled_cloudwatch_logs_exports[0] #=> String
2741
+ # resp.db_cluster.deletion_protection #=> Boolean
2730
2742
  #
2731
2743
  # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/FailoverDBCluster AWS API Documentation
2732
2744
  #
@@ -2849,9 +2861,9 @@ module Aws::DocDB
2849
2861
  # Default: The same port as the original DB cluster.
2850
2862
  #
2851
2863
  # @option params [String] :master_user_password
2852
- # The new password for the master database user. This password can
2853
- # contain any printable ASCII character except "`/`", "`"`", or
2854
- # "`@`".
2864
+ # The password for the master database user. This password can contain
2865
+ # any printable ASCII character except forward slash (/), double quote
2866
+ # ("), or the "at" symbol (@).
2855
2867
  #
2856
2868
  # Constraints: Must contain from 8 to 41 characters.
2857
2869
  #
@@ -2899,6 +2911,12 @@ module Aws::DocDB
2899
2911
  # applied during the next maintenance window unless the
2900
2912
  # `ApplyImmediately` parameter is set to `true`.
2901
2913
  #
2914
+ # @option params [Boolean] :deletion_protection
2915
+ # Specifies whether this cluster can be deleted. If `DeletionProtection`
2916
+ # is enabled, the cluster cannot be deleted unless it is modified and
2917
+ # `DeletionProtection` is disabled. `DeletionProtection` protects
2918
+ # clusters from being accidentally deleted.
2919
+ #
2902
2920
  # @return [Types::ModifyDBClusterResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2903
2921
  #
2904
2922
  # * {Types::ModifyDBClusterResult#db_cluster #db_cluster} => Types::DBCluster
@@ -2921,6 +2939,7 @@ module Aws::DocDB
2921
2939
  # disable_log_types: ["String"],
2922
2940
  # },
2923
2941
  # engine_version: "String",
2942
+ # deletion_protection: false,
2924
2943
  # })
2925
2944
  #
2926
2945
  # @example Response structure
@@ -2963,6 +2982,7 @@ module Aws::DocDB
2963
2982
  # resp.db_cluster.cluster_create_time #=> Time
2964
2983
  # resp.db_cluster.enabled_cloudwatch_logs_exports #=> Array
2965
2984
  # resp.db_cluster.enabled_cloudwatch_logs_exports[0] #=> String
2985
+ # resp.db_cluster.deletion_protection #=> Boolean
2966
2986
  #
2967
2987
  # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ModifyDBCluster AWS API Documentation
2968
2988
  #
@@ -3131,7 +3151,7 @@ module Aws::DocDB
3131
3151
  #
3132
3152
  # @option params [String] :db_instance_class
3133
3153
  # The new compute and memory capacity of the DB instance; for example,
3134
- # `db.m4.large`. Not all DB instance classes are available in all AWS
3154
+ # `db.r5.large`. Not all DB instance classes are available in all AWS
3135
3155
  # Regions.
3136
3156
  #
3137
3157
  # If you modify the DB instance class, an outage occurs during the
@@ -3639,6 +3659,12 @@ module Aws::DocDB
3639
3659
  # A list of log types that must be enabled for exporting to Amazon
3640
3660
  # CloudWatch Logs.
3641
3661
  #
3662
+ # @option params [Boolean] :deletion_protection
3663
+ # Specifies whether this cluster can be deleted. If `DeletionProtection`
3664
+ # is enabled, the cluster cannot be deleted unless it is modified and
3665
+ # `DeletionProtection` is disabled. `DeletionProtection` protects
3666
+ # clusters from being accidentally deleted.
3667
+ #
3642
3668
  # @return [Types::RestoreDBClusterFromSnapshotResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3643
3669
  #
3644
3670
  # * {Types::RestoreDBClusterFromSnapshotResult#db_cluster #db_cluster} => Types::DBCluster
@@ -3662,6 +3688,7 @@ module Aws::DocDB
3662
3688
  # ],
3663
3689
  # kms_key_id: "String",
3664
3690
  # enable_cloudwatch_logs_exports: ["String"],
3691
+ # deletion_protection: false,
3665
3692
  # })
3666
3693
  #
3667
3694
  # @example Response structure
@@ -3704,6 +3731,7 @@ module Aws::DocDB
3704
3731
  # resp.db_cluster.cluster_create_time #=> Time
3705
3732
  # resp.db_cluster.enabled_cloudwatch_logs_exports #=> Array
3706
3733
  # resp.db_cluster.enabled_cloudwatch_logs_exports[0] #=> String
3734
+ # resp.db_cluster.deletion_protection #=> Boolean
3707
3735
  #
3708
3736
  # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/RestoreDBClusterFromSnapshot AWS API Documentation
3709
3737
  #
@@ -3823,6 +3851,12 @@ module Aws::DocDB
3823
3851
  # A list of log types that must be enabled for exporting to Amazon
3824
3852
  # CloudWatch Logs.
3825
3853
  #
3854
+ # @option params [Boolean] :deletion_protection
3855
+ # Specifies whether this cluster can be deleted. If `DeletionProtection`
3856
+ # is enabled, the cluster cannot be deleted unless it is modified and
3857
+ # `DeletionProtection` is disabled. `DeletionProtection` protects
3858
+ # clusters from being accidentally deleted.
3859
+ #
3826
3860
  # @return [Types::RestoreDBClusterToPointInTimeResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3827
3861
  #
3828
3862
  # * {Types::RestoreDBClusterToPointInTimeResult#db_cluster #db_cluster} => Types::DBCluster
@@ -3845,6 +3879,7 @@ module Aws::DocDB
3845
3879
  # ],
3846
3880
  # kms_key_id: "String",
3847
3881
  # enable_cloudwatch_logs_exports: ["String"],
3882
+ # deletion_protection: false,
3848
3883
  # })
3849
3884
  #
3850
3885
  # @example Response structure
@@ -3887,6 +3922,7 @@ module Aws::DocDB
3887
3922
  # resp.db_cluster.cluster_create_time #=> Time
3888
3923
  # resp.db_cluster.enabled_cloudwatch_logs_exports #=> Array
3889
3924
  # resp.db_cluster.enabled_cloudwatch_logs_exports[0] #=> String
3925
+ # resp.db_cluster.deletion_protection #=> Boolean
3890
3926
  #
3891
3927
  # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/RestoreDBClusterToPointInTime AWS API Documentation
3892
3928
  #
@@ -3897,6 +3933,152 @@ module Aws::DocDB
3897
3933
  req.send_request(options)
3898
3934
  end
3899
3935
 
3936
+ # Restarts the stopped cluster that is specified by
3937
+ # `DBClusterIdentifier`. For more information, see [Stopping and
3938
+ # Starting an Amazon DocumentDB Cluster][1].
3939
+ #
3940
+ #
3941
+ #
3942
+ # [1]: https://docs.aws.amazon.com/documentdb/latest/developerguide/db-cluster-stop-start.html
3943
+ #
3944
+ # @option params [required, String] :db_cluster_identifier
3945
+ # The identifier of the cluster to restart. Example:
3946
+ # `docdb-2019-05-28-15-24-52`
3947
+ #
3948
+ # @return [Types::StartDBClusterResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3949
+ #
3950
+ # * {Types::StartDBClusterResult#db_cluster #db_cluster} => Types::DBCluster
3951
+ #
3952
+ # @example Request syntax with placeholder values
3953
+ #
3954
+ # resp = client.start_db_cluster({
3955
+ # db_cluster_identifier: "String", # required
3956
+ # })
3957
+ #
3958
+ # @example Response structure
3959
+ #
3960
+ # resp.db_cluster.availability_zones #=> Array
3961
+ # resp.db_cluster.availability_zones[0] #=> String
3962
+ # resp.db_cluster.backup_retention_period #=> Integer
3963
+ # resp.db_cluster.db_cluster_identifier #=> String
3964
+ # resp.db_cluster.db_cluster_parameter_group #=> String
3965
+ # resp.db_cluster.db_subnet_group #=> String
3966
+ # resp.db_cluster.status #=> String
3967
+ # resp.db_cluster.percent_progress #=> String
3968
+ # resp.db_cluster.earliest_restorable_time #=> Time
3969
+ # resp.db_cluster.endpoint #=> String
3970
+ # resp.db_cluster.reader_endpoint #=> String
3971
+ # resp.db_cluster.multi_az #=> Boolean
3972
+ # resp.db_cluster.engine #=> String
3973
+ # resp.db_cluster.engine_version #=> String
3974
+ # resp.db_cluster.latest_restorable_time #=> Time
3975
+ # resp.db_cluster.port #=> Integer
3976
+ # resp.db_cluster.master_username #=> String
3977
+ # resp.db_cluster.preferred_backup_window #=> String
3978
+ # resp.db_cluster.preferred_maintenance_window #=> String
3979
+ # resp.db_cluster.db_cluster_members #=> Array
3980
+ # resp.db_cluster.db_cluster_members[0].db_instance_identifier #=> String
3981
+ # resp.db_cluster.db_cluster_members[0].is_cluster_writer #=> Boolean
3982
+ # resp.db_cluster.db_cluster_members[0].db_cluster_parameter_group_status #=> String
3983
+ # resp.db_cluster.db_cluster_members[0].promotion_tier #=> Integer
3984
+ # resp.db_cluster.vpc_security_groups #=> Array
3985
+ # resp.db_cluster.vpc_security_groups[0].vpc_security_group_id #=> String
3986
+ # resp.db_cluster.vpc_security_groups[0].status #=> String
3987
+ # resp.db_cluster.hosted_zone_id #=> String
3988
+ # resp.db_cluster.storage_encrypted #=> Boolean
3989
+ # resp.db_cluster.kms_key_id #=> String
3990
+ # resp.db_cluster.db_cluster_resource_id #=> String
3991
+ # resp.db_cluster.db_cluster_arn #=> String
3992
+ # resp.db_cluster.associated_roles #=> Array
3993
+ # resp.db_cluster.associated_roles[0].role_arn #=> String
3994
+ # resp.db_cluster.associated_roles[0].status #=> String
3995
+ # resp.db_cluster.cluster_create_time #=> Time
3996
+ # resp.db_cluster.enabled_cloudwatch_logs_exports #=> Array
3997
+ # resp.db_cluster.enabled_cloudwatch_logs_exports[0] #=> String
3998
+ # resp.db_cluster.deletion_protection #=> Boolean
3999
+ #
4000
+ # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/StartDBCluster AWS API Documentation
4001
+ #
4002
+ # @overload start_db_cluster(params = {})
4003
+ # @param [Hash] params ({})
4004
+ def start_db_cluster(params = {}, options = {})
4005
+ req = build_request(:start_db_cluster, params)
4006
+ req.send_request(options)
4007
+ end
4008
+
4009
+ # Stops the running cluster that is specified by `DBClusterIdentifier`.
4010
+ # The cluster must be in the *available* state. For more information,
4011
+ # see [Stopping and Starting an Amazon DocumentDB Cluster][1].
4012
+ #
4013
+ #
4014
+ #
4015
+ # [1]: https://docs.aws.amazon.com/documentdb/latest/developerguide/db-cluster-stop-start.html
4016
+ #
4017
+ # @option params [required, String] :db_cluster_identifier
4018
+ # The identifier of the cluster to stop. Example:
4019
+ # `docdb-2019-05-28-15-24-52`
4020
+ #
4021
+ # @return [Types::StopDBClusterResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4022
+ #
4023
+ # * {Types::StopDBClusterResult#db_cluster #db_cluster} => Types::DBCluster
4024
+ #
4025
+ # @example Request syntax with placeholder values
4026
+ #
4027
+ # resp = client.stop_db_cluster({
4028
+ # db_cluster_identifier: "String", # required
4029
+ # })
4030
+ #
4031
+ # @example Response structure
4032
+ #
4033
+ # resp.db_cluster.availability_zones #=> Array
4034
+ # resp.db_cluster.availability_zones[0] #=> String
4035
+ # resp.db_cluster.backup_retention_period #=> Integer
4036
+ # resp.db_cluster.db_cluster_identifier #=> String
4037
+ # resp.db_cluster.db_cluster_parameter_group #=> String
4038
+ # resp.db_cluster.db_subnet_group #=> String
4039
+ # resp.db_cluster.status #=> String
4040
+ # resp.db_cluster.percent_progress #=> String
4041
+ # resp.db_cluster.earliest_restorable_time #=> Time
4042
+ # resp.db_cluster.endpoint #=> String
4043
+ # resp.db_cluster.reader_endpoint #=> String
4044
+ # resp.db_cluster.multi_az #=> Boolean
4045
+ # resp.db_cluster.engine #=> String
4046
+ # resp.db_cluster.engine_version #=> String
4047
+ # resp.db_cluster.latest_restorable_time #=> Time
4048
+ # resp.db_cluster.port #=> Integer
4049
+ # resp.db_cluster.master_username #=> String
4050
+ # resp.db_cluster.preferred_backup_window #=> String
4051
+ # resp.db_cluster.preferred_maintenance_window #=> String
4052
+ # resp.db_cluster.db_cluster_members #=> Array
4053
+ # resp.db_cluster.db_cluster_members[0].db_instance_identifier #=> String
4054
+ # resp.db_cluster.db_cluster_members[0].is_cluster_writer #=> Boolean
4055
+ # resp.db_cluster.db_cluster_members[0].db_cluster_parameter_group_status #=> String
4056
+ # resp.db_cluster.db_cluster_members[0].promotion_tier #=> Integer
4057
+ # resp.db_cluster.vpc_security_groups #=> Array
4058
+ # resp.db_cluster.vpc_security_groups[0].vpc_security_group_id #=> String
4059
+ # resp.db_cluster.vpc_security_groups[0].status #=> String
4060
+ # resp.db_cluster.hosted_zone_id #=> String
4061
+ # resp.db_cluster.storage_encrypted #=> Boolean
4062
+ # resp.db_cluster.kms_key_id #=> String
4063
+ # resp.db_cluster.db_cluster_resource_id #=> String
4064
+ # resp.db_cluster.db_cluster_arn #=> String
4065
+ # resp.db_cluster.associated_roles #=> Array
4066
+ # resp.db_cluster.associated_roles[0].role_arn #=> String
4067
+ # resp.db_cluster.associated_roles[0].status #=> String
4068
+ # resp.db_cluster.cluster_create_time #=> Time
4069
+ # resp.db_cluster.enabled_cloudwatch_logs_exports #=> Array
4070
+ # resp.db_cluster.enabled_cloudwatch_logs_exports[0] #=> String
4071
+ # resp.db_cluster.deletion_protection #=> Boolean
4072
+ #
4073
+ # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/StopDBCluster AWS API Documentation
4074
+ #
4075
+ # @overload stop_db_cluster(params = {})
4076
+ # @param [Hash] params ({})
4077
+ def stop_db_cluster(params = {}, options = {})
4078
+ req = build_request(:stop_db_cluster, params)
4079
+ req.send_request(options)
4080
+ end
4081
+
3900
4082
  # @!endgroup
3901
4083
 
3902
4084
  # @param params ({})
@@ -3910,7 +4092,7 @@ module Aws::DocDB
3910
4092
  params: params,
3911
4093
  config: config)
3912
4094
  context[:gem_name] = 'aws-sdk-docdb'
3913
- context[:gem_version] = '1.8.0'
4095
+ context[:gem_version] = '1.9.0'
3914
4096
  Seahorse::Client::Request.new(handlers, context)
3915
4097
  end
3916
4098
 
@@ -178,6 +178,10 @@ module Aws::DocDB
178
178
  SharedSnapshotQuotaExceededFault = Shapes::StructureShape.new(name: 'SharedSnapshotQuotaExceededFault')
179
179
  SnapshotQuotaExceededFault = Shapes::StructureShape.new(name: 'SnapshotQuotaExceededFault')
180
180
  SourceType = Shapes::StringShape.new(name: 'SourceType')
181
+ StartDBClusterMessage = Shapes::StructureShape.new(name: 'StartDBClusterMessage')
182
+ StartDBClusterResult = Shapes::StructureShape.new(name: 'StartDBClusterResult')
183
+ StopDBClusterMessage = Shapes::StructureShape.new(name: 'StopDBClusterMessage')
184
+ StopDBClusterResult = Shapes::StructureShape.new(name: 'StopDBClusterResult')
181
185
  StorageQuotaExceededFault = Shapes::StructureShape.new(name: 'StorageQuotaExceededFault')
182
186
  StorageTypeNotSupportedFault = Shapes::StructureShape.new(name: 'StorageTypeNotSupportedFault')
183
187
  String = Shapes::StringShape.new(name: 'String')
@@ -249,14 +253,15 @@ module Aws::DocDB
249
253
  CreateDBClusterMessage.add_member(:engine, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Engine"))
250
254
  CreateDBClusterMessage.add_member(:engine_version, Shapes::ShapeRef.new(shape: String, location_name: "EngineVersion"))
251
255
  CreateDBClusterMessage.add_member(:port, Shapes::ShapeRef.new(shape: IntegerOptional, location_name: "Port"))
252
- CreateDBClusterMessage.add_member(:master_username, Shapes::ShapeRef.new(shape: String, location_name: "MasterUsername"))
253
- CreateDBClusterMessage.add_member(:master_user_password, Shapes::ShapeRef.new(shape: String, location_name: "MasterUserPassword"))
256
+ CreateDBClusterMessage.add_member(:master_username, Shapes::ShapeRef.new(shape: String, required: true, location_name: "MasterUsername"))
257
+ CreateDBClusterMessage.add_member(:master_user_password, Shapes::ShapeRef.new(shape: String, required: true, location_name: "MasterUserPassword"))
254
258
  CreateDBClusterMessage.add_member(:preferred_backup_window, Shapes::ShapeRef.new(shape: String, location_name: "PreferredBackupWindow"))
255
259
  CreateDBClusterMessage.add_member(:preferred_maintenance_window, Shapes::ShapeRef.new(shape: String, location_name: "PreferredMaintenanceWindow"))
256
260
  CreateDBClusterMessage.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
257
261
  CreateDBClusterMessage.add_member(:storage_encrypted, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "StorageEncrypted"))
258
262
  CreateDBClusterMessage.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
259
263
  CreateDBClusterMessage.add_member(:enable_cloudwatch_logs_exports, Shapes::ShapeRef.new(shape: LogTypeList, location_name: "EnableCloudwatchLogsExports"))
264
+ CreateDBClusterMessage.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "DeletionProtection"))
260
265
  CreateDBClusterMessage.struct_class = Types::CreateDBClusterMessage
261
266
 
262
267
  CreateDBClusterParameterGroupMessage.add_member(:db_cluster_parameter_group_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DBClusterParameterGroupName"))
@@ -330,6 +335,7 @@ module Aws::DocDB
330
335
  DBCluster.add_member(:associated_roles, Shapes::ShapeRef.new(shape: DBClusterRoles, location_name: "AssociatedRoles"))
331
336
  DBCluster.add_member(:cluster_create_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "ClusterCreateTime"))
332
337
  DBCluster.add_member(:enabled_cloudwatch_logs_exports, Shapes::ShapeRef.new(shape: LogTypeList, location_name: "EnabledCloudwatchLogsExports"))
338
+ DBCluster.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: Boolean, location_name: "DeletionProtection"))
333
339
  DBCluster.struct_class = Types::DBCluster
334
340
 
335
341
  DBClusterList.member = Shapes::ShapeRef.new(shape: DBCluster, location_name: "DBCluster")
@@ -671,6 +677,7 @@ module Aws::DocDB
671
677
  ModifyDBClusterMessage.add_member(:preferred_maintenance_window, Shapes::ShapeRef.new(shape: String, location_name: "PreferredMaintenanceWindow"))
672
678
  ModifyDBClusterMessage.add_member(:cloudwatch_logs_export_configuration, Shapes::ShapeRef.new(shape: CloudwatchLogsExportConfiguration, location_name: "CloudwatchLogsExportConfiguration"))
673
679
  ModifyDBClusterMessage.add_member(:engine_version, Shapes::ShapeRef.new(shape: String, location_name: "EngineVersion"))
680
+ ModifyDBClusterMessage.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "DeletionProtection"))
674
681
  ModifyDBClusterMessage.struct_class = Types::ModifyDBClusterMessage
675
682
 
676
683
  ModifyDBClusterParameterGroupMessage.add_member(:db_cluster_parameter_group_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DBClusterParameterGroupName"))
@@ -804,6 +811,7 @@ module Aws::DocDB
804
811
  RestoreDBClusterFromSnapshotMessage.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
805
812
  RestoreDBClusterFromSnapshotMessage.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
806
813
  RestoreDBClusterFromSnapshotMessage.add_member(:enable_cloudwatch_logs_exports, Shapes::ShapeRef.new(shape: LogTypeList, location_name: "EnableCloudwatchLogsExports"))
814
+ RestoreDBClusterFromSnapshotMessage.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "DeletionProtection"))
807
815
  RestoreDBClusterFromSnapshotMessage.struct_class = Types::RestoreDBClusterFromSnapshotMessage
808
816
 
809
817
  RestoreDBClusterFromSnapshotResult.add_member(:db_cluster, Shapes::ShapeRef.new(shape: DBCluster, location_name: "DBCluster"))
@@ -819,11 +827,24 @@ module Aws::DocDB
819
827
  RestoreDBClusterToPointInTimeMessage.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
820
828
  RestoreDBClusterToPointInTimeMessage.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
821
829
  RestoreDBClusterToPointInTimeMessage.add_member(:enable_cloudwatch_logs_exports, Shapes::ShapeRef.new(shape: LogTypeList, location_name: "EnableCloudwatchLogsExports"))
830
+ RestoreDBClusterToPointInTimeMessage.add_member(:deletion_protection, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "DeletionProtection"))
822
831
  RestoreDBClusterToPointInTimeMessage.struct_class = Types::RestoreDBClusterToPointInTimeMessage
823
832
 
824
833
  RestoreDBClusterToPointInTimeResult.add_member(:db_cluster, Shapes::ShapeRef.new(shape: DBCluster, location_name: "DBCluster"))
825
834
  RestoreDBClusterToPointInTimeResult.struct_class = Types::RestoreDBClusterToPointInTimeResult
826
835
 
836
+ StartDBClusterMessage.add_member(:db_cluster_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DBClusterIdentifier"))
837
+ StartDBClusterMessage.struct_class = Types::StartDBClusterMessage
838
+
839
+ StartDBClusterResult.add_member(:db_cluster, Shapes::ShapeRef.new(shape: DBCluster, location_name: "DBCluster"))
840
+ StartDBClusterResult.struct_class = Types::StartDBClusterResult
841
+
842
+ StopDBClusterMessage.add_member(:db_cluster_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DBClusterIdentifier"))
843
+ StopDBClusterMessage.struct_class = Types::StopDBClusterMessage
844
+
845
+ StopDBClusterResult.add_member(:db_cluster, Shapes::ShapeRef.new(shape: DBCluster, location_name: "DBCluster"))
846
+ StopDBClusterResult.struct_class = Types::StopDBClusterResult
847
+
827
848
  Subnet.add_member(:subnet_identifier, Shapes::ShapeRef.new(shape: String, location_name: "SubnetIdentifier"))
828
849
  Subnet.add_member(:subnet_availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZone, location_name: "SubnetAvailabilityZone"))
829
850
  Subnet.add_member(:subnet_status, Shapes::ShapeRef.new(shape: String, location_name: "SubnetStatus"))
@@ -896,6 +917,8 @@ module Aws::DocDB
896
917
  o.input = Shapes::ShapeRef.new(shape: ApplyPendingMaintenanceActionMessage)
897
918
  o.output = Shapes::ShapeRef.new(shape: ApplyPendingMaintenanceActionResult)
898
919
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundFault)
920
+ o.errors << Shapes::ShapeRef.new(shape: InvalidDBClusterStateFault)
921
+ o.errors << Shapes::ShapeRef.new(shape: InvalidDBInstanceStateFault)
899
922
  end)
900
923
 
901
924
  api.add_operation(:copy_db_cluster_parameter_group, Seahorse::Model::Operation.new.tap do |o|
@@ -1383,6 +1406,28 @@ module Aws::DocDB
1383
1406
  o.errors << Shapes::ShapeRef.new(shape: KMSKeyNotAccessibleFault)
1384
1407
  o.errors << Shapes::ShapeRef.new(shape: StorageQuotaExceededFault)
1385
1408
  end)
1409
+
1410
+ api.add_operation(:start_db_cluster, Seahorse::Model::Operation.new.tap do |o|
1411
+ o.name = "StartDBCluster"
1412
+ o.http_method = "POST"
1413
+ o.http_request_uri = "/"
1414
+ o.input = Shapes::ShapeRef.new(shape: StartDBClusterMessage)
1415
+ o.output = Shapes::ShapeRef.new(shape: StartDBClusterResult)
1416
+ o.errors << Shapes::ShapeRef.new(shape: DBClusterNotFoundFault)
1417
+ o.errors << Shapes::ShapeRef.new(shape: InvalidDBClusterStateFault)
1418
+ o.errors << Shapes::ShapeRef.new(shape: InvalidDBInstanceStateFault)
1419
+ end)
1420
+
1421
+ api.add_operation(:stop_db_cluster, Seahorse::Model::Operation.new.tap do |o|
1422
+ o.name = "StopDBCluster"
1423
+ o.http_method = "POST"
1424
+ o.http_request_uri = "/"
1425
+ o.input = Shapes::ShapeRef.new(shape: StopDBClusterMessage)
1426
+ o.output = Shapes::ShapeRef.new(shape: StopDBClusterResult)
1427
+ o.errors << Shapes::ShapeRef.new(shape: DBClusterNotFoundFault)
1428
+ o.errors << Shapes::ShapeRef.new(shape: InvalidDBClusterStateFault)
1429
+ o.errors << Shapes::ShapeRef.new(shape: InvalidDBInstanceStateFault)
1430
+ end)
1386
1431
  end
1387
1432
 
1388
1433
  end
@@ -381,8 +381,8 @@ module Aws::DocDB
381
381
  # engine: "String", # required
382
382
  # engine_version: "String",
383
383
  # port: 1,
384
- # master_username: "String",
385
- # master_user_password: "String",
384
+ # master_username: "String", # required
385
+ # master_user_password: "String", # required
386
386
  # preferred_backup_window: "String",
387
387
  # preferred_maintenance_window: "String",
388
388
  # tags: [
@@ -394,6 +394,7 @@ module Aws::DocDB
394
394
  # storage_encrypted: false,
395
395
  # kms_key_id: "String",
396
396
  # enable_cloudwatch_logs_exports: ["String"],
397
+ # deletion_protection: false,
397
398
  # }
398
399
  #
399
400
  # @!attribute [rw] availability_zones
@@ -476,7 +477,8 @@ module Aws::DocDB
476
477
  #
477
478
  # @!attribute [rw] master_user_password
478
479
  # The password for the master database user. This password can contain
479
- # any printable ASCII character except "/", """, or "@".
480
+ # any printable ASCII character except forward slash (/), double quote
481
+ # ("), or the "at" symbol (@).
480
482
  #
481
483
  # Constraints: Must contain from 8 to 41 characters.
482
484
  # @return [String]
@@ -558,6 +560,14 @@ module Aws::DocDB
558
560
  # CloudWatch Logs.
559
561
  # @return [Array<String>]
560
562
  #
563
+ # @!attribute [rw] deletion_protection
564
+ # Specifies whether this cluster can be deleted. If
565
+ # `DeletionProtection` is enabled, the cluster cannot be deleted
566
+ # unless it is modified and `DeletionProtection` is disabled.
567
+ # `DeletionProtection` protects clusters from being accidentally
568
+ # deleted.
569
+ # @return [Boolean]
570
+ #
561
571
  # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CreateDBClusterMessage AWS API Documentation
562
572
  #
563
573
  class CreateDBClusterMessage < Struct.new(
@@ -577,7 +587,8 @@ module Aws::DocDB
577
587
  :tags,
578
588
  :storage_encrypted,
579
589
  :kms_key_id,
580
- :enable_cloudwatch_logs_exports)
590
+ :enable_cloudwatch_logs_exports,
591
+ :deletion_protection)
581
592
  include Aws::Structure
582
593
  end
583
594
 
@@ -763,7 +774,7 @@ module Aws::DocDB
763
774
  #
764
775
  # @!attribute [rw] db_instance_class
765
776
  # The compute and memory capacity of the DB instance; for example,
766
- # `db.m4.large`.
777
+ # `db.r5.large`.
767
778
  # @return [String]
768
779
  #
769
780
  # @!attribute [rw] engine
@@ -1061,6 +1072,14 @@ module Aws::DocDB
1061
1072
  # Amazon CloudWatch Logs.
1062
1073
  # @return [Array<String>]
1063
1074
  #
1075
+ # @!attribute [rw] deletion_protection
1076
+ # Specifies whether this cluster can be deleted. If
1077
+ # `DeletionProtection` is enabled, the cluster cannot be deleted
1078
+ # unless it is modified and `DeletionProtection` is disabled.
1079
+ # `DeletionProtection` protects clusters from being accidentally
1080
+ # deleted.
1081
+ # @return [Boolean]
1082
+ #
1064
1083
  # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBCluster AWS API Documentation
1065
1084
  #
1066
1085
  class DBCluster < Struct.new(
@@ -1091,7 +1110,8 @@ module Aws::DocDB
1091
1110
  :db_cluster_arn,
1092
1111
  :associated_roles,
1093
1112
  :cluster_create_time,
1094
- :enabled_cloudwatch_logs_exports)
1113
+ :enabled_cloudwatch_logs_exports,
1114
+ :deletion_protection)
1095
1115
  include Aws::Structure
1096
1116
  end
1097
1117
 
@@ -3194,6 +3214,7 @@ module Aws::DocDB
3194
3214
  # disable_log_types: ["String"],
3195
3215
  # },
3196
3216
  # engine_version: "String",
3217
+ # deletion_protection: false,
3197
3218
  # }
3198
3219
  #
3199
3220
  # @!attribute [rw] db_cluster_identifier
@@ -3272,9 +3293,9 @@ module Aws::DocDB
3272
3293
  # @return [Integer]
3273
3294
  #
3274
3295
  # @!attribute [rw] master_user_password
3275
- # The new password for the master database user. This password can
3276
- # contain any printable ASCII character except "`/`", "`"`", or
3277
- # "`@`".
3296
+ # The password for the master database user. This password can contain
3297
+ # any printable ASCII character except forward slash (/), double quote
3298
+ # ("), or the "at" symbol (@).
3278
3299
  #
3279
3300
  # Constraints: Must contain from 8 to 41 characters.
3280
3301
  # @return [String]
@@ -3327,6 +3348,14 @@ module Aws::DocDB
3327
3348
  # `ApplyImmediately` parameter is set to `true`.
3328
3349
  # @return [String]
3329
3350
  #
3351
+ # @!attribute [rw] deletion_protection
3352
+ # Specifies whether this cluster can be deleted. If
3353
+ # `DeletionProtection` is enabled, the cluster cannot be deleted
3354
+ # unless it is modified and `DeletionProtection` is disabled.
3355
+ # `DeletionProtection` protects clusters from being accidentally
3356
+ # deleted.
3357
+ # @return [Boolean]
3358
+ #
3330
3359
  # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ModifyDBClusterMessage AWS API Documentation
3331
3360
  #
3332
3361
  class ModifyDBClusterMessage < Struct.new(
@@ -3341,7 +3370,8 @@ module Aws::DocDB
3341
3370
  :preferred_backup_window,
3342
3371
  :preferred_maintenance_window,
3343
3372
  :cloudwatch_logs_export_configuration,
3344
- :engine_version)
3373
+ :engine_version,
3374
+ :deletion_protection)
3345
3375
  include Aws::Structure
3346
3376
  end
3347
3377
 
@@ -3494,7 +3524,7 @@ module Aws::DocDB
3494
3524
  #
3495
3525
  # @!attribute [rw] db_instance_class
3496
3526
  # The new compute and memory capacity of the DB instance; for example,
3497
- # `db.m4.large`. Not all DB instance classes are available in all AWS
3527
+ # `db.r5.large`. Not all DB instance classes are available in all AWS
3498
3528
  # Regions.
3499
3529
  #
3500
3530
  # If you modify the DB instance class, an outage occurs during the
@@ -4132,6 +4162,7 @@ module Aws::DocDB
4132
4162
  # ],
4133
4163
  # kms_key_id: "String",
4134
4164
  # enable_cloudwatch_logs_exports: ["String"],
4165
+ # deletion_protection: false,
4135
4166
  # }
4136
4167
  #
4137
4168
  # @!attribute [rw] availability_zones
@@ -4235,6 +4266,14 @@ module Aws::DocDB
4235
4266
  # CloudWatch Logs.
4236
4267
  # @return [Array<String>]
4237
4268
  #
4269
+ # @!attribute [rw] deletion_protection
4270
+ # Specifies whether this cluster can be deleted. If
4271
+ # `DeletionProtection` is enabled, the cluster cannot be deleted
4272
+ # unless it is modified and `DeletionProtection` is disabled.
4273
+ # `DeletionProtection` protects clusters from being accidentally
4274
+ # deleted.
4275
+ # @return [Boolean]
4276
+ #
4238
4277
  # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/RestoreDBClusterFromSnapshotMessage AWS API Documentation
4239
4278
  #
4240
4279
  class RestoreDBClusterFromSnapshotMessage < Struct.new(
@@ -4248,7 +4287,8 @@ module Aws::DocDB
4248
4287
  :vpc_security_group_ids,
4249
4288
  :tags,
4250
4289
  :kms_key_id,
4251
- :enable_cloudwatch_logs_exports)
4290
+ :enable_cloudwatch_logs_exports,
4291
+ :deletion_protection)
4252
4292
  include Aws::Structure
4253
4293
  end
4254
4294
 
@@ -4284,6 +4324,7 @@ module Aws::DocDB
4284
4324
  # ],
4285
4325
  # kms_key_id: "String",
4286
4326
  # enable_cloudwatch_logs_exports: ["String"],
4327
+ # deletion_protection: false,
4287
4328
  # }
4288
4329
  #
4289
4330
  # @!attribute [rw] db_cluster_identifier
@@ -4398,6 +4439,14 @@ module Aws::DocDB
4398
4439
  # CloudWatch Logs.
4399
4440
  # @return [Array<String>]
4400
4441
  #
4442
+ # @!attribute [rw] deletion_protection
4443
+ # Specifies whether this cluster can be deleted. If
4444
+ # `DeletionProtection` is enabled, the cluster cannot be deleted
4445
+ # unless it is modified and `DeletionProtection` is disabled.
4446
+ # `DeletionProtection` protects clusters from being accidentally
4447
+ # deleted.
4448
+ # @return [Boolean]
4449
+ #
4401
4450
  # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/RestoreDBClusterToPointInTimeMessage AWS API Documentation
4402
4451
  #
4403
4452
  class RestoreDBClusterToPointInTimeMessage < Struct.new(
@@ -4410,7 +4459,8 @@ module Aws::DocDB
4410
4459
  :vpc_security_group_ids,
4411
4460
  :tags,
4412
4461
  :kms_key_id,
4413
- :enable_cloudwatch_logs_exports)
4462
+ :enable_cloudwatch_logs_exports,
4463
+ :deletion_protection)
4414
4464
  include Aws::Structure
4415
4465
  end
4416
4466
 
@@ -4425,6 +4475,66 @@ module Aws::DocDB
4425
4475
  include Aws::Structure
4426
4476
  end
4427
4477
 
4478
+ # @note When making an API call, you may pass StartDBClusterMessage
4479
+ # data as a hash:
4480
+ #
4481
+ # {
4482
+ # db_cluster_identifier: "String", # required
4483
+ # }
4484
+ #
4485
+ # @!attribute [rw] db_cluster_identifier
4486
+ # The identifier of the cluster to restart. Example:
4487
+ # `docdb-2019-05-28-15-24-52`
4488
+ # @return [String]
4489
+ #
4490
+ # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/StartDBClusterMessage AWS API Documentation
4491
+ #
4492
+ class StartDBClusterMessage < Struct.new(
4493
+ :db_cluster_identifier)
4494
+ include Aws::Structure
4495
+ end
4496
+
4497
+ # @!attribute [rw] db_cluster
4498
+ # Detailed information about a DB cluster.
4499
+ # @return [Types::DBCluster]
4500
+ #
4501
+ # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/StartDBClusterResult AWS API Documentation
4502
+ #
4503
+ class StartDBClusterResult < Struct.new(
4504
+ :db_cluster)
4505
+ include Aws::Structure
4506
+ end
4507
+
4508
+ # @note When making an API call, you may pass StopDBClusterMessage
4509
+ # data as a hash:
4510
+ #
4511
+ # {
4512
+ # db_cluster_identifier: "String", # required
4513
+ # }
4514
+ #
4515
+ # @!attribute [rw] db_cluster_identifier
4516
+ # The identifier of the cluster to stop. Example:
4517
+ # `docdb-2019-05-28-15-24-52`
4518
+ # @return [String]
4519
+ #
4520
+ # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/StopDBClusterMessage AWS API Documentation
4521
+ #
4522
+ class StopDBClusterMessage < Struct.new(
4523
+ :db_cluster_identifier)
4524
+ include Aws::Structure
4525
+ end
4526
+
4527
+ # @!attribute [rw] db_cluster
4528
+ # Detailed information about a DB cluster.
4529
+ # @return [Types::DBCluster]
4530
+ #
4531
+ # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/StopDBClusterResult AWS API Documentation
4532
+ #
4533
+ class StopDBClusterResult < Struct.new(
4534
+ :db_cluster)
4535
+ include Aws::Structure
4536
+ end
4537
+
4428
4538
  # Detailed information about a subnet.
4429
4539
  #
4430
4540
  # @!attribute [rw] subnet_identifier
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-docdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-17 00:00:00.000000000 Z
11
+ date: 2019-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.56.0
22
+ version: 3.58.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.56.0
32
+ version: 3.58.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement