Package: aws-solutions-constructs.aws-lambda-sagemaker
aws-lambda-sagemaker module---All classes are under active development and subject to non-backward compatible changes or removal in any
future version. These are not subject to theSemantic Versioningmodel.
This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.Reference Documentation:https://docs.aws.amazon.com/solutions/latest/constructs/LanguagePackagePythonaws_solutions_constructs.aws_lambda_sagemakerTypescript@aws-solutions-constructs/aws-lambda-sagemakerJavasoftware.amazon.awsconstructs.services.lambdasagemakerThis AWS Solutions Construct implements the AWS Lambda function and Amazon Sagemaker Notebook with the least privileged permissions.Here is a minimal deployable pattern definition in Typescript:# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826fromaws_solutions_constructs.aws_lambda_sagemakerimportLambdaToSagemakerProps,LambdaToSagemakerfromaws_cdk.coreimportAwslambda_to_sagemaker_props=LambdaToSagemakerProps(lambda_function_props=FunctionProps(code=lambda_.Code.from_asset(f"{__dirname}/lambda"),runtime=lambda_.Runtime.NODEJS_12_X,handler="index.handler"))construct=LambdaToSagemaker(stack,"test-lambda-sagemaker-stack",lambda_to_sagemaker_props)Initializernew LambdaToSagemaker(scope: Construct, id: string, props: LambdaToSagemakerProps);ParametersscopeConstructidstringpropsLambdaToSagemakerPropsPattern Construct PropsNameTypeDescriptionexistingLambdaObj?lambda.FunctionExisting instance of Lambda Function object, if this is set then the lambdaFunctionProps is ignored.lambdaFunctionProps?lambda.FunctionPropsUser provided props to override the default props for the Lambda function.sagemakerNotebookProps?sagemaker.CfnNotebookInstancePropsOptional user provided props to override the default props for a Sagemaker Notebook.deployInsideVpc?booleanOptional user provided props to deploy inside vpc. Defaults totrue.existingNotebookObj?sagemaker.CfnNotebookInstancePropsExisting instance of notebook object. If this is set then the sagemakerNotebookProps is ignoredPattern PropertiesNameTypeDescriptionlambdaFunctionlambda.FunctionReturns an instance of lambda.Function created by the constructsagemakerNotebooksagemaker.CfnNotebookInstancePropsReturns an instance of sagemaker.CfnNotebookInstanceProps created by the constructsagemakerRoleiam.RoleReturns the iam.Role created by the constructvpc?ec2.VpcReturns the ec2.Vpc created by the constructsecurityGroup?ec2.SecurityGroupReturns the ec2.SecurityGroup created by the constructDefault settingsOut of the box implementation of the Construct without any override will set the following defaults:AWS Lambda FunctionConfigure limited privilege access IAM role for Lambda functionEnable reusing connections with Keep-Alive for NodeJs Lambda functionAmazon SageMakerConfigure least privilege access IAM role for the SageMaker Notebook IntanceDeploy SageMaker NotebookInstance inside the VPCEnable server-side encryption for the SageMaker NotebookInstance using Customer Managed KMS KeyArchitecture© Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.