aws-sdk-docdb 1.70.0 → 1.72.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-docdb/client.rb +121 -3
- data/lib/aws-sdk-docdb/client_api.rb +25 -1
- data/lib/aws-sdk-docdb/endpoints.rb +14 -0
- data/lib/aws-sdk-docdb/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-docdb/types.rb +77 -0
- data/lib/aws-sdk-docdb.rb +1 -1
- data/sig/client.rbs +14 -0
- data/sig/resource.rbs +1 -0
- data/sig/types.rbs +13 -0
- metadata +4 -4
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: c36748e3db9332b50c381430012ee22cab6c1935e904c551fa19a6823b790d01
         | 
| 4 | 
            +
              data.tar.gz: 49c5f1d371bb0157824e2051399d1ed353cf671667dea2ecb004105945cabd53
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: d5d5e84ebd966ce616ef89a2a0eeb8c546ad99993e0127f36b122fe3bf34d59d3070dfa4a3b7d6b8f2be4c4b9d1de28ec58545def9e1049eb51c288c5324aa44
         | 
| 7 | 
            +
              data.tar.gz: 24e21a179c6893606d256979ccdec899770203c2b81ebc80c80add69fceaa9de6128b88706f9a8ae6094a62188bac7c5fac83db9641e6bbe39d8b42f4a9ad7cc
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,6 +1,16 @@ | |
| 1 1 | 
             
            Unreleased Changes
         | 
| 2 2 | 
             
            ------------------
         | 
| 3 3 |  | 
| 4 | 
            +
            1.72.0 (2024-09-03)
         | 
| 5 | 
            +
            ------------------
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            1.71.0 (2024-08-15)
         | 
| 10 | 
            +
            ------------------
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            * Feature - This release adds Global Cluster Failover capability which enables you to change your global cluster's primary AWS region, the region that serves writes, during a regional outage. Performing a failover action preserves your Global Cluster setup.
         | 
| 13 | 
            +
             | 
| 4 14 | 
             
            1.70.0 (2024-07-02)
         | 
| 5 15 | 
             
            ------------------
         | 
| 6 16 |  | 
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1. | 
| 1 | 
            +
            1.72.0
         | 
    
        data/lib/aws-sdk-docdb/client.rb
    CHANGED
    
    | @@ -32,6 +32,7 @@ require 'aws-sdk-core/plugins/checksum_algorithm.rb' | |
| 32 32 | 
             
            require 'aws-sdk-core/plugins/request_compression.rb'
         | 
| 33 33 | 
             
            require 'aws-sdk-core/plugins/defaults_mode.rb'
         | 
| 34 34 | 
             
            require 'aws-sdk-core/plugins/recursion_detection.rb'
         | 
| 35 | 
            +
            require 'aws-sdk-core/plugins/telemetry.rb'
         | 
| 35 36 | 
             
            require 'aws-sdk-core/plugins/sign.rb'
         | 
| 36 37 | 
             
            require 'aws-sdk-core/plugins/protocols/query.rb'
         | 
| 37 38 | 
             
            require 'aws-sdk-docdb/plugins/cross_region_copying.rb'
         | 
| @@ -84,6 +85,7 @@ module Aws::DocDB | |
| 84 85 | 
             
                add_plugin(Aws::Plugins::RequestCompression)
         | 
| 85 86 | 
             
                add_plugin(Aws::Plugins::DefaultsMode)
         | 
| 86 87 | 
             
                add_plugin(Aws::Plugins::RecursionDetection)
         | 
| 88 | 
            +
                add_plugin(Aws::Plugins::Telemetry)
         | 
| 87 89 | 
             
                add_plugin(Aws::Plugins::Sign)
         | 
| 88 90 | 
             
                add_plugin(Aws::Plugins::Protocols::Query)
         | 
| 89 91 | 
             
                add_plugin(Aws::DocDB::Plugins::CrossRegionCopying)
         | 
| @@ -332,6 +334,16 @@ module Aws::DocDB | |
| 332 334 | 
             
                #     ** Please note ** When response stubbing is enabled, no HTTP
         | 
| 333 335 | 
             
                #     requests are made, and retries are disabled.
         | 
| 334 336 | 
             
                #
         | 
| 337 | 
            +
                #   @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
         | 
| 338 | 
            +
                #     Allows you to provide a telemetry provider, which is used to
         | 
| 339 | 
            +
                #     emit telemetry data. By default, uses `NoOpTelemetryProvider` which
         | 
| 340 | 
            +
                #     will not record or emit any telemetry data. The SDK supports the
         | 
| 341 | 
            +
                #     following telemetry providers:
         | 
| 342 | 
            +
                #
         | 
| 343 | 
            +
                #     * OpenTelemetry (OTel) - To use the OTel provider, install and require the
         | 
| 344 | 
            +
                #     `opentelemetry-sdk` gem and then, pass in an instance of a
         | 
| 345 | 
            +
                #     `Aws::Telemetry::OTelProvider` for telemetry provider.
         | 
| 346 | 
            +
                #
         | 
| 335 347 | 
             
                #   @option options [Aws::TokenProvider] :token_provider
         | 
| 336 348 | 
             
                #     A Bearer Token Provider. This can be an instance of any one of the
         | 
| 337 349 | 
             
                #     following classes:
         | 
| @@ -3664,6 +3676,107 @@ module Aws::DocDB | |
| 3664 3676 | 
             
                  req.send_request(options)
         | 
| 3665 3677 | 
             
                end
         | 
| 3666 3678 |  | 
| 3679 | 
            +
                # Promotes the specified secondary DB cluster to be the primary DB
         | 
| 3680 | 
            +
                # cluster in the global cluster when failing over a global cluster
         | 
| 3681 | 
            +
                # occurs.
         | 
| 3682 | 
            +
                #
         | 
| 3683 | 
            +
                # Use this operation to respond to an unplanned event, such as a
         | 
| 3684 | 
            +
                # regional disaster in the primary region. Failing over can result in a
         | 
| 3685 | 
            +
                # loss of write transaction data that wasn't replicated to the chosen
         | 
| 3686 | 
            +
                # secondary before the failover event occurred. However, the recovery
         | 
| 3687 | 
            +
                # process that promotes a DB instance on the chosen seconday DB cluster
         | 
| 3688 | 
            +
                # to be the primary writer DB instance guarantees that the data is in a
         | 
| 3689 | 
            +
                # transactionally consistent state.
         | 
| 3690 | 
            +
                #
         | 
| 3691 | 
            +
                # @option params [required, String] :global_cluster_identifier
         | 
| 3692 | 
            +
                #   The identifier of the Amazon DocumentDB global cluster to apply this
         | 
| 3693 | 
            +
                #   operation. The identifier is the unique key assigned by the user when
         | 
| 3694 | 
            +
                #   the cluster is created. In other words, it's the name of the global
         | 
| 3695 | 
            +
                #   cluster.
         | 
| 3696 | 
            +
                #
         | 
| 3697 | 
            +
                #   Constraints:
         | 
| 3698 | 
            +
                #
         | 
| 3699 | 
            +
                #   * Must match the identifier of an existing global cluster.
         | 
| 3700 | 
            +
                #
         | 
| 3701 | 
            +
                #   * Minimum length of 1. Maximum length of 255.
         | 
| 3702 | 
            +
                #
         | 
| 3703 | 
            +
                #   Pattern: `[A-Za-z][0-9A-Za-z-:._]*`
         | 
| 3704 | 
            +
                #
         | 
| 3705 | 
            +
                # @option params [required, String] :target_db_cluster_identifier
         | 
| 3706 | 
            +
                #   The identifier of the secondary Amazon DocumentDB cluster that you
         | 
| 3707 | 
            +
                #   want to promote to the primary for the global cluster. Use the Amazon
         | 
| 3708 | 
            +
                #   Resource Name (ARN) for the identifier so that Amazon DocumentDB can
         | 
| 3709 | 
            +
                #   locate the cluster in its Amazon Web Services region.
         | 
| 3710 | 
            +
                #
         | 
| 3711 | 
            +
                #   Constraints:
         | 
| 3712 | 
            +
                #
         | 
| 3713 | 
            +
                #   * Must match the identifier of an existing secondary cluster.
         | 
| 3714 | 
            +
                #
         | 
| 3715 | 
            +
                #   * Minimum length of 1. Maximum length of 255.
         | 
| 3716 | 
            +
                #
         | 
| 3717 | 
            +
                #   Pattern: `[A-Za-z][0-9A-Za-z-:._]*`
         | 
| 3718 | 
            +
                #
         | 
| 3719 | 
            +
                # @option params [Boolean] :allow_data_loss
         | 
| 3720 | 
            +
                #   Specifies whether to allow data loss for this global cluster
         | 
| 3721 | 
            +
                #   operation. Allowing data loss triggers a global failover operation.
         | 
| 3722 | 
            +
                #
         | 
| 3723 | 
            +
                #   If you don't specify `AllowDataLoss`, the global cluster operation
         | 
| 3724 | 
            +
                #   defaults to a switchover.
         | 
| 3725 | 
            +
                #
         | 
| 3726 | 
            +
                #   Constraints:
         | 
| 3727 | 
            +
                #
         | 
| 3728 | 
            +
                #   * Can't be specified together with the `Switchover` parameter.
         | 
| 3729 | 
            +
                #
         | 
| 3730 | 
            +
                #   ^
         | 
| 3731 | 
            +
                #
         | 
| 3732 | 
            +
                # @option params [Boolean] :switchover
         | 
| 3733 | 
            +
                #   Specifies whether to switch over this global database cluster.
         | 
| 3734 | 
            +
                #
         | 
| 3735 | 
            +
                #   Constraints:
         | 
| 3736 | 
            +
                #
         | 
| 3737 | 
            +
                #   * Can't be specified together with the `AllowDataLoss` parameter.
         | 
| 3738 | 
            +
                #
         | 
| 3739 | 
            +
                #   ^
         | 
| 3740 | 
            +
                #
         | 
| 3741 | 
            +
                # @return [Types::FailoverGlobalClusterResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
         | 
| 3742 | 
            +
                #
         | 
| 3743 | 
            +
                #   * {Types::FailoverGlobalClusterResult#global_cluster #global_cluster} => Types::GlobalCluster
         | 
| 3744 | 
            +
                #
         | 
| 3745 | 
            +
                # @example Request syntax with placeholder values
         | 
| 3746 | 
            +
                #
         | 
| 3747 | 
            +
                #   resp = client.failover_global_cluster({
         | 
| 3748 | 
            +
                #     global_cluster_identifier: "GlobalClusterIdentifier", # required
         | 
| 3749 | 
            +
                #     target_db_cluster_identifier: "DBClusterIdentifier", # required
         | 
| 3750 | 
            +
                #     allow_data_loss: false,
         | 
| 3751 | 
            +
                #     switchover: false,
         | 
| 3752 | 
            +
                #   })
         | 
| 3753 | 
            +
                #
         | 
| 3754 | 
            +
                # @example Response structure
         | 
| 3755 | 
            +
                #
         | 
| 3756 | 
            +
                #   resp.global_cluster.global_cluster_identifier #=> String
         | 
| 3757 | 
            +
                #   resp.global_cluster.global_cluster_resource_id #=> String
         | 
| 3758 | 
            +
                #   resp.global_cluster.global_cluster_arn #=> String
         | 
| 3759 | 
            +
                #   resp.global_cluster.status #=> String
         | 
| 3760 | 
            +
                #   resp.global_cluster.engine #=> String
         | 
| 3761 | 
            +
                #   resp.global_cluster.engine_version #=> String
         | 
| 3762 | 
            +
                #   resp.global_cluster.database_name #=> String
         | 
| 3763 | 
            +
                #   resp.global_cluster.storage_encrypted #=> Boolean
         | 
| 3764 | 
            +
                #   resp.global_cluster.deletion_protection #=> Boolean
         | 
| 3765 | 
            +
                #   resp.global_cluster.global_cluster_members #=> Array
         | 
| 3766 | 
            +
                #   resp.global_cluster.global_cluster_members[0].db_cluster_arn #=> String
         | 
| 3767 | 
            +
                #   resp.global_cluster.global_cluster_members[0].readers #=> Array
         | 
| 3768 | 
            +
                #   resp.global_cluster.global_cluster_members[0].readers[0] #=> String
         | 
| 3769 | 
            +
                #   resp.global_cluster.global_cluster_members[0].is_writer #=> Boolean
         | 
| 3770 | 
            +
                #
         | 
| 3771 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/FailoverGlobalCluster AWS API Documentation
         | 
| 3772 | 
            +
                #
         | 
| 3773 | 
            +
                # @overload failover_global_cluster(params = {})
         | 
| 3774 | 
            +
                # @param [Hash] params ({})
         | 
| 3775 | 
            +
                def failover_global_cluster(params = {}, options = {})
         | 
| 3776 | 
            +
                  req = build_request(:failover_global_cluster, params)
         | 
| 3777 | 
            +
                  req.send_request(options)
         | 
| 3778 | 
            +
                end
         | 
| 3779 | 
            +
             | 
| 3667 3780 | 
             
                # Lists all tags on an Amazon DocumentDB resource.
         | 
| 3668 3781 | 
             
                #
         | 
| 3669 3782 | 
             
                # @option params [required, String] :resource_name
         | 
| @@ -5435,7 +5548,7 @@ module Aws::DocDB | |
| 5435 5548 | 
             
                #
         | 
| 5436 5549 | 
             
                #   resp = client.switchover_global_cluster({
         | 
| 5437 5550 | 
             
                #     global_cluster_identifier: "GlobalClusterIdentifier", # required
         | 
| 5438 | 
            -
                #     target_db_cluster_identifier: " | 
| 5551 | 
            +
                #     target_db_cluster_identifier: "DBClusterIdentifier", # required
         | 
| 5439 5552 | 
             
                #   })
         | 
| 5440 5553 | 
             
                #
         | 
| 5441 5554 | 
             
                # @example Response structure
         | 
| @@ -5470,14 +5583,19 @@ module Aws::DocDB | |
| 5470 5583 | 
             
                # @api private
         | 
| 5471 5584 | 
             
                def build_request(operation_name, params = {})
         | 
| 5472 5585 | 
             
                  handlers = @handlers.for(operation_name)
         | 
| 5586 | 
            +
                  tracer = config.telemetry_provider.tracer_provider.tracer(
         | 
| 5587 | 
            +
                    Aws::Telemetry.module_to_tracer_name('Aws::DocDB')
         | 
| 5588 | 
            +
                  )
         | 
| 5473 5589 | 
             
                  context = Seahorse::Client::RequestContext.new(
         | 
| 5474 5590 | 
             
                    operation_name: operation_name,
         | 
| 5475 5591 | 
             
                    operation: config.api.operation(operation_name),
         | 
| 5476 5592 | 
             
                    client: self,
         | 
| 5477 5593 | 
             
                    params: params,
         | 
| 5478 | 
            -
                    config: config | 
| 5594 | 
            +
                    config: config,
         | 
| 5595 | 
            +
                    tracer: tracer
         | 
| 5596 | 
            +
                  )
         | 
| 5479 5597 | 
             
                  context[:gem_name] = 'aws-sdk-docdb'
         | 
| 5480 | 
            -
                  context[:gem_version] = '1. | 
| 5598 | 
            +
                  context[:gem_version] = '1.72.0'
         | 
| 5481 5599 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 5482 5600 | 
             
                end
         | 
| 5483 5601 |  | 
| @@ -53,6 +53,7 @@ module Aws::DocDB | |
| 53 53 | 
             
                CreateGlobalClusterResult = Shapes::StructureShape.new(name: 'CreateGlobalClusterResult')
         | 
| 54 54 | 
             
                DBCluster = Shapes::StructureShape.new(name: 'DBCluster')
         | 
| 55 55 | 
             
                DBClusterAlreadyExistsFault = Shapes::StructureShape.new(name: 'DBClusterAlreadyExistsFault', error: {"code"=>"DBClusterAlreadyExistsFault", "httpStatusCode"=>400, "senderFault"=>true})
         | 
| 56 | 
            +
                DBClusterIdentifier = Shapes::StringShape.new(name: 'DBClusterIdentifier')
         | 
| 56 57 | 
             
                DBClusterList = Shapes::ListShape.new(name: 'DBClusterList')
         | 
| 57 58 | 
             
                DBClusterMember = Shapes::StructureShape.new(name: 'DBClusterMember')
         | 
| 58 59 | 
             
                DBClusterMemberList = Shapes::ListShape.new(name: 'DBClusterMemberList')
         | 
| @@ -145,6 +146,8 @@ module Aws::DocDB | |
| 145 146 | 
             
                EventsMessage = Shapes::StructureShape.new(name: 'EventsMessage')
         | 
| 146 147 | 
             
                FailoverDBClusterMessage = Shapes::StructureShape.new(name: 'FailoverDBClusterMessage')
         | 
| 147 148 | 
             
                FailoverDBClusterResult = Shapes::StructureShape.new(name: 'FailoverDBClusterResult')
         | 
| 149 | 
            +
                FailoverGlobalClusterMessage = Shapes::StructureShape.new(name: 'FailoverGlobalClusterMessage')
         | 
| 150 | 
            +
                FailoverGlobalClusterResult = Shapes::StructureShape.new(name: 'FailoverGlobalClusterResult')
         | 
| 148 151 | 
             
                Filter = Shapes::StructureShape.new(name: 'Filter')
         | 
| 149 152 | 
             
                FilterList = Shapes::ListShape.new(name: 'FilterList')
         | 
| 150 153 | 
             
                FilterValueList = Shapes::ListShape.new(name: 'FilterValueList')
         | 
| @@ -870,6 +873,15 @@ module Aws::DocDB | |
| 870 873 | 
             
                FailoverDBClusterResult.add_member(:db_cluster, Shapes::ShapeRef.new(shape: DBCluster, location_name: "DBCluster"))
         | 
| 871 874 | 
             
                FailoverDBClusterResult.struct_class = Types::FailoverDBClusterResult
         | 
| 872 875 |  | 
| 876 | 
            +
                FailoverGlobalClusterMessage.add_member(:global_cluster_identifier, Shapes::ShapeRef.new(shape: GlobalClusterIdentifier, required: true, location_name: "GlobalClusterIdentifier"))
         | 
| 877 | 
            +
                FailoverGlobalClusterMessage.add_member(:target_db_cluster_identifier, Shapes::ShapeRef.new(shape: DBClusterIdentifier, required: true, location_name: "TargetDbClusterIdentifier"))
         | 
| 878 | 
            +
                FailoverGlobalClusterMessage.add_member(:allow_data_loss, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "AllowDataLoss"))
         | 
| 879 | 
            +
                FailoverGlobalClusterMessage.add_member(:switchover, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "Switchover"))
         | 
| 880 | 
            +
                FailoverGlobalClusterMessage.struct_class = Types::FailoverGlobalClusterMessage
         | 
| 881 | 
            +
             | 
| 882 | 
            +
                FailoverGlobalClusterResult.add_member(:global_cluster, Shapes::ShapeRef.new(shape: GlobalCluster, location_name: "GlobalCluster"))
         | 
| 883 | 
            +
                FailoverGlobalClusterResult.struct_class = Types::FailoverGlobalClusterResult
         | 
| 884 | 
            +
             | 
| 873 885 | 
             
                Filter.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
         | 
| 874 886 | 
             
                Filter.add_member(:values, Shapes::ShapeRef.new(shape: FilterValueList, required: true, location_name: "Values"))
         | 
| 875 887 | 
             
                Filter.struct_class = Types::Filter
         | 
| @@ -1219,7 +1231,7 @@ module Aws::DocDB | |
| 1219 1231 | 
             
                SubscriptionNotFoundFault.struct_class = Types::SubscriptionNotFoundFault
         | 
| 1220 1232 |  | 
| 1221 1233 | 
             
                SwitchoverGlobalClusterMessage.add_member(:global_cluster_identifier, Shapes::ShapeRef.new(shape: GlobalClusterIdentifier, required: true, location_name: "GlobalClusterIdentifier"))
         | 
| 1222 | 
            -
                SwitchoverGlobalClusterMessage.add_member(:target_db_cluster_identifier, Shapes::ShapeRef.new(shape:  | 
| 1234 | 
            +
                SwitchoverGlobalClusterMessage.add_member(:target_db_cluster_identifier, Shapes::ShapeRef.new(shape: DBClusterIdentifier, required: true, location_name: "TargetDbClusterIdentifier"))
         | 
| 1223 1235 | 
             
                SwitchoverGlobalClusterMessage.struct_class = Types::SwitchoverGlobalClusterMessage
         | 
| 1224 1236 |  | 
| 1225 1237 | 
             
                SwitchoverGlobalClusterResult.add_member(:global_cluster, Shapes::ShapeRef.new(shape: GlobalCluster, location_name: "GlobalCluster"))
         | 
| @@ -1745,6 +1757,18 @@ module Aws::DocDB | |
| 1745 1757 | 
             
                    o.errors << Shapes::ShapeRef.new(shape: InvalidDBInstanceStateFault)
         | 
| 1746 1758 | 
             
                  end)
         | 
| 1747 1759 |  | 
| 1760 | 
            +
                  api.add_operation(:failover_global_cluster, Seahorse::Model::Operation.new.tap do |o|
         | 
| 1761 | 
            +
                    o.name = "FailoverGlobalCluster"
         | 
| 1762 | 
            +
                    o.http_method = "POST"
         | 
| 1763 | 
            +
                    o.http_request_uri = "/"
         | 
| 1764 | 
            +
                    o.input = Shapes::ShapeRef.new(shape: FailoverGlobalClusterMessage)
         | 
| 1765 | 
            +
                    o.output = Shapes::ShapeRef.new(shape: FailoverGlobalClusterResult)
         | 
| 1766 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: GlobalClusterNotFoundFault)
         | 
| 1767 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: InvalidGlobalClusterStateFault)
         | 
| 1768 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: InvalidDBClusterStateFault)
         | 
| 1769 | 
            +
                    o.errors << Shapes::ShapeRef.new(shape: DBClusterNotFoundFault)
         | 
| 1770 | 
            +
                  end)
         | 
| 1771 | 
            +
             | 
| 1748 1772 | 
             
                  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
         | 
| 1749 1773 | 
             
                    o.name = "ListTagsForResource"
         | 
| 1750 1774 | 
             
                    o.http_method = "POST"
         | 
| @@ -516,6 +516,20 @@ module Aws::DocDB | |
| 516 516 | 
             
                  end
         | 
| 517 517 | 
             
                end
         | 
| 518 518 |  | 
| 519 | 
            +
                class FailoverGlobalCluster
         | 
| 520 | 
            +
                  def self.build(context)
         | 
| 521 | 
            +
                    unless context.config.regional_endpoint
         | 
| 522 | 
            +
                      endpoint = context.config.endpoint.to_s
         | 
| 523 | 
            +
                    end
         | 
| 524 | 
            +
                    Aws::DocDB::EndpointParameters.new(
         | 
| 525 | 
            +
                      region: context.config.region,
         | 
| 526 | 
            +
                      use_dual_stack: context.config.use_dualstack_endpoint,
         | 
| 527 | 
            +
                      use_fips: context.config.use_fips_endpoint,
         | 
| 528 | 
            +
                      endpoint: endpoint,
         | 
| 529 | 
            +
                    )
         | 
| 530 | 
            +
                  end
         | 
| 531 | 
            +
                end
         | 
| 532 | 
            +
             | 
| 519 533 | 
             
                class ListTagsForResource
         | 
| 520 534 | 
             
                  def self.build(context)
         | 
| 521 535 | 
             
                    unless context.config.regional_endpoint
         | 
| @@ -130,6 +130,8 @@ module Aws::DocDB | |
| 130 130 | 
             
                        Aws::DocDB::Endpoints::DescribePendingMaintenanceActions.build(context)
         | 
| 131 131 | 
             
                      when :failover_db_cluster
         | 
| 132 132 | 
             
                        Aws::DocDB::Endpoints::FailoverDBCluster.build(context)
         | 
| 133 | 
            +
                      when :failover_global_cluster
         | 
| 134 | 
            +
                        Aws::DocDB::Endpoints::FailoverGlobalCluster.build(context)
         | 
| 133 135 | 
             
                      when :list_tags_for_resource
         | 
| 134 136 | 
             
                        Aws::DocDB::Endpoints::ListTagsForResource.build(context)
         | 
| 135 137 | 
             
                      when :modify_db_cluster
         | 
    
        data/lib/aws-sdk-docdb/types.rb
    CHANGED
    
    | @@ -3696,6 +3696,83 @@ module Aws::DocDB | |
| 3696 3696 | 
             
                  include Aws::Structure
         | 
| 3697 3697 | 
             
                end
         | 
| 3698 3698 |  | 
| 3699 | 
            +
                # @!attribute [rw] global_cluster_identifier
         | 
| 3700 | 
            +
                #   The identifier of the Amazon DocumentDB global cluster to apply this
         | 
| 3701 | 
            +
                #   operation. The identifier is the unique key assigned by the user
         | 
| 3702 | 
            +
                #   when the cluster is created. In other words, it's the name of the
         | 
| 3703 | 
            +
                #   global cluster.
         | 
| 3704 | 
            +
                #
         | 
| 3705 | 
            +
                #   Constraints:
         | 
| 3706 | 
            +
                #
         | 
| 3707 | 
            +
                #   * Must match the identifier of an existing global cluster.
         | 
| 3708 | 
            +
                #
         | 
| 3709 | 
            +
                #   * Minimum length of 1. Maximum length of 255.
         | 
| 3710 | 
            +
                #
         | 
| 3711 | 
            +
                #   Pattern: `[A-Za-z][0-9A-Za-z-:._]*`
         | 
| 3712 | 
            +
                #   @return [String]
         | 
| 3713 | 
            +
                #
         | 
| 3714 | 
            +
                # @!attribute [rw] target_db_cluster_identifier
         | 
| 3715 | 
            +
                #   The identifier of the secondary Amazon DocumentDB cluster that you
         | 
| 3716 | 
            +
                #   want to promote to the primary for the global cluster. Use the
         | 
| 3717 | 
            +
                #   Amazon Resource Name (ARN) for the identifier so that Amazon
         | 
| 3718 | 
            +
                #   DocumentDB can locate the cluster in its Amazon Web Services region.
         | 
| 3719 | 
            +
                #
         | 
| 3720 | 
            +
                #   Constraints:
         | 
| 3721 | 
            +
                #
         | 
| 3722 | 
            +
                #   * Must match the identifier of an existing secondary cluster.
         | 
| 3723 | 
            +
                #
         | 
| 3724 | 
            +
                #   * Minimum length of 1. Maximum length of 255.
         | 
| 3725 | 
            +
                #
         | 
| 3726 | 
            +
                #   Pattern: `[A-Za-z][0-9A-Za-z-:._]*`
         | 
| 3727 | 
            +
                #   @return [String]
         | 
| 3728 | 
            +
                #
         | 
| 3729 | 
            +
                # @!attribute [rw] allow_data_loss
         | 
| 3730 | 
            +
                #   Specifies whether to allow data loss for this global cluster
         | 
| 3731 | 
            +
                #   operation. Allowing data loss triggers a global failover operation.
         | 
| 3732 | 
            +
                #
         | 
| 3733 | 
            +
                #   If you don't specify `AllowDataLoss`, the global cluster operation
         | 
| 3734 | 
            +
                #   defaults to a switchover.
         | 
| 3735 | 
            +
                #
         | 
| 3736 | 
            +
                #   Constraints:
         | 
| 3737 | 
            +
                #
         | 
| 3738 | 
            +
                #   * Can't be specified together with the `Switchover` parameter.
         | 
| 3739 | 
            +
                #
         | 
| 3740 | 
            +
                #   ^
         | 
| 3741 | 
            +
                #   @return [Boolean]
         | 
| 3742 | 
            +
                #
         | 
| 3743 | 
            +
                # @!attribute [rw] switchover
         | 
| 3744 | 
            +
                #   Specifies whether to switch over this global database cluster.
         | 
| 3745 | 
            +
                #
         | 
| 3746 | 
            +
                #   Constraints:
         | 
| 3747 | 
            +
                #
         | 
| 3748 | 
            +
                #   * Can't be specified together with the `AllowDataLoss` parameter.
         | 
| 3749 | 
            +
                #
         | 
| 3750 | 
            +
                #   ^
         | 
| 3751 | 
            +
                #   @return [Boolean]
         | 
| 3752 | 
            +
                #
         | 
| 3753 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/FailoverGlobalClusterMessage AWS API Documentation
         | 
| 3754 | 
            +
                #
         | 
| 3755 | 
            +
                class FailoverGlobalClusterMessage < Struct.new(
         | 
| 3756 | 
            +
                  :global_cluster_identifier,
         | 
| 3757 | 
            +
                  :target_db_cluster_identifier,
         | 
| 3758 | 
            +
                  :allow_data_loss,
         | 
| 3759 | 
            +
                  :switchover)
         | 
| 3760 | 
            +
                  SENSITIVE = []
         | 
| 3761 | 
            +
                  include Aws::Structure
         | 
| 3762 | 
            +
                end
         | 
| 3763 | 
            +
             | 
| 3764 | 
            +
                # @!attribute [rw] global_cluster
         | 
| 3765 | 
            +
                #   A data type representing an Amazon DocumentDB global cluster.
         | 
| 3766 | 
            +
                #   @return [Types::GlobalCluster]
         | 
| 3767 | 
            +
                #
         | 
| 3768 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/FailoverGlobalClusterResult AWS API Documentation
         | 
| 3769 | 
            +
                #
         | 
| 3770 | 
            +
                class FailoverGlobalClusterResult < Struct.new(
         | 
| 3771 | 
            +
                  :global_cluster)
         | 
| 3772 | 
            +
                  SENSITIVE = []
         | 
| 3773 | 
            +
                  include Aws::Structure
         | 
| 3774 | 
            +
                end
         | 
| 3775 | 
            +
             | 
| 3699 3776 | 
             
                # A named set of filter values, used to return a more specific list of
         | 
| 3700 3777 | 
             
                # results. You can use a filter to match a set of resources by specific
         | 
| 3701 3778 | 
             
                # criteria, such as IDs.
         | 
    
        data/lib/aws-sdk-docdb.rb
    CHANGED
    
    
    
        data/sig/client.rbs
    CHANGED
    
    | @@ -50,6 +50,7 @@ module Aws | |
| 50 50 | 
             
                                  ?session_token: String,
         | 
| 51 51 | 
             
                                  ?sigv4a_signing_region_set: Array[String],
         | 
| 52 52 | 
             
                                  ?stub_responses: untyped,
         | 
| 53 | 
            +
                                  ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
         | 
| 53 54 | 
             
                                  ?token_provider: untyped,
         | 
| 54 55 | 
             
                                  ?use_dualstack_endpoint: bool,
         | 
| 55 56 | 
             
                                  ?use_fips_endpoint: bool,
         | 
| @@ -685,6 +686,19 @@ module Aws | |
| 685 686 | 
             
                                           ) -> _FailoverDBClusterResponseSuccess
         | 
| 686 687 | 
             
                                         | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _FailoverDBClusterResponseSuccess
         | 
| 687 688 |  | 
| 689 | 
            +
                  interface _FailoverGlobalClusterResponseSuccess
         | 
| 690 | 
            +
                    include ::Seahorse::Client::_ResponseSuccess[Types::FailoverGlobalClusterResult]
         | 
| 691 | 
            +
                    def global_cluster: () -> Types::GlobalCluster
         | 
| 692 | 
            +
                  end
         | 
| 693 | 
            +
                  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DocDB/Client.html#failover_global_cluster-instance_method
         | 
| 694 | 
            +
                  def failover_global_cluster: (
         | 
| 695 | 
            +
                                                 global_cluster_identifier: ::String,
         | 
| 696 | 
            +
                                                 target_db_cluster_identifier: ::String,
         | 
| 697 | 
            +
                                                 ?allow_data_loss: bool,
         | 
| 698 | 
            +
                                                 ?switchover: bool
         | 
| 699 | 
            +
                                               ) -> _FailoverGlobalClusterResponseSuccess
         | 
| 700 | 
            +
                                             | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _FailoverGlobalClusterResponseSuccess
         | 
| 701 | 
            +
             | 
| 688 702 | 
             
                  interface _ListTagsForResourceResponseSuccess
         | 
| 689 703 | 
             
                    include ::Seahorse::Client::_ResponseSuccess[Types::TagListMessage]
         | 
| 690 704 | 
             
                    def tag_list: () -> ::Array[Types::Tag]
         | 
    
        data/sig/resource.rbs
    CHANGED
    
    | @@ -50,6 +50,7 @@ module Aws | |
| 50 50 | 
             
                                    ?session_token: String,
         | 
| 51 51 | 
             
                                    ?sigv4a_signing_region_set: Array[String],
         | 
| 52 52 | 
             
                                    ?stub_responses: untyped,
         | 
| 53 | 
            +
                                    ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
         | 
| 53 54 | 
             
                                    ?token_provider: untyped,
         | 
| 54 55 | 
             
                                    ?use_dualstack_endpoint: bool,
         | 
| 55 56 | 
             
                                    ?use_fips_endpoint: bool,
         | 
    
        data/sig/types.rbs
    CHANGED
    
    | @@ -783,6 +783,19 @@ module Aws::DocDB | |
| 783 783 | 
             
                  SENSITIVE: []
         | 
| 784 784 | 
             
                end
         | 
| 785 785 |  | 
| 786 | 
            +
                class FailoverGlobalClusterMessage
         | 
| 787 | 
            +
                  attr_accessor global_cluster_identifier: ::String
         | 
| 788 | 
            +
                  attr_accessor target_db_cluster_identifier: ::String
         | 
| 789 | 
            +
                  attr_accessor allow_data_loss: bool
         | 
| 790 | 
            +
                  attr_accessor switchover: bool
         | 
| 791 | 
            +
                  SENSITIVE: []
         | 
| 792 | 
            +
                end
         | 
| 793 | 
            +
             | 
| 794 | 
            +
                class FailoverGlobalClusterResult
         | 
| 795 | 
            +
                  attr_accessor global_cluster: Types::GlobalCluster
         | 
| 796 | 
            +
                  SENSITIVE: []
         | 
| 797 | 
            +
                end
         | 
| 798 | 
            +
             | 
| 786 799 | 
             
                class Filter
         | 
| 787 800 | 
             
                  attr_accessor name: ::String
         | 
| 788 801 | 
             
                  attr_accessor values: ::Array[::String]
         | 
    
        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. | 
| 4 | 
            +
              version: 1.72.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: 2024- | 
| 11 | 
            +
            date: 2024-09-03 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. | 
| 22 | 
            +
                    version: 3.203.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. | 
| 32 | 
            +
                    version: 3.203.0
         | 
| 33 33 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 34 34 | 
             
              name: aws-sigv4
         | 
| 35 35 | 
             
              requirement: !ruby/object:Gem::Requirement
         |