EndpointConfigProps
- class aws_cdk.aws_sagemaker_alpha.EndpointConfigProps(*, encryption_key=None, endpoint_config_name=None, instance_production_variants=None, serverless_production_variant=None)
Bases:
object(experimental) Construction properties for a SageMaker EndpointConfig.
- Parameters:
encryption_key (
Optional[IKeyRef]) – (experimental) Optional KMS encryption key associated with this stream. Default: - noneendpoint_config_name (
Optional[str]) – (experimental) Name of the endpoint configuration. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the endpoint configuration’s name.instance_production_variants (
Optional[Sequence[Union[InstanceProductionVariantProps,Dict[str,Any]]]]) – (experimental) A list of instance production variants. You can always add more variants later by callingEndpointConfig#addInstanceProductionVariant. Cannot be specified ifserverlessProductionVariantis specified. Default: - noneserverless_production_variant (
Union[ServerlessProductionVariantProps,Dict[str,Any],None]) – (experimental) A serverless production variant. Serverless endpoints automatically launch compute resources and scale them in and out depending on traffic. Cannot be specified ifinstanceProductionVariantsis specified. Default: - none
- Stability:
experimental
- ExampleMetadata:
infused
Example:
import aws_cdk.aws_sagemaker_alpha as sagemaker # model_a: sagemaker.Model # model_b: sagemaker.Model endpoint_config = sagemaker.EndpointConfig(self, "EndpointConfig", instance_production_variants=[sagemaker.InstanceProductionVariantProps( model=model_a, variant_name="modelA", initial_variant_weight=2 ), sagemaker.InstanceProductionVariantProps( model=model_b, variant_name="variantB", initial_variant_weight=1 ) ] )
Attributes
- encryption_key
(experimental) Optional KMS encryption key associated with this stream.
- Default:
none
- Stability:
experimental
- endpoint_config_name
(experimental) Name of the endpoint configuration.
- Default:
AWS CloudFormation generates a unique physical ID and uses that ID for the endpoint
configuration’s name.
- Stability:
experimental
- instance_production_variants
(experimental) A list of instance production variants. You can always add more variants later by calling
EndpointConfig#addInstanceProductionVariant.Cannot be specified if
serverlessProductionVariantis specified.- Default:
none
- Stability:
experimental
- serverless_production_variant
(experimental) A serverless production variant. Serverless endpoints automatically launch compute resources and scale them in and out depending on traffic.
Cannot be specified if
instanceProductionVariantsis specified.- Default:
none
- Stability:
experimental