@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.873Z") @Stability(value=Stable) public class CfnEndpoint extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnEndpoint.AlarmProperty
An Amazon CloudWatch alarm configured to monitor metrics on an endpoint.
|
static interface |
CfnEndpoint.AutoRollbackConfigProperty
Automatic rollback configuration for handling endpoint deployment failures and recovery.
|
static interface |
CfnEndpoint.BlueGreenUpdatePolicyProperty
Update policy for a blue/green deployment.
|
static class |
CfnEndpoint.Builder
A fluent builder for
CfnEndpoint. |
static interface |
CfnEndpoint.CapacitySizeProperty
Specifies the endpoint capacity to activate for production.
|
static interface |
CfnEndpoint.DeploymentConfigProperty
The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.
|
static interface |
CfnEndpoint.TrafficRoutingConfigProperty
Defines the traffic routing strategy during an endpoint deployment to shift traffic from the old fleet to the new fleet.
|
static interface |
CfnEndpoint.VariantPropertyProperty
Specifies a production variant property type for an Endpoint.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnEndpoint(software.constructs.Construct scope,
String id,
CfnEndpointProps props)
Create a new `AWS::SageMaker::Endpoint`.
|
protected |
CfnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEndpoint(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrEndpointName()
The name of the endpoint, such as `MyEndpoint` .
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getDeploymentConfig()
The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.
|
String |
getEndpointConfigName()
The name of the [AWS::SageMaker::EndpointConfig](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpointconfig.html) resource that specifies the configuration for the endpoint.
|
String |
getEndpointName()
The name of the endpoint.The name must be unique within an AWS Region in your AWS account.
|
Object |
getExcludeRetainedVariantProperties()
When you are updating endpoint resources with [RetainAllVariantProperties](https://docs.aws.amazon.com/sagemaker/latest/dg/API_UpdateEndpoint.html#SageMaker-UpdateEndpoint-request-RetainAllVariantProperties) whose value is set to `true` , `ExcludeRetainedVariantProperties` specifies the list of type [VariantProperty](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpoint-variantproperty.html) to override with the values provided by `EndpointConfig` .
|
Object |
getRetainAllVariantProperties()
When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight.
|
Object |
getRetainDeploymentConfig()
Specifies whether to reuse the last deployment configuration.
|
TagManager |
getTags()
A list of key-value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDeploymentConfig(CfnEndpoint.DeploymentConfigProperty value)
The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.
|
void |
setDeploymentConfig(IResolvable value)
The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.
|
void |
setEndpointConfigName(String value)
The name of the [AWS::SageMaker::EndpointConfig](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpointconfig.html) resource that specifies the configuration for the endpoint.
|
void |
setEndpointName(String value)
The name of the endpoint.The name must be unique within an AWS Region in your AWS account.
|
void |
setExcludeRetainedVariantProperties(IResolvable value)
When you are updating endpoint resources with [RetainAllVariantProperties](https://docs.aws.amazon.com/sagemaker/latest/dg/API_UpdateEndpoint.html#SageMaker-UpdateEndpoint-request-RetainAllVariantProperties) whose value is set to `true` , `ExcludeRetainedVariantProperties` specifies the list of type [VariantProperty](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpoint-variantproperty.html) to override with the values provided by `EndpointConfig` .
|
void |
setExcludeRetainedVariantProperties(List<Object> value)
When you are updating endpoint resources with [RetainAllVariantProperties](https://docs.aws.amazon.com/sagemaker/latest/dg/API_UpdateEndpoint.html#SageMaker-UpdateEndpoint-request-RetainAllVariantProperties) whose value is set to `true` , `ExcludeRetainedVariantProperties` specifies the list of type [VariantProperty](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpoint-variantproperty.html) to override with the values provided by `EndpointConfig` .
|
void |
setRetainAllVariantProperties(Boolean value)
When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight.
|
void |
setRetainAllVariantProperties(IResolvable value)
When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight.
|
void |
setRetainDeploymentConfig(Boolean value)
Specifies whether to reuse the last deployment configuration.
|
void |
setRetainDeploymentConfig(IResolvable value)
Specifies whether to reuse the last deployment configuration.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnEndpoint(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnEndpoint(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnEndpointProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrEndpointName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Resource Tag and Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .
@Stability(value=Stable) @NotNull public String getEndpointConfigName()
@Stability(value=Stable)
public void setEndpointConfigName(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getDeploymentConfig()
@Stability(value=Stable)
public void setDeploymentConfig(@Nullable
CfnEndpoint.DeploymentConfigProperty value)
@Stability(value=Stable)
public void setDeploymentConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getEndpointName()
@Stability(value=Stable)
public void setEndpointName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getExcludeRetainedVariantProperties()
@Stability(value=Stable)
public void setExcludeRetainedVariantProperties(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setExcludeRetainedVariantProperties(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getRetainAllVariantProperties()
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.
@Stability(value=Stable)
public void setRetainAllVariantProperties(@Nullable
Boolean value)
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.
@Stability(value=Stable)
public void setRetainAllVariantProperties(@Nullable
IResolvable value)
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.
@Stability(value=Stable) @Nullable public Object getRetainDeploymentConfig()
The default value is false (the configuration is not reused).
@Stability(value=Stable)
public void setRetainDeploymentConfig(@Nullable
Boolean value)
The default value is false (the configuration is not reused).
@Stability(value=Stable)
public void setRetainDeploymentConfig(@Nullable
IResolvable value)
The default value is false (the configuration is not reused).
Copyright © 2022. All rights reserved.