Environment Variables

Accessors to retrieve environment variables for hosting containers.

sagemaker.environment_variables.retrieve_default(region=None, model_id=None, model_version=None)

Retrieves the default container environment variables for the model matching the arguments.

Parameters
  • region (str) – Optional. The AWS Region for which to retrieve the default environment variables. (Default: None).

  • model_id (str) – Optional. The model ID of the model for which to retrieve the default environment variables. (Default: None).

  • model_version (str) – Optional. The version of the model for which to retrieve the default environment variables. (Default: None).

Returns

The variables to use for the model.

Return type

dict

Raises

ValueError – If the combination of arguments specified is not supported.