aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.33k stars 3.76k forks source link

feat(sagemaker): network isolation for a model #30657

Open badmintoncryer opened 3 days ago

badmintoncryer commented 3 days ago

Issue # (if applicable)

None

Reason for this change

SageMaker model supports for the network isolation function. But Model construct does not support this.

Description of changes

Add networkIsolation to ModelProps

const model = new sagemaker.Model(this, 'ContainerModel', {
  containers: [
    {
      image,
      modelData,
    }
  ],
  networkIsolation: true, // Added
});

Description of how you validated changes

Added both unit and integ tests

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

aws-cdk-automation commented 3 days ago

AWS CodeBuild CI Report

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository