EndpointConfigProps

class aws_cdk.aws_sagemaker_alpha.EndpointConfigProps(*, encryption_key=None, endpoint_config_name=None, instance_production_variants=None)

Bases: object

(experimental) Construction properties for a SageMaker EndpointConfig.

Parameters:
  • encryption_key (Optional[IKey]) – (experimental) Optional KMS encryption key associated with this stream. Default: - none

  • endpoint_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 calling EndpointConfig#addInstanceProductionVariant. 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.

Default:
  • none

Stability:

experimental