# ResourceDownloadOwnerSettingProperty

The owner setting for a downloaded machine learning resource.

For more information, see [Access Machine Learning Resources from Lambda Functions](https://docs.aws.amazon.com/greengrass/v1/developerguide/access-ml-resources.html) in the *Developer Guide* .

In an CloudFormation template, `ResourceDownloadOwnerSetting` is the property type of the `OwnerSetting` property for the [`S3MachineLearningModelResourceData`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-s3machinelearningmodelresourcedata.html) and [`SageMakerMachineLearningModelResourceData`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-sagemakermachinelearningmodelresourcedata.html) property types.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `groupOwner`: 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.

- `groupPermission`: string (required) — The permissions that the group owner has to the machine learning resource.

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