aws-sdk-directoryservice 1.50.0 → 1.52.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-directoryservice/client.rb +138 -3
- data/lib/aws-sdk-directoryservice/client_api.rb +163 -0
- data/lib/aws-sdk-directoryservice/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-directoryservice/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-directoryservice/endpoints.rb +953 -0
- data/lib/aws-sdk-directoryservice/errors.rb +21 -0
- data/lib/aws-sdk-directoryservice/plugins/endpoints.rb +202 -0
- data/lib/aws-sdk-directoryservice/types.rb +216 -1
- data/lib/aws-sdk-directoryservice.rb +5 -1
- metadata +8 -4
| @@ -37,6 +37,7 @@ module Aws::DirectoryService | |
| 37 37 | 
             
              # * {DirectoryAlreadyInRegionException}
         | 
| 38 38 | 
             
              # * {DirectoryAlreadySharedException}
         | 
| 39 39 | 
             
              # * {DirectoryDoesNotExistException}
         | 
| 40 | 
            +
              # * {DirectoryInDesiredStateException}
         | 
| 40 41 | 
             
              # * {DirectoryLimitExceededException}
         | 
| 41 42 | 
             
              # * {DirectoryNotSharedException}
         | 
| 42 43 | 
             
              # * {DirectoryUnavailableException}
         | 
| @@ -270,6 +271,26 @@ module Aws::DirectoryService | |
| 270 271 | 
             
                  end
         | 
| 271 272 | 
             
                end
         | 
| 272 273 |  | 
| 274 | 
            +
                class DirectoryInDesiredStateException < ServiceError
         | 
| 275 | 
            +
             | 
| 276 | 
            +
                  # @param [Seahorse::Client::RequestContext] context
         | 
| 277 | 
            +
                  # @param [String] message
         | 
| 278 | 
            +
                  # @param [Aws::DirectoryService::Types::DirectoryInDesiredStateException] data
         | 
| 279 | 
            +
                  def initialize(context, message, data = Aws::EmptyStructure.new)
         | 
| 280 | 
            +
                    super(context, message, data)
         | 
| 281 | 
            +
                  end
         | 
| 282 | 
            +
             | 
| 283 | 
            +
                  # @return [String]
         | 
| 284 | 
            +
                  def message
         | 
| 285 | 
            +
                    @message || @data[:message]
         | 
| 286 | 
            +
                  end
         | 
| 287 | 
            +
             | 
| 288 | 
            +
                  # @return [String]
         | 
| 289 | 
            +
                  def request_id
         | 
| 290 | 
            +
                    @data[:request_id]
         | 
| 291 | 
            +
                  end
         | 
| 292 | 
            +
                end
         | 
| 293 | 
            +
             | 
| 273 294 | 
             
                class DirectoryLimitExceededException < ServiceError
         | 
| 274 295 |  | 
| 275 296 | 
             
                  # @param [Seahorse::Client::RequestContext] context
         | 
| @@ -0,0 +1,202 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            # WARNING ABOUT GENERATED CODE
         | 
| 4 | 
            +
            #
         | 
| 5 | 
            +
            # This file is generated. See the contributing guide for more information:
         | 
| 6 | 
            +
            # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
         | 
| 7 | 
            +
            #
         | 
| 8 | 
            +
            # WARNING ABOUT GENERATED CODE
         | 
| 9 | 
            +
             | 
| 10 | 
            +
             | 
| 11 | 
            +
            module Aws::DirectoryService
         | 
| 12 | 
            +
              module Plugins
         | 
| 13 | 
            +
                class Endpoints < Seahorse::Client::Plugin
         | 
| 14 | 
            +
                  option(
         | 
| 15 | 
            +
                    :endpoint_provider,
         | 
| 16 | 
            +
                    doc_type: 'Aws::DirectoryService::EndpointProvider',
         | 
| 17 | 
            +
                    docstring: 'The endpoint provider used to resolve endpoints. Any '\
         | 
| 18 | 
            +
                               'object that responds to `#resolve_endpoint(parameters)` '\
         | 
| 19 | 
            +
                               'where `parameters` is a Struct similar to '\
         | 
| 20 | 
            +
                               '`Aws::DirectoryService::EndpointParameters`'
         | 
| 21 | 
            +
                  ) do |cfg|
         | 
| 22 | 
            +
                    Aws::DirectoryService::EndpointProvider.new
         | 
| 23 | 
            +
                  end
         | 
| 24 | 
            +
             | 
| 25 | 
            +
                  # @api private
         | 
| 26 | 
            +
                  class Handler < Seahorse::Client::Handler
         | 
| 27 | 
            +
                    def call(context)
         | 
| 28 | 
            +
                      # If endpoint was discovered, do not resolve or apply the endpoint.
         | 
| 29 | 
            +
                      unless context[:discovered_endpoint]
         | 
| 30 | 
            +
                        params = parameters_for_operation(context)
         | 
| 31 | 
            +
                        endpoint = context.config.endpoint_provider.resolve_endpoint(params)
         | 
| 32 | 
            +
             | 
| 33 | 
            +
                        context.http_request.endpoint = endpoint.url
         | 
| 34 | 
            +
                        apply_endpoint_headers(context, endpoint.headers)
         | 
| 35 | 
            +
                      end
         | 
| 36 | 
            +
             | 
| 37 | 
            +
                      context[:endpoint_params] = params
         | 
| 38 | 
            +
                      context[:auth_scheme] =
         | 
| 39 | 
            +
                        Aws::Endpoints.resolve_auth_scheme(context, endpoint)
         | 
| 40 | 
            +
             | 
| 41 | 
            +
                      @handler.call(context)
         | 
| 42 | 
            +
                    end
         | 
| 43 | 
            +
             | 
| 44 | 
            +
                    private
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                    def apply_endpoint_headers(context, headers)
         | 
| 47 | 
            +
                      headers.each do |key, values|
         | 
| 48 | 
            +
                        value = values
         | 
| 49 | 
            +
                          .compact
         | 
| 50 | 
            +
                          .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
         | 
| 51 | 
            +
                          .join(',')
         | 
| 52 | 
            +
             | 
| 53 | 
            +
                        context.http_request.headers[key] = value
         | 
| 54 | 
            +
                      end
         | 
| 55 | 
            +
                    end
         | 
| 56 | 
            +
             | 
| 57 | 
            +
                    def parameters_for_operation(context)
         | 
| 58 | 
            +
                      case context.operation_name
         | 
| 59 | 
            +
                      when :accept_shared_directory
         | 
| 60 | 
            +
                        Aws::DirectoryService::Endpoints::AcceptSharedDirectory.build(context)
         | 
| 61 | 
            +
                      when :add_ip_routes
         | 
| 62 | 
            +
                        Aws::DirectoryService::Endpoints::AddIpRoutes.build(context)
         | 
| 63 | 
            +
                      when :add_region
         | 
| 64 | 
            +
                        Aws::DirectoryService::Endpoints::AddRegion.build(context)
         | 
| 65 | 
            +
                      when :add_tags_to_resource
         | 
| 66 | 
            +
                        Aws::DirectoryService::Endpoints::AddTagsToResource.build(context)
         | 
| 67 | 
            +
                      when :cancel_schema_extension
         | 
| 68 | 
            +
                        Aws::DirectoryService::Endpoints::CancelSchemaExtension.build(context)
         | 
| 69 | 
            +
                      when :connect_directory
         | 
| 70 | 
            +
                        Aws::DirectoryService::Endpoints::ConnectDirectory.build(context)
         | 
| 71 | 
            +
                      when :create_alias
         | 
| 72 | 
            +
                        Aws::DirectoryService::Endpoints::CreateAlias.build(context)
         | 
| 73 | 
            +
                      when :create_computer
         | 
| 74 | 
            +
                        Aws::DirectoryService::Endpoints::CreateComputer.build(context)
         | 
| 75 | 
            +
                      when :create_conditional_forwarder
         | 
| 76 | 
            +
                        Aws::DirectoryService::Endpoints::CreateConditionalForwarder.build(context)
         | 
| 77 | 
            +
                      when :create_directory
         | 
| 78 | 
            +
                        Aws::DirectoryService::Endpoints::CreateDirectory.build(context)
         | 
| 79 | 
            +
                      when :create_log_subscription
         | 
| 80 | 
            +
                        Aws::DirectoryService::Endpoints::CreateLogSubscription.build(context)
         | 
| 81 | 
            +
                      when :create_microsoft_ad
         | 
| 82 | 
            +
                        Aws::DirectoryService::Endpoints::CreateMicrosoftAD.build(context)
         | 
| 83 | 
            +
                      when :create_snapshot
         | 
| 84 | 
            +
                        Aws::DirectoryService::Endpoints::CreateSnapshot.build(context)
         | 
| 85 | 
            +
                      when :create_trust
         | 
| 86 | 
            +
                        Aws::DirectoryService::Endpoints::CreateTrust.build(context)
         | 
| 87 | 
            +
                      when :delete_conditional_forwarder
         | 
| 88 | 
            +
                        Aws::DirectoryService::Endpoints::DeleteConditionalForwarder.build(context)
         | 
| 89 | 
            +
                      when :delete_directory
         | 
| 90 | 
            +
                        Aws::DirectoryService::Endpoints::DeleteDirectory.build(context)
         | 
| 91 | 
            +
                      when :delete_log_subscription
         | 
| 92 | 
            +
                        Aws::DirectoryService::Endpoints::DeleteLogSubscription.build(context)
         | 
| 93 | 
            +
                      when :delete_snapshot
         | 
| 94 | 
            +
                        Aws::DirectoryService::Endpoints::DeleteSnapshot.build(context)
         | 
| 95 | 
            +
                      when :delete_trust
         | 
| 96 | 
            +
                        Aws::DirectoryService::Endpoints::DeleteTrust.build(context)
         | 
| 97 | 
            +
                      when :deregister_certificate
         | 
| 98 | 
            +
                        Aws::DirectoryService::Endpoints::DeregisterCertificate.build(context)
         | 
| 99 | 
            +
                      when :deregister_event_topic
         | 
| 100 | 
            +
                        Aws::DirectoryService::Endpoints::DeregisterEventTopic.build(context)
         | 
| 101 | 
            +
                      when :describe_certificate
         | 
| 102 | 
            +
                        Aws::DirectoryService::Endpoints::DescribeCertificate.build(context)
         | 
| 103 | 
            +
                      when :describe_client_authentication_settings
         | 
| 104 | 
            +
                        Aws::DirectoryService::Endpoints::DescribeClientAuthenticationSettings.build(context)
         | 
| 105 | 
            +
                      when :describe_conditional_forwarders
         | 
| 106 | 
            +
                        Aws::DirectoryService::Endpoints::DescribeConditionalForwarders.build(context)
         | 
| 107 | 
            +
                      when :describe_directories
         | 
| 108 | 
            +
                        Aws::DirectoryService::Endpoints::DescribeDirectories.build(context)
         | 
| 109 | 
            +
                      when :describe_domain_controllers
         | 
| 110 | 
            +
                        Aws::DirectoryService::Endpoints::DescribeDomainControllers.build(context)
         | 
| 111 | 
            +
                      when :describe_event_topics
         | 
| 112 | 
            +
                        Aws::DirectoryService::Endpoints::DescribeEventTopics.build(context)
         | 
| 113 | 
            +
                      when :describe_ldaps_settings
         | 
| 114 | 
            +
                        Aws::DirectoryService::Endpoints::DescribeLDAPSSettings.build(context)
         | 
| 115 | 
            +
                      when :describe_regions
         | 
| 116 | 
            +
                        Aws::DirectoryService::Endpoints::DescribeRegions.build(context)
         | 
| 117 | 
            +
                      when :describe_settings
         | 
| 118 | 
            +
                        Aws::DirectoryService::Endpoints::DescribeSettings.build(context)
         | 
| 119 | 
            +
                      when :describe_shared_directories
         | 
| 120 | 
            +
                        Aws::DirectoryService::Endpoints::DescribeSharedDirectories.build(context)
         | 
| 121 | 
            +
                      when :describe_snapshots
         | 
| 122 | 
            +
                        Aws::DirectoryService::Endpoints::DescribeSnapshots.build(context)
         | 
| 123 | 
            +
                      when :describe_trusts
         | 
| 124 | 
            +
                        Aws::DirectoryService::Endpoints::DescribeTrusts.build(context)
         | 
| 125 | 
            +
                      when :describe_update_directory
         | 
| 126 | 
            +
                        Aws::DirectoryService::Endpoints::DescribeUpdateDirectory.build(context)
         | 
| 127 | 
            +
                      when :disable_client_authentication
         | 
| 128 | 
            +
                        Aws::DirectoryService::Endpoints::DisableClientAuthentication.build(context)
         | 
| 129 | 
            +
                      when :disable_ldaps
         | 
| 130 | 
            +
                        Aws::DirectoryService::Endpoints::DisableLDAPS.build(context)
         | 
| 131 | 
            +
                      when :disable_radius
         | 
| 132 | 
            +
                        Aws::DirectoryService::Endpoints::DisableRadius.build(context)
         | 
| 133 | 
            +
                      when :disable_sso
         | 
| 134 | 
            +
                        Aws::DirectoryService::Endpoints::DisableSso.build(context)
         | 
| 135 | 
            +
                      when :enable_client_authentication
         | 
| 136 | 
            +
                        Aws::DirectoryService::Endpoints::EnableClientAuthentication.build(context)
         | 
| 137 | 
            +
                      when :enable_ldaps
         | 
| 138 | 
            +
                        Aws::DirectoryService::Endpoints::EnableLDAPS.build(context)
         | 
| 139 | 
            +
                      when :enable_radius
         | 
| 140 | 
            +
                        Aws::DirectoryService::Endpoints::EnableRadius.build(context)
         | 
| 141 | 
            +
                      when :enable_sso
         | 
| 142 | 
            +
                        Aws::DirectoryService::Endpoints::EnableSso.build(context)
         | 
| 143 | 
            +
                      when :get_directory_limits
         | 
| 144 | 
            +
                        Aws::DirectoryService::Endpoints::GetDirectoryLimits.build(context)
         | 
| 145 | 
            +
                      when :get_snapshot_limits
         | 
| 146 | 
            +
                        Aws::DirectoryService::Endpoints::GetSnapshotLimits.build(context)
         | 
| 147 | 
            +
                      when :list_certificates
         | 
| 148 | 
            +
                        Aws::DirectoryService::Endpoints::ListCertificates.build(context)
         | 
| 149 | 
            +
                      when :list_ip_routes
         | 
| 150 | 
            +
                        Aws::DirectoryService::Endpoints::ListIpRoutes.build(context)
         | 
| 151 | 
            +
                      when :list_log_subscriptions
         | 
| 152 | 
            +
                        Aws::DirectoryService::Endpoints::ListLogSubscriptions.build(context)
         | 
| 153 | 
            +
                      when :list_schema_extensions
         | 
| 154 | 
            +
                        Aws::DirectoryService::Endpoints::ListSchemaExtensions.build(context)
         | 
| 155 | 
            +
                      when :list_tags_for_resource
         | 
| 156 | 
            +
                        Aws::DirectoryService::Endpoints::ListTagsForResource.build(context)
         | 
| 157 | 
            +
                      when :register_certificate
         | 
| 158 | 
            +
                        Aws::DirectoryService::Endpoints::RegisterCertificate.build(context)
         | 
| 159 | 
            +
                      when :register_event_topic
         | 
| 160 | 
            +
                        Aws::DirectoryService::Endpoints::RegisterEventTopic.build(context)
         | 
| 161 | 
            +
                      when :reject_shared_directory
         | 
| 162 | 
            +
                        Aws::DirectoryService::Endpoints::RejectSharedDirectory.build(context)
         | 
| 163 | 
            +
                      when :remove_ip_routes
         | 
| 164 | 
            +
                        Aws::DirectoryService::Endpoints::RemoveIpRoutes.build(context)
         | 
| 165 | 
            +
                      when :remove_region
         | 
| 166 | 
            +
                        Aws::DirectoryService::Endpoints::RemoveRegion.build(context)
         | 
| 167 | 
            +
                      when :remove_tags_from_resource
         | 
| 168 | 
            +
                        Aws::DirectoryService::Endpoints::RemoveTagsFromResource.build(context)
         | 
| 169 | 
            +
                      when :reset_user_password
         | 
| 170 | 
            +
                        Aws::DirectoryService::Endpoints::ResetUserPassword.build(context)
         | 
| 171 | 
            +
                      when :restore_from_snapshot
         | 
| 172 | 
            +
                        Aws::DirectoryService::Endpoints::RestoreFromSnapshot.build(context)
         | 
| 173 | 
            +
                      when :share_directory
         | 
| 174 | 
            +
                        Aws::DirectoryService::Endpoints::ShareDirectory.build(context)
         | 
| 175 | 
            +
                      when :start_schema_extension
         | 
| 176 | 
            +
                        Aws::DirectoryService::Endpoints::StartSchemaExtension.build(context)
         | 
| 177 | 
            +
                      when :unshare_directory
         | 
| 178 | 
            +
                        Aws::DirectoryService::Endpoints::UnshareDirectory.build(context)
         | 
| 179 | 
            +
                      when :update_conditional_forwarder
         | 
| 180 | 
            +
                        Aws::DirectoryService::Endpoints::UpdateConditionalForwarder.build(context)
         | 
| 181 | 
            +
                      when :update_directory_setup
         | 
| 182 | 
            +
                        Aws::DirectoryService::Endpoints::UpdateDirectorySetup.build(context)
         | 
| 183 | 
            +
                      when :update_number_of_domain_controllers
         | 
| 184 | 
            +
                        Aws::DirectoryService::Endpoints::UpdateNumberOfDomainControllers.build(context)
         | 
| 185 | 
            +
                      when :update_radius
         | 
| 186 | 
            +
                        Aws::DirectoryService::Endpoints::UpdateRadius.build(context)
         | 
| 187 | 
            +
                      when :update_settings
         | 
| 188 | 
            +
                        Aws::DirectoryService::Endpoints::UpdateSettings.build(context)
         | 
| 189 | 
            +
                      when :update_trust
         | 
| 190 | 
            +
                        Aws::DirectoryService::Endpoints::UpdateTrust.build(context)
         | 
| 191 | 
            +
                      when :verify_trust
         | 
| 192 | 
            +
                        Aws::DirectoryService::Endpoints::VerifyTrust.build(context)
         | 
| 193 | 
            +
                      end
         | 
| 194 | 
            +
                    end
         | 
| 195 | 
            +
                  end
         | 
| 196 | 
            +
             | 
| 197 | 
            +
                  def add_handlers(handlers, _config)
         | 
| 198 | 
            +
                    handlers.add(Handler, step: :build, priority: 75)
         | 
| 199 | 
            +
                  end
         | 
| 200 | 
            +
                end
         | 
| 201 | 
            +
              end
         | 
| 202 | 
            +
            end
         | 
| @@ -2156,6 +2156,64 @@ module Aws::DirectoryService | |
| 2156 2156 | 
             
                  include Aws::Structure
         | 
| 2157 2157 | 
             
                end
         | 
| 2158 2158 |  | 
| 2159 | 
            +
                # @note When making an API call, you may pass DescribeUpdateDirectoryRequest
         | 
| 2160 | 
            +
                #   data as a hash:
         | 
| 2161 | 
            +
                #
         | 
| 2162 | 
            +
                #       {
         | 
| 2163 | 
            +
                #         directory_id: "DirectoryId", # required
         | 
| 2164 | 
            +
                #         update_type: "OS", # required, accepts OS
         | 
| 2165 | 
            +
                #         region_name: "RegionName",
         | 
| 2166 | 
            +
                #         next_token: "NextToken",
         | 
| 2167 | 
            +
                #       }
         | 
| 2168 | 
            +
                #
         | 
| 2169 | 
            +
                # @!attribute [rw] directory_id
         | 
| 2170 | 
            +
                #   The unique identifier of the directory.
         | 
| 2171 | 
            +
                #   @return [String]
         | 
| 2172 | 
            +
                #
         | 
| 2173 | 
            +
                # @!attribute [rw] update_type
         | 
| 2174 | 
            +
                #   The type of updates you want to describe for the directory.
         | 
| 2175 | 
            +
                #   @return [String]
         | 
| 2176 | 
            +
                #
         | 
| 2177 | 
            +
                # @!attribute [rw] region_name
         | 
| 2178 | 
            +
                #   The name of the Region.
         | 
| 2179 | 
            +
                #   @return [String]
         | 
| 2180 | 
            +
                #
         | 
| 2181 | 
            +
                # @!attribute [rw] next_token
         | 
| 2182 | 
            +
                #   The `DescribeUpdateDirectoryResult`. NextToken value from a previous
         | 
| 2183 | 
            +
                #   call to DescribeUpdateDirectory. Pass null if this is the first
         | 
| 2184 | 
            +
                #   call.
         | 
| 2185 | 
            +
                #   @return [String]
         | 
| 2186 | 
            +
                #
         | 
| 2187 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeUpdateDirectoryRequest AWS API Documentation
         | 
| 2188 | 
            +
                #
         | 
| 2189 | 
            +
                class DescribeUpdateDirectoryRequest < Struct.new(
         | 
| 2190 | 
            +
                  :directory_id,
         | 
| 2191 | 
            +
                  :update_type,
         | 
| 2192 | 
            +
                  :region_name,
         | 
| 2193 | 
            +
                  :next_token)
         | 
| 2194 | 
            +
                  SENSITIVE = []
         | 
| 2195 | 
            +
                  include Aws::Structure
         | 
| 2196 | 
            +
                end
         | 
| 2197 | 
            +
             | 
| 2198 | 
            +
                # @!attribute [rw] update_activities
         | 
| 2199 | 
            +
                #   The list of update activities on a directory for the requested
         | 
| 2200 | 
            +
                #   update type.
         | 
| 2201 | 
            +
                #   @return [Array<Types::UpdateInfoEntry>]
         | 
| 2202 | 
            +
                #
         | 
| 2203 | 
            +
                # @!attribute [rw] next_token
         | 
| 2204 | 
            +
                #   If not null, more results are available. Pass this value for the
         | 
| 2205 | 
            +
                #   `NextToken` parameter.
         | 
| 2206 | 
            +
                #   @return [String]
         | 
| 2207 | 
            +
                #
         | 
| 2208 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeUpdateDirectoryResult AWS API Documentation
         | 
| 2209 | 
            +
                #
         | 
| 2210 | 
            +
                class DescribeUpdateDirectoryResult < Struct.new(
         | 
| 2211 | 
            +
                  :update_activities,
         | 
| 2212 | 
            +
                  :next_token)
         | 
| 2213 | 
            +
                  SENSITIVE = []
         | 
| 2214 | 
            +
                  include Aws::Structure
         | 
| 2215 | 
            +
                end
         | 
| 2216 | 
            +
             | 
| 2159 2217 | 
             
                # The Region you specified is the same Region where the Managed
         | 
| 2160 2218 | 
             
                # Microsoft AD directory was created. Specify a different Region and try
         | 
| 2161 2219 | 
             
                # again.
         | 
| @@ -2413,6 +2471,10 @@ module Aws::DirectoryService | |
| 2413 2471 | 
             
                #   Lists the Regions where the directory has replicated.
         | 
| 2414 2472 | 
             
                #   @return [Types::RegionsInfo]
         | 
| 2415 2473 | 
             
                #
         | 
| 2474 | 
            +
                # @!attribute [rw] os_version
         | 
| 2475 | 
            +
                #   The operating system (OS) version of the directory.
         | 
| 2476 | 
            +
                #   @return [String]
         | 
| 2477 | 
            +
                #
         | 
| 2416 2478 | 
             
                # @see http://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DirectoryDescription AWS API Documentation
         | 
| 2417 2479 | 
             
                #
         | 
| 2418 2480 | 
             
                class DirectoryDescription < Struct.new(
         | 
| @@ -2440,7 +2502,8 @@ module Aws::DirectoryService | |
| 2440 2502 | 
             
                  :sso_enabled,
         | 
| 2441 2503 | 
             
                  :desired_number_of_domain_controllers,
         | 
| 2442 2504 | 
             
                  :owner_directory_description,
         | 
| 2443 | 
            -
                  :regions_info | 
| 2505 | 
            +
                  :regions_info,
         | 
| 2506 | 
            +
                  :os_version)
         | 
| 2444 2507 | 
             
                  SENSITIVE = [:share_notes]
         | 
| 2445 2508 | 
             
                  include Aws::Structure
         | 
| 2446 2509 | 
             
                end
         | 
| @@ -2464,6 +2527,25 @@ module Aws::DirectoryService | |
| 2464 2527 | 
             
                  include Aws::Structure
         | 
| 2465 2528 | 
             
                end
         | 
| 2466 2529 |  | 
| 2530 | 
            +
                # The directory is already updated to desired update type settings.
         | 
| 2531 | 
            +
                #
         | 
| 2532 | 
            +
                # @!attribute [rw] message
         | 
| 2533 | 
            +
                #   The descriptive message for the exception.
         | 
| 2534 | 
            +
                #   @return [String]
         | 
| 2535 | 
            +
                #
         | 
| 2536 | 
            +
                # @!attribute [rw] request_id
         | 
| 2537 | 
            +
                #   The Amazon Web Services request identifier.
         | 
| 2538 | 
            +
                #   @return [String]
         | 
| 2539 | 
            +
                #
         | 
| 2540 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DirectoryInDesiredStateException AWS API Documentation
         | 
| 2541 | 
            +
                #
         | 
| 2542 | 
            +
                class DirectoryInDesiredStateException < Struct.new(
         | 
| 2543 | 
            +
                  :message,
         | 
| 2544 | 
            +
                  :request_id)
         | 
| 2545 | 
            +
                  SENSITIVE = []
         | 
| 2546 | 
            +
                  include Aws::Structure
         | 
| 2547 | 
            +
                end
         | 
| 2548 | 
            +
             | 
| 2467 2549 | 
             
                # The maximum number of directories in the region has been reached. You
         | 
| 2468 2550 | 
             
                # can use the GetDirectoryLimits operation to determine your directory
         | 
| 2469 2551 | 
             
                # limits in the region.
         | 
| @@ -3744,6 +3826,27 @@ module Aws::DirectoryService | |
| 3744 3826 | 
             
                  include Aws::Structure
         | 
| 3745 3827 | 
             
                end
         | 
| 3746 3828 |  | 
| 3829 | 
            +
                # OS version that the directory needs to be updated to.
         | 
| 3830 | 
            +
                #
         | 
| 3831 | 
            +
                # @note When making an API call, you may pass OSUpdateSettings
         | 
| 3832 | 
            +
                #   data as a hash:
         | 
| 3833 | 
            +
                #
         | 
| 3834 | 
            +
                #       {
         | 
| 3835 | 
            +
                #         os_version: "SERVER_2012", # accepts SERVER_2012, SERVER_2019
         | 
| 3836 | 
            +
                #       }
         | 
| 3837 | 
            +
                #
         | 
| 3838 | 
            +
                # @!attribute [rw] os_version
         | 
| 3839 | 
            +
                #   OS version that the directory needs to be updated to.
         | 
| 3840 | 
            +
                #   @return [String]
         | 
| 3841 | 
            +
                #
         | 
| 3842 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/OSUpdateSettings AWS API Documentation
         | 
| 3843 | 
            +
                #
         | 
| 3844 | 
            +
                class OSUpdateSettings < Struct.new(
         | 
| 3845 | 
            +
                  :os_version)
         | 
| 3846 | 
            +
                  SENSITIVE = []
         | 
| 3847 | 
            +
                  include Aws::Structure
         | 
| 3848 | 
            +
                end
         | 
| 3849 | 
            +
             | 
| 3747 3850 | 
             
                # Exception encountered while trying to access your Amazon Web Services
         | 
| 3748 3851 | 
             
                # organization.
         | 
| 3749 3852 | 
             
                #
         | 
| @@ -4997,6 +5100,104 @@ module Aws::DirectoryService | |
| 4997 5100 | 
             
                #
         | 
| 4998 5101 | 
             
                class UpdateConditionalForwarderResult < Aws::EmptyStructure; end
         | 
| 4999 5102 |  | 
| 5103 | 
            +
                # @note When making an API call, you may pass UpdateDirectorySetupRequest
         | 
| 5104 | 
            +
                #   data as a hash:
         | 
| 5105 | 
            +
                #
         | 
| 5106 | 
            +
                #       {
         | 
| 5107 | 
            +
                #         directory_id: "DirectoryId", # required
         | 
| 5108 | 
            +
                #         update_type: "OS", # required, accepts OS
         | 
| 5109 | 
            +
                #         os_update_settings: {
         | 
| 5110 | 
            +
                #           os_version: "SERVER_2012", # accepts SERVER_2012, SERVER_2019
         | 
| 5111 | 
            +
                #         },
         | 
| 5112 | 
            +
                #         create_snapshot_before_update: false,
         | 
| 5113 | 
            +
                #       }
         | 
| 5114 | 
            +
                #
         | 
| 5115 | 
            +
                # @!attribute [rw] directory_id
         | 
| 5116 | 
            +
                #   The identifier of the directory on which you want to perform the
         | 
| 5117 | 
            +
                #   update.
         | 
| 5118 | 
            +
                #   @return [String]
         | 
| 5119 | 
            +
                #
         | 
| 5120 | 
            +
                # @!attribute [rw] update_type
         | 
| 5121 | 
            +
                #   The type of update that needs to be performed on the directory. For
         | 
| 5122 | 
            +
                #   example, OS.
         | 
| 5123 | 
            +
                #   @return [String]
         | 
| 5124 | 
            +
                #
         | 
| 5125 | 
            +
                # @!attribute [rw] os_update_settings
         | 
| 5126 | 
            +
                #   The settings for the OS update that needs to be performed on the
         | 
| 5127 | 
            +
                #   directory.
         | 
| 5128 | 
            +
                #   @return [Types::OSUpdateSettings]
         | 
| 5129 | 
            +
                #
         | 
| 5130 | 
            +
                # @!attribute [rw] create_snapshot_before_update
         | 
| 5131 | 
            +
                #   The boolean that specifies if a snapshot for the directory needs to
         | 
| 5132 | 
            +
                #   be taken before updating the directory.
         | 
| 5133 | 
            +
                #   @return [Boolean]
         | 
| 5134 | 
            +
                #
         | 
| 5135 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateDirectorySetupRequest AWS API Documentation
         | 
| 5136 | 
            +
                #
         | 
| 5137 | 
            +
                class UpdateDirectorySetupRequest < Struct.new(
         | 
| 5138 | 
            +
                  :directory_id,
         | 
| 5139 | 
            +
                  :update_type,
         | 
| 5140 | 
            +
                  :os_update_settings,
         | 
| 5141 | 
            +
                  :create_snapshot_before_update)
         | 
| 5142 | 
            +
                  SENSITIVE = []
         | 
| 5143 | 
            +
                  include Aws::Structure
         | 
| 5144 | 
            +
                end
         | 
| 5145 | 
            +
             | 
| 5146 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateDirectorySetupResult AWS API Documentation
         | 
| 5147 | 
            +
                #
         | 
| 5148 | 
            +
                class UpdateDirectorySetupResult < Aws::EmptyStructure; end
         | 
| 5149 | 
            +
             | 
| 5150 | 
            +
                # An entry of update information related to a requested update type.
         | 
| 5151 | 
            +
                #
         | 
| 5152 | 
            +
                # @!attribute [rw] region
         | 
| 5153 | 
            +
                #   The name of the Region.
         | 
| 5154 | 
            +
                #   @return [String]
         | 
| 5155 | 
            +
                #
         | 
| 5156 | 
            +
                # @!attribute [rw] status
         | 
| 5157 | 
            +
                #   The status of the update performed on the directory.
         | 
| 5158 | 
            +
                #   @return [String]
         | 
| 5159 | 
            +
                #
         | 
| 5160 | 
            +
                # @!attribute [rw] status_reason
         | 
| 5161 | 
            +
                #   The reason for the current status of the update type activity.
         | 
| 5162 | 
            +
                #   @return [String]
         | 
| 5163 | 
            +
                #
         | 
| 5164 | 
            +
                # @!attribute [rw] initiated_by
         | 
| 5165 | 
            +
                #   This specifies if the update was initiated by the customer or by the
         | 
| 5166 | 
            +
                #   service team.
         | 
| 5167 | 
            +
                #   @return [String]
         | 
| 5168 | 
            +
                #
         | 
| 5169 | 
            +
                # @!attribute [rw] new_value
         | 
| 5170 | 
            +
                #   The new value of the target setting.
         | 
| 5171 | 
            +
                #   @return [Types::UpdateValue]
         | 
| 5172 | 
            +
                #
         | 
| 5173 | 
            +
                # @!attribute [rw] previous_value
         | 
| 5174 | 
            +
                #   The old value of the target setting.
         | 
| 5175 | 
            +
                #   @return [Types::UpdateValue]
         | 
| 5176 | 
            +
                #
         | 
| 5177 | 
            +
                # @!attribute [rw] start_time
         | 
| 5178 | 
            +
                #   The start time of the `UpdateDirectorySetup` for the particular
         | 
| 5179 | 
            +
                #   type.
         | 
| 5180 | 
            +
                #   @return [Time]
         | 
| 5181 | 
            +
                #
         | 
| 5182 | 
            +
                # @!attribute [rw] last_updated_date_time
         | 
| 5183 | 
            +
                #   The last updated date and time of a particular directory setting.
         | 
| 5184 | 
            +
                #   @return [Time]
         | 
| 5185 | 
            +
                #
         | 
| 5186 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateInfoEntry AWS API Documentation
         | 
| 5187 | 
            +
                #
         | 
| 5188 | 
            +
                class UpdateInfoEntry < Struct.new(
         | 
| 5189 | 
            +
                  :region,
         | 
| 5190 | 
            +
                  :status,
         | 
| 5191 | 
            +
                  :status_reason,
         | 
| 5192 | 
            +
                  :initiated_by,
         | 
| 5193 | 
            +
                  :new_value,
         | 
| 5194 | 
            +
                  :previous_value,
         | 
| 5195 | 
            +
                  :start_time,
         | 
| 5196 | 
            +
                  :last_updated_date_time)
         | 
| 5197 | 
            +
                  SENSITIVE = []
         | 
| 5198 | 
            +
                  include Aws::Structure
         | 
| 5199 | 
            +
                end
         | 
| 5200 | 
            +
             | 
| 5000 5201 | 
             
                # @note When making an API call, you may pass UpdateNumberOfDomainControllersRequest
         | 
| 5001 5202 | 
             
                #   data as a hash:
         | 
| 5002 5203 | 
             
                #
         | 
| @@ -5155,6 +5356,20 @@ module Aws::DirectoryService | |
| 5155 5356 | 
             
                  include Aws::Structure
         | 
| 5156 5357 | 
             
                end
         | 
| 5157 5358 |  | 
| 5359 | 
            +
                # The value for a given type of `UpdateSettings`.
         | 
| 5360 | 
            +
                #
         | 
| 5361 | 
            +
                # @!attribute [rw] os_update_settings
         | 
| 5362 | 
            +
                #   The OS update related settings.
         | 
| 5363 | 
            +
                #   @return [Types::OSUpdateSettings]
         | 
| 5364 | 
            +
                #
         | 
| 5365 | 
            +
                # @see http://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateValue AWS API Documentation
         | 
| 5366 | 
            +
                #
         | 
| 5367 | 
            +
                class UpdateValue < Struct.new(
         | 
| 5368 | 
            +
                  :os_update_settings)
         | 
| 5369 | 
            +
                  SENSITIVE = []
         | 
| 5370 | 
            +
                  include Aws::Structure
         | 
| 5371 | 
            +
                end
         | 
| 5372 | 
            +
             | 
| 5158 5373 | 
             
                # The user provided a username that does not exist in your directory.
         | 
| 5159 5374 | 
             
                #
         | 
| 5160 5375 | 
             
                # @!attribute [rw] message
         | 
| @@ -13,9 +13,13 @@ require 'aws-sigv4' | |
| 13 13 |  | 
| 14 14 | 
             
            require_relative 'aws-sdk-directoryservice/types'
         | 
| 15 15 | 
             
            require_relative 'aws-sdk-directoryservice/client_api'
         | 
| 16 | 
            +
            require_relative 'aws-sdk-directoryservice/plugins/endpoints.rb'
         | 
| 16 17 | 
             
            require_relative 'aws-sdk-directoryservice/client'
         | 
| 17 18 | 
             
            require_relative 'aws-sdk-directoryservice/errors'
         | 
| 18 19 | 
             
            require_relative 'aws-sdk-directoryservice/resource'
         | 
| 20 | 
            +
            require_relative 'aws-sdk-directoryservice/endpoint_parameters'
         | 
| 21 | 
            +
            require_relative 'aws-sdk-directoryservice/endpoint_provider'
         | 
| 22 | 
            +
            require_relative 'aws-sdk-directoryservice/endpoints'
         | 
| 19 23 | 
             
            require_relative 'aws-sdk-directoryservice/customizations'
         | 
| 20 24 |  | 
| 21 25 | 
             
            # This module provides support for AWS Directory Service. This module is available in the
         | 
| @@ -48,6 +52,6 @@ require_relative 'aws-sdk-directoryservice/customizations' | |
| 48 52 | 
             
            # @!group service
         | 
| 49 53 | 
             
            module Aws::DirectoryService
         | 
| 50 54 |  | 
| 51 | 
            -
              GEM_VERSION = '1. | 
| 55 | 
            +
              GEM_VERSION = '1.52.0'
         | 
| 52 56 |  | 
| 53 57 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: aws-sdk-directoryservice
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1. | 
| 4 | 
            +
              version: 1.52.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: 2022- | 
| 11 | 
            +
            date: 2022-10-25 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.165.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.165.0
         | 
| 33 33 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 34 34 | 
             
              name: aws-sigv4
         | 
| 35 35 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -59,7 +59,11 @@ files: | |
| 59 59 | 
             
            - lib/aws-sdk-directoryservice/client.rb
         | 
| 60 60 | 
             
            - lib/aws-sdk-directoryservice/client_api.rb
         | 
| 61 61 | 
             
            - lib/aws-sdk-directoryservice/customizations.rb
         | 
| 62 | 
            +
            - lib/aws-sdk-directoryservice/endpoint_parameters.rb
         | 
| 63 | 
            +
            - lib/aws-sdk-directoryservice/endpoint_provider.rb
         | 
| 64 | 
            +
            - lib/aws-sdk-directoryservice/endpoints.rb
         | 
| 62 65 | 
             
            - lib/aws-sdk-directoryservice/errors.rb
         | 
| 66 | 
            +
            - lib/aws-sdk-directoryservice/plugins/endpoints.rb
         | 
| 63 67 | 
             
            - lib/aws-sdk-directoryservice/resource.rb
         | 
| 64 68 | 
             
            - lib/aws-sdk-directoryservice/types.rb
         | 
| 65 69 | 
             
            homepage: https://github.com/aws/aws-sdk-ruby
         |