Skip to content
v2.274.0

CfnInferenceComponentPropsMixin Mixin ​

Creates an inference component, which is a SageMaker AI hosting object that you can use to deploy a model to an endpoint.

In the inference component settings, you specify the model, the endpoint, and how the model utilizes the resources that the endpoint hosts. You can optimize resource utilization by tailoring how the required CPU cores, accelerators, and memory are allocated. You can deploy multiple inference components to an endpoint, where each inference component contains one model and the resource utilization needs for that individual model. After you deploy an inference component, you can directly invoke the associated model when you use the InvokeEndpoint API action.

Initializer ​

ts
new CfnInferenceComponentPropsMixin(props: CfnInferenceComponentMixinProps, options?: CfnPropertyMixinOptions)
python
CfnInferenceComponentPropsMixin(props: CfnInferenceComponentMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
java
new CfnInferenceComponentPropsMixin(CfnInferenceComponentMixinProps props, CfnPropertyMixinOptions options)
csharp
new CfnInferenceComponentPropsMixin(CfnInferenceComponentMixinProps props, CfnPropertyMixinOptions? options = null)
go
NewCfnInferenceComponentPropsMixin(Props CfnInferenceComponentMixinProps, Options CfnPropertyMixinOptions)

Methods ​

applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct)#
Apply the mixin properties to the construct.
isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *boolstatic#
Checks if `x` is a Mixin.
1 parameter · returns

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Mixin.

supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool#
Check if this mixin supports the given construct.