CfnInferenceComponentProps

class aws_cdk.aws_sagemaker.CfnInferenceComponentProps(*, endpoint_name, runtime_config, specification, variant_name, endpoint_arn=None, inference_component_name=None, tags=None)

Bases: object

Properties for defining a CfnInferenceComponent.

Parameters:
  • endpoint_name (str) – The name of the endpoint that hosts the inference component.

  • runtime_config (Union[IResolvable, InferenceComponentRuntimeConfigProperty, Dict[str, Any]]) – The runtime config for the inference component.

  • specification (Union[IResolvable, InferenceComponentSpecificationProperty, Dict[str, Any]]) – The specification for the inference component.

  • variant_name (str) – The name of the production variant that hosts the inference component.

  • endpoint_arn (Optional[str]) – The Amazon Resource Name (ARN) of the endpoint that hosts the inference component.

  • inference_component_name (Optional[str]) – The name of the inference component.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – An array of tags to apply to the resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-inferencecomponent.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

cfn_inference_component_props = sagemaker.CfnInferenceComponentProps(
    endpoint_name="endpointName",
    runtime_config=sagemaker.CfnInferenceComponent.InferenceComponentRuntimeConfigProperty(
        copy_count=123,
        current_copy_count=123,
        desired_copy_count=123
    ),
    specification=sagemaker.CfnInferenceComponent.InferenceComponentSpecificationProperty(
        compute_resource_requirements=sagemaker.CfnInferenceComponent.InferenceComponentComputeResourceRequirementsProperty(
            max_memory_required_in_mb=123,
            min_memory_required_in_mb=123,
            number_of_accelerator_devices_required=123,
            number_of_cpu_cores_required=123
        ),

        # the properties below are optional
        container=sagemaker.CfnInferenceComponent.InferenceComponentContainerSpecificationProperty(
            artifact_url="artifactUrl",
            deployed_image=sagemaker.CfnInferenceComponent.DeployedImageProperty(
                resolution_time="resolutionTime",
                resolved_image="resolvedImage",
                specified_image="specifiedImage"
            ),
            environment={
                "environment_key": "environment"
            },
            image="image"
        ),
        model_name="modelName",
        startup_parameters=sagemaker.CfnInferenceComponent.InferenceComponentStartupParametersProperty(
            container_startup_health_check_timeout_in_seconds=123,
            model_data_download_timeout_in_seconds=123
        )
    ),
    variant_name="variantName",

    # the properties below are optional
    endpoint_arn="endpointArn",
    inference_component_name="inferenceComponentName",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

endpoint_arn

The Amazon Resource Name (ARN) of the endpoint that hosts the inference component.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-inferencecomponent.html#cfn-sagemaker-inferencecomponent-endpointarn

endpoint_name

The name of the endpoint that hosts the inference component.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-inferencecomponent.html#cfn-sagemaker-inferencecomponent-endpointname

inference_component_name

The name of the inference component.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-inferencecomponent.html#cfn-sagemaker-inferencecomponent-inferencecomponentname

runtime_config

The runtime config for the inference component.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-inferencecomponent.html#cfn-sagemaker-inferencecomponent-runtimeconfig

specification

The specification for the inference component.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-inferencecomponent.html#cfn-sagemaker-inferencecomponent-specification

tags

An array of tags to apply to the resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-inferencecomponent.html#cfn-sagemaker-inferencecomponent-tags

variant_name

The name of the production variant that hosts the inference component.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-inferencecomponent.html#cfn-sagemaker-inferencecomponent-variantname