lib/aws-sdk-sagemakergeospatial/plugins/endpoints.rb in aws-sdk-sagemakergeospatial-1.22.0 vs lib/aws-sdk-sagemakergeospatial/plugins/endpoints.rb in aws-sdk-sagemakergeospatial-1.23.0
- old
+ new
@@ -13,15 +13,15 @@
class Endpoints < Seahorse::Client::Plugin
option(
:endpoint_provider,
doc_type: 'Aws::SageMakerGeospatial::EndpointProvider',
rbs_type: 'untyped',
- docstring: 'The endpoint provider used to resolve endpoints. Any '\
- 'object that responds to `#resolve_endpoint(parameters)` '\
- 'where `parameters` is a Struct similar to '\
- '`Aws::SageMakerGeospatial::EndpointParameters`'
- ) do |cfg|
+ docstring: <<~DOCS) do |_cfg|
+The endpoint provider used to resolve endpoints. Any object that responds to
+`#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
+`Aws::SageMakerGeospatial::EndpointParameters`.
+ DOCS
Aws::SageMakerGeospatial::EndpointProvider.new
end
# @api private
class Handler < Seahorse::Client::Handler
@@ -48,9 +48,12 @@
def with_metrics(context, &block)
metrics = []
metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
metrics << 'SIGV4A_SIGNING'
+ end
+ if context.config.credentials&.credentials&.account_id
+ metrics << 'RESOLVED_ACCOUNT_ID'
end
Aws::Plugins::UserAgent.metric(*metrics, &block)
end
def apply_endpoint_headers(context, headers)