aws-cdk-lib.aws_sagemaker.CfnEndpointProps

interface CfnEndpointProps

LanguageType name
.NETAmazon.CDK.AWS.Sagemaker.CfnEndpointProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnEndpointProps
Javasoftware.amazon.awscdk.services.sagemaker.CfnEndpointProps
Pythonaws_cdk.aws_sagemaker.CfnEndpointProps
TypeScript aws-cdk-lib » aws_sagemaker » CfnEndpointProps

Properties for defining a CfnEndpoint.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const cfnEndpointProps: sagemaker.CfnEndpointProps = {
  endpointConfigName: 'endpointConfigName',

  // the properties below are optional
  deploymentConfig: {
    blueGreenUpdatePolicy: {
      trafficRoutingConfiguration: {
        type: 'type',

        // the properties below are optional
        canarySize: {
          type: 'type',
          value: 123,
        },
        linearStepSize: {
          type: 'type',
          value: 123,
        },
        waitIntervalInSeconds: 123,
      },

      // the properties below are optional
      maximumExecutionTimeoutInSeconds: 123,
      terminationWaitInSeconds: 123,
    },

    // the properties below are optional
    autoRollbackConfiguration: {
      alarms: [{
        alarmName: 'alarmName',
      }],
    },
  },
  endpointName: 'endpointName',
  excludeRetainedVariantProperties: [{
    variantPropertyType: 'variantPropertyType',
  }],
  retainAllVariantProperties: false,
  retainDeploymentConfig: false,
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
endpointConfigNamestringThe name of the AWS::SageMaker::EndpointConfig resource that specifies the configuration for the endpoint. For more information, see CreateEndpointConfig .
deploymentConfig?IResolvable | DeploymentConfigPropertyThe deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.
endpointName?stringThe name of the endpoint.The name must be unique within an AWS Region in your AWS account. The name is case-insensitive in CreateEndpoint , but the case is preserved and must be matched in .
excludeRetainedVariantProperties?IResolvable | IResolvable | VariantPropertyProperty[]When you are updating endpoint resources with RetainAllVariantProperties whose value is set to true , ExcludeRetainedVariantProperties specifies the list of type VariantProperty to override with the values provided by EndpointConfig . If you don't specify a value for ExcludeAllVariantProperties , no variant properties are overridden. Don't use this property when creating new endpoint resources or when RetainAllVariantProperties is set to false .
retainAllVariantProperties?boolean | IResolvableWhen updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight.
retainDeploymentConfig?boolean | IResolvableSpecifies whether to reuse the last deployment configuration.
tags?CfnTag[]A list of key-value pairs to apply to this resource.

endpointConfigName

Type: string

The name of the AWS::SageMaker::EndpointConfig resource that specifies the configuration for the endpoint. For more information, see CreateEndpointConfig .


deploymentConfig?

Type: IResolvable | DeploymentConfigProperty (optional)

The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.


endpointName?

Type: string (optional)

The name of the endpoint.The name must be unique within an AWS Region in your AWS account. The name is case-insensitive in CreateEndpoint , but the case is preserved and must be matched in .


excludeRetainedVariantProperties?

Type: IResolvable | IResolvable | VariantPropertyProperty[] (optional)

When you are updating endpoint resources with RetainAllVariantProperties whose value is set to true , ExcludeRetainedVariantProperties specifies the list of type VariantProperty to override with the values provided by EndpointConfig . If you don't specify a value for ExcludeAllVariantProperties , no variant properties are overridden. Don't use this property when creating new endpoint resources or when RetainAllVariantProperties is set to false .


retainAllVariantProperties?

Type: boolean | IResolvable (optional)

When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight.

To retain the variant properties of an endpoint when updating it, set RetainAllVariantProperties to true . To use the variant properties specified in a new EndpointConfig call when updating an endpoint, set RetainAllVariantProperties to false . Use this property only when updating endpoint resources, not when creating new endpoint resources.


retainDeploymentConfig?

Type: boolean | IResolvable (optional)

Specifies whether to reuse the last deployment configuration.

The default value is false (the configuration is not reused).


tags?

Type: CfnTag[] (optional)

A list of key-value pairs to apply to this resource.

For more information, see Resource Tag and Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .