interface ResourceDefinitionVersionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Greengrass.CfnResourceDefinition.ResourceDefinitionVersionProperty |
Java | software.amazon.awscdk.services.greengrass.CfnResourceDefinition.ResourceDefinitionVersionProperty |
Python | aws_cdk.aws_greengrass.CfnResourceDefinition.ResourceDefinitionVersionProperty |
TypeScript | @aws-cdk/aws-greengrass » CfnResourceDefinition » ResourceDefinitionVersionProperty |
A resource definition version contains a list of resources. (In AWS CloudFormation , resources are named resource instances .).
After you create a resource definition version that contains the resources you want to deploy, you must add it to your group version. For more information, see
AWS::Greengrass::Group.
In an AWS CloudFormation template, ResourceDefinitionVersion is the property type of the InitialVersion property in the AWS::Greengrass::ResourceDefinition resource.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as greengrass from '@aws-cdk/aws-greengrass';
const resourceDefinitionVersionProperty: greengrass.CfnResourceDefinition.ResourceDefinitionVersionProperty = {
resources: [{
id: 'id',
name: 'name',
resourceDataContainer: {
localDeviceResourceData: {
sourcePath: 'sourcePath',
// the properties below are optional
groupOwnerSetting: {
autoAddGroupOwner: false,
// the properties below are optional
groupOwner: 'groupOwner',
},
},
localVolumeResourceData: {
destinationPath: 'destinationPath',
sourcePath: 'sourcePath',
// the properties below are optional
groupOwnerSetting: {
autoAddGroupOwner: false,
// the properties below are optional
groupOwner: 'groupOwner',
},
},
s3MachineLearningModelResourceData: {
destinationPath: 'destinationPath',
s3Uri: 's3Uri',
// the properties below are optional
ownerSetting: {
groupOwner: 'groupOwner',
groupPermission: 'groupPermission',
},
},
sageMakerMachineLearningModelResourceData: {
destinationPath: 'destinationPath',
sageMakerJobArn: 'sageMakerJobArn',
// the properties below are optional
ownerSetting: {
groupOwner: 'groupOwner',
groupPermission: 'groupPermission',
},
},
secretsManagerSecretResourceData: {
arn: 'arn',
// the properties below are optional
additionalStagingLabelsToDownload: ['additionalStagingLabelsToDownload'],
},
},
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| resources | IResolvable | IResolvable | Resource[] | The resources in this version. |
resources
Type:
IResolvable | IResolvable | Resource[]
The resources in this version.

.NET
Java
Python
TypeScript