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
new CfnInferenceComponentPropsMixin(props: CfnInferenceComponentMixinProps, options?: CfnPropertyMixinOptions)
CfnInferenceComponentPropsMixin(props: CfnInferenceComponentMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
new CfnInferenceComponentPropsMixin(CfnInferenceComponentMixinProps props, CfnPropertyMixinOptions options)
new CfnInferenceComponentPropsMixin(CfnInferenceComponentMixinProps props, CfnPropertyMixinOptions? options = null)
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)#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#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#