Class CfnEndpoint
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.sagemaker.CfnEndpoint
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IEndpointRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:29.032Z")
@Stability(Stable)
public class CfnEndpoint
extends CfnResource
implements IInspectable, IEndpointRef, ITaggable
Use the
AWS::SageMaker::Endpoint resource to create an endpoint using the specified configuration in the request.
Amazon SageMaker uses the endpoint to provision resources and deploy models. You create the endpoint configuration with the AWS::SageMaker::EndpointConfig resource. For more information, see Deploy a Model on Amazon SageMaker Hosting Services in the Amazon SageMaker Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
CfnEndpoint cfnEndpoint = CfnEndpoint.Builder.create(this, "MyCfnEndpoint")
.endpointConfigName("endpointConfigName")
// the properties below are optional
.deploymentConfig(DeploymentConfigProperty.builder()
.autoRollbackConfiguration(AutoRollbackConfigProperty.builder()
.alarms(List.of(AlarmProperty.builder()
.alarmName("alarmName")
.build()))
.build())
.blueGreenUpdatePolicy(BlueGreenUpdatePolicyProperty.builder()
.trafficRoutingConfiguration(TrafficRoutingConfigProperty.builder()
.type("type")
// the properties below are optional
.canarySize(CapacitySizeProperty.builder()
.type("type")
.value(123)
.build())
.linearStepSize(CapacitySizeProperty.builder()
.type("type")
.value(123)
.build())
.waitIntervalInSeconds(123)
.build())
// the properties below are optional
.maximumExecutionTimeoutInSeconds(123)
.terminationWaitInSeconds(123)
.build())
.rollingUpdatePolicy(RollingUpdatePolicyProperty.builder()
.maximumBatchSize(CapacitySizeProperty.builder()
.type("type")
.value(123)
.build())
.waitIntervalInSeconds(123)
// the properties below are optional
.maximumExecutionTimeoutInSeconds(123)
.rollbackMaximumBatchSize(CapacitySizeProperty.builder()
.type("type")
.value(123)
.build())
.build())
.build())
.endpointName("endpointName")
.excludeRetainedVariantProperties(List.of(VariantPropertyProperty.builder()
.variantPropertyType("variantPropertyType")
.build()))
.retainAllVariantProperties(false)
.retainDeploymentConfig(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn Amazon CloudWatch alarm configured to monitor metrics on an endpoint.static interfaceAutomatic rollback configuration for handling endpoint deployment failures and recovery.static interfaceUpdate policy for a blue/green deployment.static final classA fluent builder forCfnEndpoint.static interfaceSpecifies the type and size of the endpoint capacity to activate for a blue/green deployment, a rolling deployment, or a rollback strategy.static interfaceThe deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.static interfaceSpecifies a rolling deployment strategy for updating a SageMaker endpoint.static interfaceDefines the traffic routing strategy during an endpoint deployment to shift traffic from the old fleet to the new fleet.static interfaceSpecifies a production variant property type for an Endpoint.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.sagemaker.IEndpointRef
IEndpointRef.Jsii$Default, IEndpointRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEndpoint(software.amazon.jsii.JsiiObjectRef objRef) CfnEndpoint(software.constructs.Construct scope, String id, CfnEndpointProps props) Create a newAWS::SageMaker::Endpoint. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForEndpoint(IEndpointRef resource) The Amazon Resource Name (ARN) of the endpoint.The name of the endpoint, such asMyEndpoint.The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.The name of the AWS::SageMaker::EndpointConfig resource that specifies the configuration for the endpoint.The name of the endpoint.A reference to a Endpoint resource.When you are updating endpoint resources with RetainAllVariantProperties whose value is set totrue,ExcludeRetainedVariantPropertiesspecifies the list of type VariantProperty to override with the values provided byEndpointConfig.When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight.Specifies whether to reuse the last deployment configuration.getTags()Tag Manager which manages the tags for this resource.A list of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnEndpoint.renderProperties(Map<String, Object> props) voidsetDeploymentConfig(IResolvable value) The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.voidThe deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.voidsetEndpointConfigName(String value) The name of the AWS::SageMaker::EndpointConfig resource that specifies the configuration for the endpoint.voidsetEndpointName(String value) The name of the endpoint.voidWhen you are updating endpoint resources with RetainAllVariantProperties whose value is set totrue,ExcludeRetainedVariantPropertiesspecifies the list of type VariantProperty to override with the values provided byEndpointConfig.voidWhen you are updating endpoint resources with RetainAllVariantProperties whose value is set totrue,ExcludeRetainedVariantPropertiesspecifies the list of type VariantProperty to override with the values provided byEndpointConfig.voidWhen updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight.voidWhen updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight.voidsetRetainDeploymentConfig(Boolean value) Specifies whether to reuse the last deployment configuration.voidSpecifies whether to reuse the last deployment configuration.voidsetTagsRaw(List<CfnTag> value) A list of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnEndpoint
protected CfnEndpoint(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEndpoint
protected CfnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEndpoint
@Stability(Stable) public CfnEndpoint(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEndpointProps props) Create a newAWS::SageMaker::Endpoint.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForEndpoint
- Parameters:
resource- This parameter is required.
-
isCfnEndpoint
Checks whether the given object is a CfnEndpoint.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrEndpointArn
The Amazon Resource Name (ARN) of the endpoint. -
getAttrEndpointName
The name of the endpoint, such asMyEndpoint. -
getAttrId
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getEndpointRef
A reference to a Endpoint resource.- Specified by:
getEndpointRefin interfaceIEndpointRef
-
getTags
Tag Manager which manages the tags for this resource. -
getEndpointConfigName
The name of the AWS::SageMaker::EndpointConfig resource that specifies the configuration for the endpoint. For more information, see CreateEndpointConfig . -
setEndpointConfigName
The name of the AWS::SageMaker::EndpointConfig resource that specifies the configuration for the endpoint. For more information, see CreateEndpointConfig . -
getDeploymentConfig
The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.Returns union: either
IResolvableorCfnEndpoint.DeploymentConfigProperty -
setDeploymentConfig
The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations. -
setDeploymentConfig
@Stability(Stable) public void setDeploymentConfig(@Nullable CfnEndpoint.DeploymentConfigProperty value) The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations. -
getEndpointName
The name of the endpoint. -
setEndpointName
The name of the endpoint. -
getExcludeRetainedVariantProperties
When you are updating endpoint resources with RetainAllVariantProperties whose value is set totrue,ExcludeRetainedVariantPropertiesspecifies the list of type VariantProperty to override with the values provided byEndpointConfig. If you don't specify a value forExcludeAllVariantProperties, no variant properties are overridden. Don't use this property when creating new endpoint resources or whenRetainAllVariantPropertiesis set tofalse.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnEndpoint.VariantPropertyProperty> -
setExcludeRetainedVariantProperties
When you are updating endpoint resources with RetainAllVariantProperties whose value is set totrue,ExcludeRetainedVariantPropertiesspecifies the list of type VariantProperty to override with the values provided byEndpointConfig. If you don't specify a value forExcludeAllVariantProperties, no variant properties are overridden. Don't use this property when creating new endpoint resources or whenRetainAllVariantPropertiesis set tofalse. -
setExcludeRetainedVariantProperties
When you are updating endpoint resources with RetainAllVariantProperties whose value is set totrue,ExcludeRetainedVariantPropertiesspecifies the list of type VariantProperty to override with the values provided byEndpointConfig. If you don't specify a value forExcludeAllVariantProperties, no variant properties are overridden. Don't use this property when creating new endpoint resources or whenRetainAllVariantPropertiesis set tofalse. -
getRetainAllVariantProperties
When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight.Returns union: either
BooleanorIResolvable -
setRetainAllVariantProperties
When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight. -
setRetainAllVariantProperties
When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight. -
getRetainDeploymentConfig
Specifies whether to reuse the last deployment configuration.Returns union: either
BooleanorIResolvable -
setRetainDeploymentConfig
Specifies whether to reuse the last deployment configuration. -
setRetainDeploymentConfig
Specifies whether to reuse the last deployment configuration. -
getTagsRaw
A list of key-value pairs to apply to this resource. -
setTagsRaw
A list of key-value pairs to apply to this resource.
-