Skip to content
v2.278.0

ResourceDownloadOwnerSettingProperty Struct ​

The owner setting for a downloaded machine learning resource.

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

In an CloudFormation template, ResourceDownloadOwnerSetting is the property type of the OwnerSetting property for the S3MachineLearningModelResourceData and SageMakerMachineLearningModelResourceData property types.

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 resourceDownloadOwnerSettingProperty: greengrass.CfnResourceDefinitionVersion.ResourceDownloadOwnerSettingProperty = {
  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

resource_download_owner_setting_property = 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.*;

ResourceDownloadOwnerSettingProperty resourceDownloadOwnerSettingProperty = ResourceDownloadOwnerSettingProperty.builder()
        .groupOwner("groupOwner")
        .groupPermission("groupPermission")
        .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 resourceDownloadOwnerSettingProperty = 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"

resourceDownloadOwnerSettingProperty := &ResourceDownloadOwnerSettingProperty{
	GroupOwner: jsii.String("groupOwner"),
	GroupPermission: jsii.String("groupPermission"),
}

Properties ​

groupOwnerstringgroup_ownerstrgroupOwnerStringGroupOwnerstringGroupOwner*string required #
The group owner of the machine learning resource.

This is the group ID (GID) of an existing Linux OS group on the system. The group's permissions are added to the Lambda process.

groupPermissionstringgroup_permissionstrgroupPermissionStringGroupPermissionstringGroupPermission*string required #
The permissions that the group owner has to the machine learning resource.

Valid values are rw (read-write) or ro (read-only).