Class CfnEndpointConfig
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.CfnEndpointConfig
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-14T13:31:17.513Z")
@Stability(Stable)
public class CfnEndpointConfig
extends CfnResource
implements IInspectable, ITaggable
The
AWS::SageMaker::EndpointConfig
resource creates a configuration for an Amazon SageMaker endpoint.
For more information, see CreateEndpointConfig in the 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.*; CfnEndpointConfig cfnEndpointConfig = CfnEndpointConfig.Builder.create(this, "MyCfnEndpointConfig") .productionVariants(List.of(ProductionVariantProperty.builder() .variantName("variantName") // the properties below are optional .acceleratorType("acceleratorType") .containerStartupHealthCheckTimeoutInSeconds(123) .enableSsmAccess(false) .initialInstanceCount(123) .initialVariantWeight(123) .instanceType("instanceType") .managedInstanceScaling(ManagedInstanceScalingProperty.builder() .maxInstanceCount(123) .minInstanceCount(123) .status("status") .build()) .modelDataDownloadTimeoutInSeconds(123) .modelName("modelName") .routingConfig(RoutingConfigProperty.builder() .routingStrategy("routingStrategy") .build()) .serverlessConfig(ServerlessConfigProperty.builder() .maxConcurrency(123) .memorySizeInMb(123) // the properties below are optional .provisionedConcurrency(123) .build()) .volumeSizeInGb(123) .build())) // the properties below are optional .asyncInferenceConfig(AsyncInferenceConfigProperty.builder() .outputConfig(AsyncInferenceOutputConfigProperty.builder() .kmsKeyId("kmsKeyId") .notificationConfig(AsyncInferenceNotificationConfigProperty.builder() .errorTopic("errorTopic") .includeInferenceResponseIn(List.of("includeInferenceResponseIn")) .successTopic("successTopic") .build()) .s3FailurePath("s3FailurePath") .s3OutputPath("s3OutputPath") .build()) // the properties below are optional .clientConfig(AsyncInferenceClientConfigProperty.builder() .maxConcurrentInvocationsPerInstance(123) .build()) .build()) .dataCaptureConfig(DataCaptureConfigProperty.builder() .captureOptions(List.of(CaptureOptionProperty.builder() .captureMode("captureMode") .build())) .destinationS3Uri("destinationS3Uri") .initialSamplingPercentage(123) // the properties below are optional .captureContentTypeHeader(CaptureContentTypeHeaderProperty.builder() .csvContentTypes(List.of("csvContentTypes")) .jsonContentTypes(List.of("jsonContentTypes")) .build()) .enableCapture(false) .kmsKeyId("kmsKeyId") .build()) .enableNetworkIsolation(false) .endpointConfigName("endpointConfigName") .executionRoleArn("executionRoleArn") .explainerConfig(ExplainerConfigProperty.builder() .clarifyExplainerConfig(ClarifyExplainerConfigProperty.builder() .shapConfig(ClarifyShapConfigProperty.builder() .shapBaselineConfig(ClarifyShapBaselineConfigProperty.builder() .mimeType("mimeType") .shapBaseline("shapBaseline") .shapBaselineUri("shapBaselineUri") .build()) // the properties below are optional .numberOfSamples(123) .seed(123) .textConfig(ClarifyTextConfigProperty.builder() .granularity("granularity") .language("language") .build()) .useLogit(false) .build()) // the properties below are optional .enableExplanations("enableExplanations") .inferenceConfig(ClarifyInferenceConfigProperty.builder() .contentTemplate("contentTemplate") .featureHeaders(List.of("featureHeaders")) .featuresAttribute("featuresAttribute") .featureTypes(List.of("featureTypes")) .labelAttribute("labelAttribute") .labelHeaders(List.of("labelHeaders")) .labelIndex(123) .maxPayloadInMb(123) .maxRecordCount(123) .probabilityAttribute("probabilityAttribute") .probabilityIndex(123) .build()) .build()) .build()) .kmsKeyId("kmsKeyId") .shadowProductionVariants(List.of(ProductionVariantProperty.builder() .variantName("variantName") // the properties below are optional .acceleratorType("acceleratorType") .containerStartupHealthCheckTimeoutInSeconds(123) .enableSsmAccess(false) .initialInstanceCount(123) .initialVariantWeight(123) .instanceType("instanceType") .managedInstanceScaling(ManagedInstanceScalingProperty.builder() .maxInstanceCount(123) .minInstanceCount(123) .status("status") .build()) .modelDataDownloadTimeoutInSeconds(123) .modelName("modelName") .routingConfig(RoutingConfigProperty.builder() .routingStrategy("routingStrategy") .build()) .serverlessConfig(ServerlessConfigProperty.builder() .maxConcurrency(123) .memorySizeInMb(123) // the properties below are optional .provisionedConcurrency(123) .build()) .volumeSizeInGb(123) .build())) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .vpcConfig(VpcConfigProperty.builder() .securityGroupIds(List.of("securityGroupIds")) .subnets(List.of("subnets")) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Configures the behavior of the client used by SageMaker to interact with the model container during asynchronous inference.static interface
Specifies configuration for how an endpoint performs asynchronous inference.static interface
Specifies the configuration for notifications of inference results for asynchronous inference.static interface
Specifies the configuration for asynchronous inference invocation outputs.static final class
A fluent builder forCfnEndpointConfig
.static interface
Specifies the JSON and CSV content types of the data that the endpoint captures.static interface
Specifies whether the endpoint captures input data or output data.static interface
The configuration parameters for the SageMaker Clarify explainer.static interface
The inference configuration parameter for the model container.static interface
The configuration for the SHAP baseline (also called the background or reference dataset) of the Kernal SHAP algorithm.static interface
The configuration for SHAP analysis using SageMaker Clarify Explainer.static interface
A parameter used to configure the SageMaker Clarify explainer to treat text features as text so that explanations are provided for individual units of text.static interface
Specifies the configuration of your endpoint for model monitor data capture.static interface
A parameter to activate explainers.static interface
Example:static interface
Specifies a model that you want to host and the resources to deploy for hosting it.static interface
Example:static interface
Specifies the serverless configuration for an endpoint variant.static interface
Example:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnEndpointConfig
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnEndpointConfig
(software.amazon.jsii.JsiiObjectRef objRef) CfnEndpointConfig
(software.constructs.Construct scope, String id, CfnEndpointConfigProps props) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies configuration for how an endpoint performs asynchronous inference.The name of the endpoint configuration, such asMyEndpointConfiguration
.Specifies how to capture endpoint data for model monitor.The name of the endpoint configuration.A parameter to activate explainers.The Amazon Resource Name (ARN) of an AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint.A list ofProductionVariant
objects, one for each model that you want to host at this endpoint.Array ofProductionVariant
objects.getTags()
Tag Manager which manages the tags for this resource.A list of key-value pairs to apply to this resource.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
Specifies configuration for how an endpoint performs asynchronous inference.void
Specifies configuration for how an endpoint performs asynchronous inference.void
setDataCaptureConfig
(IResolvable value) Specifies how to capture endpoint data for model monitor.void
Specifies how to capture endpoint data for model monitor.void
setEnableNetworkIsolation
(Boolean value) void
void
setEndpointConfigName
(String value) The name of the endpoint configuration.void
setExecutionRoleArn
(String value) void
setExplainerConfig
(IResolvable value) A parameter to activate explainers.void
A parameter to activate explainers.void
setKmsKeyId
(String value) The Amazon Resource Name (ARN) of an AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint.void
setProductionVariants
(List<Object> value) A list ofProductionVariant
objects, one for each model that you want to host at this endpoint.void
setProductionVariants
(IResolvable value) A list ofProductionVariant
objects, one for each model that you want to host at this endpoint.void
setShadowProductionVariants
(List<Object> value) Array ofProductionVariant
objects.void
Array ofProductionVariant
objects.void
setTagsRaw
(List<CfnTag> value) A list of key-value pairs to apply to this resource.void
setVpcConfig
(IResolvable value) void
Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
CfnEndpointConfig
protected CfnEndpointConfig(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEndpointConfig
protected CfnEndpointConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEndpointConfig
@Stability(Stable) public CfnEndpointConfig(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEndpointConfigProps props) - 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrEndpointConfigName
The name of the endpoint configuration, such asMyEndpointConfiguration
. -
getAttrId
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getProductionVariants
A list ofProductionVariant
objects, one for each model that you want to host at this endpoint. -
setProductionVariants
A list ofProductionVariant
objects, one for each model that you want to host at this endpoint. -
setProductionVariants
A list ofProductionVariant
objects, one for each model that you want to host at this endpoint. -
getAsyncInferenceConfig
Specifies configuration for how an endpoint performs asynchronous inference. -
setAsyncInferenceConfig
Specifies configuration for how an endpoint performs asynchronous inference. -
setAsyncInferenceConfig
@Stability(Stable) public void setAsyncInferenceConfig(@Nullable CfnEndpointConfig.AsyncInferenceConfigProperty value) Specifies configuration for how an endpoint performs asynchronous inference. -
getDataCaptureConfig
Specifies how to capture endpoint data for model monitor. -
setDataCaptureConfig
Specifies how to capture endpoint data for model monitor. -
setDataCaptureConfig
@Stability(Stable) public void setDataCaptureConfig(@Nullable CfnEndpointConfig.DataCaptureConfigProperty value) Specifies how to capture endpoint data for model monitor. -
getEnableNetworkIsolation
-
setEnableNetworkIsolation
-
setEnableNetworkIsolation
-
getEndpointConfigName
The name of the endpoint configuration. -
setEndpointConfigName
The name of the endpoint configuration. -
getExecutionRoleArn
-
setExecutionRoleArn
-
getExplainerConfig
A parameter to activate explainers. -
setExplainerConfig
A parameter to activate explainers. -
setExplainerConfig
@Stability(Stable) public void setExplainerConfig(@Nullable CfnEndpointConfig.ExplainerConfigProperty value) A parameter to activate explainers. -
getKmsKeyId
The Amazon Resource Name (ARN) of an AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. -
setKmsKeyId
The Amazon Resource Name (ARN) of an AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint. -
getShadowProductionVariants
Array ofProductionVariant
objects. -
setShadowProductionVariants
Array ofProductionVariant
objects. -
setShadowProductionVariants
Array ofProductionVariant
objects. -
getTagsRaw
A list of key-value pairs to apply to this resource. -
setTagsRaw
A list of key-value pairs to apply to this resource. -
getVpcConfig
-
setVpcConfig
-
setVpcConfig
-