S3MachineLearningModelResourceDataProperty Struct
Settings for an Amazon S3 machine learning resource.
For more information, see Perform Machine Learning Inference in the Developer Guide .
In an CloudFormation template, S3MachineLearningModelResourceData can be used in the ResourceDataContainer property type.
Example
ts
// 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',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_greengrass as greengrass
s3_machine_learning_model_resource_data_property = greengrass.CfnResourceDefinitionVersion.S3MachineLearningModelResourceDataProperty(
destination_path="destinationPath",
s3_uri="s3Uri",
# the properties below are optional
owner_setting=greengrass.CfnResourceDefinitionVersion.ResourceDownloadOwnerSettingProperty(
group_owner="groupOwner",
group_permission="groupPermission"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.greengrass.*;
S3MachineLearningModelResourceDataProperty s3MachineLearningModelResourceDataProperty = S3MachineLearningModelResourceDataProperty.builder()
.destinationPath("destinationPath")
.s3Uri("s3Uri")
// the properties below are optional
.ownerSetting(ResourceDownloadOwnerSettingProperty.builder()
.groupOwner("groupOwner")
.groupPermission("groupPermission")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Greengrass;
var s3MachineLearningModelResourceDataProperty = new S3MachineLearningModelResourceDataProperty {
DestinationPath = "destinationPath",
S3Uri = "s3Uri",
// the properties below are optional
OwnerSetting = new ResourceDownloadOwnerSettingProperty {
GroupOwner = "groupOwner",
GroupPermission = "groupPermission"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
s3MachineLearningModelResourceDataProperty := &S3MachineLearningModelResourceDataProperty{
DestinationPath: jsii.String("destinationPath"),
S3Uri: jsii.String("s3Uri"),
// the properties below are optional
OwnerSetting: &ResourceDownloadOwnerSettingProperty{
GroupOwner: jsii.String("groupOwner"),
GroupPermission: jsii.String("groupPermission"),
},
}
Properties
destinationPathstringdestination_pathstrdestinationPathStringDestinationPathstringDestinationPath*stringrequired#The absolute local path of the resource inside the Lambda environment.
ownerSettingoptionalIResolvable | CfnResourceDefinitionVersion.ResourceDownloadOwnerSettingPropertyowner_settingoptionaltyping.Union[IResolvable, ResourceDownloadOwnerSettingProperty]ownerSettingoptionalIResolvableOwnerSettingoptionalIResolvableOwnerSettingoptionalinterface{}#The owner setting for the downloaded machine learning resource.
For more information, see Access Machine Learning Resources from Lambda Functions in the Developer Guide .
The URI of the source model in an Amazon S3 bucket.
The model package must be in tar.gz or .zip format.