name_from_base: Append a timestamp to the provided string.

View source: R/utils.R

name_from_baseR Documentation

Append a timestamp to the provided string.

Description

This function assures that the total length of the resulting string is not longer than the specified max length, trimming the input parameter if necessary.

Usage

name_from_base(base, max_length = 63, short = FALSE)

Arguments

base

(str): String used as prefix to generate the unique name.

max_length

(int): Maximum length for the resulting string (default: 63).

short

(bool): Whether or not to use a truncated timestamp (default: False).

Value

str: Input parameter with appended timestamp.

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_image(), regional_hostname(), 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.