From 01920f1c4275266ad0eaa051733b9127f1fc61f1 Mon Sep 17 00:00:00 2001 From: Miyoung Choi Date: Tue, 31 Jan 2023 01:06:57 -0800 Subject: [PATCH 1/2] add caution note for security --- src/sagemaker/estimator.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/sagemaker/estimator.py b/src/sagemaker/estimator.py index 29e0d250aa..cafa1c4a4d 100644 --- a/src/sagemaker/estimator.py +++ b/src/sagemaker/estimator.py @@ -423,6 +423,13 @@ def __init__( hyperparameters (dict[str, str] or dict[str, PipelineVariable]): A dictionary containing the hyperparameters to initialize this estimator with. (Default: None). + + .. caution:: + You must not include any security-sensitive information, such as + account access IDs, secrets, and tokens, in the dictionary for configuring + hyperparameters. SageMaker rejects the training job request and returns an + exception error for detected credentials, if such user input is found. + container_log_level (int or PipelineVariable): The log level to use within the container (default: logging.INFO). Valid values are defined in the Python logging module. @@ -2462,6 +2469,13 @@ def __init__( using the default AWS configuration chain. hyperparameters (dict[str, str] or dict[str, PipelineVariable]): Dictionary containing the hyperparameters to initialize this estimator with. + + .. caution:: + You must not include any security-sensitive information, such as + account access IDs, secrets, and tokens, in the dictionary for configuring + hyperparameters. SageMaker rejects the training job request and returns an + exception error for detected credentials, if such user input is found. + tags (list[dict[str, str] or list[dict[str, PipelineVariable]]): List of tags for labeling a training job. For more, see https://docs.aws.amazon.com/sagemaker/latest/dg/API_Tag.html. @@ -2939,6 +2953,13 @@ def __init__( SageMaker. For convenience, this accepts other types for keys and values, but ``str()`` will be called to convert them before training. + + .. caution:: + You must not include any security-sensitive information, such as + account access IDs, secrets, and tokens, in the dictionary for configuring + hyperparameters. SageMaker rejects the training job request and returns an + exception error for detected credentials, if such user input is found. + container_log_level (int or PipelineVariable): Log level to use within the container (default: logging.INFO). Valid values are defined in the Python logging module. From aeb6453676520215f80241778cfbef9f0537f95b Mon Sep 17 00:00:00 2001 From: Miyoung Choi Date: Tue, 31 Jan 2023 01:08:36 -0800 Subject: [PATCH 2/2] change a word --- src/sagemaker/estimator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sagemaker/estimator.py b/src/sagemaker/estimator.py index cafa1c4a4d..f407bce0a3 100644 --- a/src/sagemaker/estimator.py +++ b/src/sagemaker/estimator.py @@ -428,7 +428,7 @@ def __init__( You must not include any security-sensitive information, such as account access IDs, secrets, and tokens, in the dictionary for configuring hyperparameters. SageMaker rejects the training job request and returns an - exception error for detected credentials, if such user input is found. + validation error for detected credentials, if such user input is found. container_log_level (int or PipelineVariable): The log level to use within the container (default: logging.INFO). Valid values are defined in the Python @@ -2474,7 +2474,7 @@ def __init__( You must not include any security-sensitive information, such as account access IDs, secrets, and tokens, in the dictionary for configuring hyperparameters. SageMaker rejects the training job request and returns an - exception error for detected credentials, if such user input is found. + validation error for detected credentials, if such user input is found. tags (list[dict[str, str] or list[dict[str, PipelineVariable]]): List of tags for labeling a training job. For more, see @@ -2958,8 +2958,8 @@ def __init__( You must not include any security-sensitive information, such as account access IDs, secrets, and tokens, in the dictionary for configuring hyperparameters. SageMaker rejects the training job request and returns an - exception error for detected credentials, if such user input is found. - + validation error for detected credentials, if such user input is found. + container_log_level (int or PipelineVariable): Log level to use within the container (default: logging.INFO). Valid values are defined in the Python logging module.