# SageMakerMachineLearningModelResourceDataProperty

Settings for an Secrets Manager machine learning resource.

For more information, see [Perform Machine Learning Inference](https://docs.aws.amazon.com/greengrass/v1/developerguide/ml-inference.html) in the *Developer Guide* .

In an CloudFormation template, `SageMakerMachineLearningModelResourceData` can be used in the [`ResourceDataContainer`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourcedatacontainer.html) property type.

- 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 sageMakerMachineLearningModelResourceDataProperty: greengrass.CfnResourceDefinitionVersion.SageMakerMachineLearningModelResourceDataProperty = {
  destinationPath: 'destinationPath',
  sageMakerJobArn: 'sageMakerJobArn',

  // the properties below are optional
  ownerSetting: {
    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

sage_maker_machine_learning_model_resource_data_property = greengrass.CfnResourceDefinitionVersion.SageMakerMachineLearningModelResourceDataProperty(
    destination_path="destinationPath",
    sage_maker_job_arn="sageMakerJobArn",

    # the properties below are optional
    owner_setting=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.*;

SageMakerMachineLearningModelResourceDataProperty sageMakerMachineLearningModelResourceDataProperty = SageMakerMachineLearningModelResourceDataProperty.builder()
        .destinationPath("destinationPath")
        .sageMakerJobArn("sageMakerJobArn")

        // the properties below are optional
        .ownerSetting(ResourceDownloadOwnerSettingProperty.builder()
                .groupOwner("groupOwner")
                .groupPermission("groupPermission")
                .build())
        .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 sageMakerMachineLearningModelResourceDataProperty = new SageMakerMachineLearningModelResourceDataProperty {
    DestinationPath = "destinationPath",
    SageMakerJobArn = "sageMakerJobArn",

    // the properties below are optional
    OwnerSetting = 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"

sageMakerMachineLearningModelResourceDataProperty := &SageMakerMachineLearningModelResourceDataProperty{
	DestinationPath: jsii.String("destinationPath"),
	SageMakerJobArn: jsii.String("sageMakerJobArn"),

	// the properties below are optional
	OwnerSetting: &ResourceDownloadOwnerSettingProperty{
		GroupOwner: jsii.String("groupOwner"),
		GroupPermission: jsii.String("groupPermission"),
	},
}
```

## Properties

- `destinationPath`: string (required) — The absolute local path of the resource inside the Lambda environment.

- `ownerSetting`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnResourceDefinitionVersion.ResourceDownloadOwnerSettingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_greengrass.CfnResourceDefinitionVersion.ResourceDownloadOwnerSettingProperty.html) — The owner setting for the 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* .

- `sageMakerJobArn`: string (required) — The Amazon Resource Name (ARN) of the Amazon SageMaker AI training job that represents the source model.
