Sha256: 361b8abb70f283120f1299cfcdc99a129ad5f7852c698237e3588dbf782dd784

Contents?: true

Size: 1.17 KB

Versions: 3

Compression:

Stored size: 1.17 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::EC2InstanceConnect
  module Endpoints

    class SendSSHPublicKey
      def self.build(context)
        unless context.config.regional_endpoint
          endpoint = context.config.endpoint.to_s
        end
        Aws::EC2InstanceConnect::EndpointParameters.new(
          region: context.config.region,
          use_dual_stack: context.config.use_dualstack_endpoint,
          use_fips: context.config.use_fips_endpoint,
          endpoint: endpoint,
        )
      end
    end

    class SendSerialConsoleSSHPublicKey
      def self.build(context)
        unless context.config.regional_endpoint
          endpoint = context.config.endpoint.to_s
        end
        Aws::EC2InstanceConnect::EndpointParameters.new(
          region: context.config.region,
          use_dual_stack: context.config.use_dualstack_endpoint,
          use_fips: context.config.use_fips_endpoint,
          endpoint: endpoint,
        )
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aws-sdk-ec2instanceconnect-1.28.0 lib/aws-sdk-ec2instanceconnect/endpoints.rb
aws-sdk-ec2instanceconnect-1.27.0 lib/aws-sdk-ec2instanceconnect/endpoints.rb
aws-sdk-ec2instanceconnect-1.26.0 lib/aws-sdk-ec2instanceconnect/endpoints.rb