aws-cdk-lib.aws_greengrass.CfnResourceDefinitionVersion.S3MachineLearningModelResourceDataProperty

interface S3MachineLearningModelResourceDataProperty

LanguageType name
.NETAmazon.CDK.AWS.Greengrass.CfnResourceDefinitionVersion.S3MachineLearningModelResourceDataProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsgreengrass#CfnResourceDefinitionVersion_S3MachineLearningModelResourceDataProperty
Javasoftware.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.S3MachineLearningModelResourceDataProperty
Pythonaws_cdk.aws_greengrass.CfnResourceDefinitionVersion.S3MachineLearningModelResourceDataProperty
TypeScript aws-cdk-lib » aws_greengrass » CfnResourceDefinitionVersion » S3MachineLearningModelResourceDataProperty

Settings for an Amazon S3 machine learning resource.

For more information, see Perform Machine Learning Inference in the Developer Guide .

In an AWS CloudFormation template, S3MachineLearningModelResourceData can be used in the ResourceDataContainer property type.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrass as greengrass } from 'aws-cdk-lib';
const s3MachineLearningModelResourceDataProperty: greengrass.CfnResourceDefinitionVersion.S3MachineLearningModelResourceDataProperty = {
  destinationPath: 'destinationPath',
  s3Uri: 's3Uri',

  // the properties below are optional
  ownerSetting: {
    groupOwner: 'groupOwner',
    groupPermission: 'groupPermission',
  },
};

Properties

NameTypeDescription
destinationPathstringThe absolute local path of the resource inside the Lambda environment.
s3UristringThe URI of the source model in an Amazon S3 bucket.
ownerSetting?IResolvable | ResourceDownloadOwnerSettingPropertyThe owner setting for the downloaded machine learning resource.

destinationPath

Type: string

The absolute local path of the resource inside the Lambda environment.


s3Uri

Type: string

The URI of the source model in an Amazon S3 bucket.

The model package must be in tar.gz or .zip format.


ownerSetting?

Type: IResolvable | ResourceDownloadOwnerSettingProperty (optional)

The owner setting for the downloaded machine learning resource.

For more information, see Access Machine Learning Resources from Lambda Functions in the Developer Guide .