interface ResourceInstanceProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Greengrass.Mixins.CfnResourceDefinitionPropsMixin.ResourceInstanceProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsgreengrass/mixins#CfnResourceDefinitionPropsMixin_ResourceInstanceProperty |
Java | software.amazon.awscdk.mixins.preview.services.greengrass.mixins.CfnResourceDefinitionPropsMixin.ResourceInstanceProperty |
Python | aws_cdk.mixins_preview.aws_greengrass.mixins.CfnResourceDefinitionPropsMixin.ResourceInstanceProperty |
TypeScript | @aws-cdk/mixins-preview » aws_greengrass » mixins » CfnResourceDefinitionPropsMixin » ResourceInstanceProperty |
A local resource, machine learning resource, or secret resource.
For more information, see Access Local Resources with Lambda Functions , Perform Machine Learning Inference , and Deploy Secrets to the AWS IoT Greengrass Core in the Developer Guide .
In an CloudFormation template, the Resources property of the AWS::Greengrass::ResourceDefinition resource contains a list of ResourceInstance property types.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as greengrass_mixins } from '@aws-cdk/mixins-preview/aws-greengrass';
const resourceInstanceProperty: greengrass_mixins.CfnResourceDefinitionPropsMixin.ResourceInstanceProperty = {
id: 'id',
name: 'name',
resourceDataContainer: {
localDeviceResourceData: {
groupOwnerSetting: {
autoAddGroupOwner: false,
groupOwner: 'groupOwner',
},
sourcePath: 'sourcePath',
},
localVolumeResourceData: {
destinationPath: 'destinationPath',
groupOwnerSetting: {
autoAddGroupOwner: false,
groupOwner: 'groupOwner',
},
sourcePath: 'sourcePath',
},
s3MachineLearningModelResourceData: {
destinationPath: 'destinationPath',
ownerSetting: {
groupOwner: 'groupOwner',
groupPermission: 'groupPermission',
},
s3Uri: 's3Uri',
},
sageMakerMachineLearningModelResourceData: {
destinationPath: 'destinationPath',
ownerSetting: {
groupOwner: 'groupOwner',
groupPermission: 'groupPermission',
},
sageMakerJobArn: 'sageMakerJobArn',
},
secretsManagerSecretResourceData: {
additionalStagingLabelsToDownload: ['additionalStagingLabelsToDownload'],
arn: 'arn',
},
},
};
Properties
| Name | Type | Description |
|---|---|---|
| id? | string | A descriptive or arbitrary ID for the resource. |
| name? | string | The descriptive resource name, which is displayed on the AWS IoT Greengrass console. |
| resource | IResolvable | Resource | A container for resource data. |
id?
Type:
string
(optional)
A descriptive or arbitrary ID for the resource.
This value must be unique within the resource definition version. Maximum length is 128 characters with pattern [a-zA-Z0-9:_-]+ .
name?
Type:
string
(optional)
The descriptive resource name, which is displayed on the AWS IoT Greengrass console.
Maximum length 128 characters with pattern [a-zA-Z0-9:_-]+. This must be unique within a Greengrass group.
resourceDataContainer?
Type:
IResolvable | Resource
(optional)
A container for resource data.
The container takes only one of the following supported resource data types: LocalDeviceResourceData , LocalVolumeResourceData , SageMakerMachineLearningModelResourceData , S3MachineLearningModelResourceData , or SecretsManagerSecretResourceData .
Only one resource type can be defined for a
ResourceDataContainerinstance.

.NET
Go
Java
Python
TypeScript