Sha256: 95f3f072167022520418e00d884e120fc2564ded97df2566d37f815e4aa7a0b9

Contents?: true

Size: 1.87 KB

Versions: 4

Compression:

Stored size: 1.87 KB

Contents

# frozen_string_literal: true

# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE


module Aws::MigrationHubConfig
  # @api private
  module Endpoints

    class CreateHomeRegionControl
      def self.build(context)
        Aws::MigrationHubConfig::EndpointParameters.new(
          region: context.config.region,
          use_dual_stack: context.config.use_dualstack_endpoint,
          use_fips: context.config.use_fips_endpoint,
          endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
        )
      end
    end

    class DeleteHomeRegionControl
      def self.build(context)
        Aws::MigrationHubConfig::EndpointParameters.new(
          region: context.config.region,
          use_dual_stack: context.config.use_dualstack_endpoint,
          use_fips: context.config.use_fips_endpoint,
          endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
        )
      end
    end

    class DescribeHomeRegionControls
      def self.build(context)
        Aws::MigrationHubConfig::EndpointParameters.new(
          region: context.config.region,
          use_dual_stack: context.config.use_dualstack_endpoint,
          use_fips: context.config.use_fips_endpoint,
          endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
        )
      end
    end

    class GetHomeRegion
      def self.build(context)
        Aws::MigrationHubConfig::EndpointParameters.new(
          region: context.config.region,
          use_dual_stack: context.config.use_dualstack_endpoint,
          use_fips: context.config.use_fips_endpoint,
          endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
        )
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aws-sdk-migrationhubconfig-1.46.0 lib/aws-sdk-migrationhubconfig/endpoints.rb
aws-sdk-migrationhubconfig-1.45.0 lib/aws-sdk-migrationhubconfig/endpoints.rb
aws-sdk-migrationhubconfig-1.44.0 lib/aws-sdk-migrationhubconfig/endpoints.rb
aws-sdk-migrationhubconfig-1.43.0 lib/aws-sdk-migrationhubconfig/endpoints.rb