create_service_environment
¶
create_service_environment(
*,
config_overrides: Optional[BatchClientConfig] = None,
service_environment_name: Optional[String] = None,
service_environment_type: Optional[ServiceEnvironmentType] = None,
state: Optional[ServiceEnvironmentState] = None,
capacity_limits: Optional[CapacityLimits] = None,
tags: Optional[TagrisTagsMap] = None,
) -> CreateServiceEnvironmentResponse
Creates a service environment for running service jobs. Service environments define capacity limits for specific service types such as SageMaker Training jobs.
Parameters:
-
service_environment_name(Optional[String], default:None) –The name for the service environment. It can be up to 128 characters long and can contain letters, numbers, hyphens (-), and underscores (_).
-
service_environment_type(Optional[ServiceEnvironmentType], default:None) –The type of service environment. For SageMaker Training jobs, specify
SAGEMAKER_TRAINING. -
state(Optional[ServiceEnvironmentState], default:None) –The state of the service environment. Valid values are
ENABLEDandDISABLED. The default value isENABLED. -
capacity_limits(Optional[CapacityLimits], default:None) –The capacity limits for the service environment. The number of instances a job consumes is the total number of instances requested in the submit training job request resource configuration.
-
tags(Optional[TagrisTagsMap], default:None) –The tags that you apply to the service environment to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources.
Raises:
-
ClientException–These errors are usually caused by a client action. One example cause is using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier that's not valid.
-
ServerException–These errors are usually caused by a server issue.
-
UnknownServiceError–The service returned an error code this client does not model.