Class CfnEndpoint
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::SageMaker::Endpoint.
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()
.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())
// the properties below are optional
.autoRollbackConfiguration(AutoRollbackConfigProperty.builder()
.alarms(List.of(AlarmProperty.builder()
.alarmName("alarmName")
.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();
-
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 endpoint capacity to activate for production.static interfaceThe deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnEndpoint(Construct scope, String id, CfnEndpointProps props) Create a newAWS::SageMaker::Endpoint.protectedCfnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEndpoint(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.The name must be unique within an AWS Region in your AWS account.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()A list of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.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.The name must be unique within an AWS Region in your AWS account.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.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnEndpointProps props) Create a newAWS::SageMaker::Endpoint.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrEndpointName
The name of the endpoint, such asMyEndpoint. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
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 .
-
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. -
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
-
setEndpointName
-
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. -
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.To retain the variant properties of an endpoint when updating it, set
RetainAllVariantPropertiestotrue. To use the variant properties specified in a newEndpointConfigcall when updating an endpoint, setRetainAllVariantPropertiestofalse. Use this property only when updating endpoint resources, not when creating new endpoint resources. -
setRetainAllVariantProperties
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
RetainAllVariantPropertiestotrue. To use the variant properties specified in a newEndpointConfigcall when updating an endpoint, setRetainAllVariantPropertiestofalse. Use this property only when updating endpoint resources, not when creating new endpoint resources. -
setRetainAllVariantProperties
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
RetainAllVariantPropertiestotrue. To use the variant properties specified in a newEndpointConfigcall when updating an endpoint, setRetainAllVariantPropertiestofalse. Use this property only when updating endpoint resources, not when creating new endpoint resources. -
getRetainDeploymentConfig
Specifies whether to reuse the last deployment configuration.The default value is false (the configuration is not reused).
-
setRetainDeploymentConfig
Specifies whether to reuse the last deployment configuration.The default value is false (the configuration is not reused).
-
setRetainDeploymentConfig
Specifies whether to reuse the last deployment configuration.The default value is false (the configuration is not reused).
-