-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
94 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/api-deployment/features/sagemaker/layout-analysis-sagemaker.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { CustomResource, RemovalPolicy } from 'aws-cdk-lib'; | ||
import { Repository } from 'aws-cdk-lib/aws-ecr'; | ||
import { Construct } from 'constructs'; | ||
import { FeatureNestedStack, FeatureNestedStackProps } from '../../feature-nested-stack'; | ||
import { SageMakerFeatureConstruct } from '../../sagemaker-feature-construct'; | ||
|
||
export class LayoutAnalysisSageMakerFeatureNestedStack extends FeatureNestedStack { | ||
constructor(scope: Construct, id: string, props: FeatureNestedStackProps) { | ||
|
||
super(scope, id, props); | ||
const featureName = 'layout-analysis'; | ||
this.templateOptions.description = '(SO8023-lag) - AI Solution Kit - Layout Analysis. Template version v1.4.0. See https://awslabs.github.io/aws-ai-solution-kit/en/layout-analysis.'; | ||
|
||
// The default instance type is ml.g4dn.xlarge | ||
const sageMakerConstruct = new SageMakerFeatureConstruct(this, `${featureName}-construct`, { | ||
rootRestApi: props.restApi, | ||
authorizationType: props.customAuthorizationType, | ||
restApiResourcePath: `${featureName}`, | ||
featureName: `${featureName}`, | ||
featureCategory: 'media', | ||
updateCustomResourceProvider: props.updateCustomResourceProvider, | ||
sageMakerInstanceType: props.instanceType == null ? 'ml.g4dn.xlarge' : props.instanceType, | ||
sageMakerEcrDeployment: props.ecrDeployment, | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters