class CfnModelPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.SageMaker.Mixins.CfnModelPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awssagemaker/mixins#CfnModelPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.sagemaker.mixins.CfnModelPropsMixin |
Python | aws_cdk.mixins_preview.aws_sagemaker.mixins.CfnModelPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_sagemaker » mixins » CfnModelPropsMixin |
Implements
IMixin
Extends
Mixin
The AWS::SageMaker::Model resource to create a model to host at an Amazon SageMaker endpoint.
For more information, see Deploying a Model on Amazon SageMaker Hosting Services in the Amazon SageMaker Developer Guide .
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-model.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as sagemaker_mixins } from '@aws-cdk/mixins-preview/aws-sagemaker';
declare const environment: any;
const cfnModelPropsMixin = new sagemaker_mixins.CfnModelPropsMixin({
containers: [{
containerHostname: 'containerHostname',
environment: environment,
image: 'image',
imageConfig: {
repositoryAccessMode: 'repositoryAccessMode',
repositoryAuthConfig: {
repositoryCredentialsProviderArn: 'repositoryCredentialsProviderArn',
},
},
inferenceSpecificationName: 'inferenceSpecificationName',
mode: 'mode',
modelDataSource: {
s3DataSource: {
compressionType: 'compressionType',
hubAccessConfig: {
hubContentArn: 'hubContentArn',
},
modelAccessConfig: {
acceptEula: false,
},
s3DataType: 's3DataType',
s3Uri: 's3Uri',
},
},
modelDataUrl: 'modelDataUrl',
modelPackageName: 'modelPackageName',
multiModelConfig: {
modelCacheSetting: 'modelCacheSetting',
},
}],
enableNetworkIsolation: false,
executionRoleArn: 'executionRoleArn',
inferenceExecutionConfig: {
mode: 'mode',
},
modelName: 'modelName',
primaryContainer: {
containerHostname: 'containerHostname',
environment: environment,
image: 'image',
imageConfig: {
repositoryAccessMode: 'repositoryAccessMode',
repositoryAuthConfig: {
repositoryCredentialsProviderArn: 'repositoryCredentialsProviderArn',
},
},
inferenceSpecificationName: 'inferenceSpecificationName',
mode: 'mode',
modelDataSource: {
s3DataSource: {
compressionType: 'compressionType',
hubAccessConfig: {
hubContentArn: 'hubContentArn',
},
modelAccessConfig: {
acceptEula: false,
},
s3DataType: 's3DataType',
s3Uri: 's3Uri',
},
},
modelDataUrl: 'modelDataUrl',
modelPackageName: 'modelPackageName',
multiModelConfig: {
modelCacheSetting: 'modelCacheSetting',
},
},
tags: [{
key: 'key',
value: 'value',
}],
vpcConfig: {
securityGroupIds: ['securityGroupIds'],
subnets: ['subnets'],
},
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnModelPropsMixin(props: CfnModelMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Model Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::SageMaker::Model.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript