Class: Aws::STS::Endpoints::GetSessionToken Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-sts/endpoints.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.build(context) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/aws-sdk-sts/endpoints.rb', line 121

def self.build(context)
  unless context.config.regional_endpoint
    endpoint = context.config.endpoint.to_s
  end
  Aws::STS::EndpointParameters.new(
    region: context.config.region,
    use_dual_stack: context.config.use_dualstack_endpoint,
    use_fips: context.config.use_fips_endpoint,
    endpoint: endpoint,
    use_global_endpoint: context.config.sts_regional_endpoints == 'legacy',
  )
end