regional_hostname: Get the AWS endpoint specific for the given region.

View source: R/utils.R

regional_hostnameR Documentation

Get the AWS endpoint specific for the given region.

Description

We need this function because the AWS SDK does not yet honor the “region_name“ parameter when creating an AWS STS client. For the list of regional endpoints, see https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html#id_credentials_region-endpoints.

Usage

regional_hostname(service_name, region)

Arguments

service_name

(str): Name of the service to resolve an endpoint for (e.g., s3)

region

(str): AWS region name

Value

str: AWS STS regional endpoint

See Also

Other sagemaker_utils: .aws_partition(), .download_files_under_prefix(), base_from_name(), base_name_from_image(), build_dict(), common_variables, create_tar_file(), download_file(), download_folder(), get_config_value(), get_short_version(), name_from_base(), name_from_image(), repack_model(), retries(), sagemaker_short_timestamp(), sagemaker_timestamp(), secondary_training_status_changed(), secondary_training_status_message(), sts_regional_endpoint(), unique_name_from_base()


DyfanJones/sagemaker-r-local documentation built on June 14, 2022, 10:32 p.m.