interface ResourceDefinitionVersionProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Greengrass.CfnResourceDefinition.ResourceDefinitionVersionProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsgreengrass#CfnResourceDefinition_ResourceDefinitionVersionProperty |
![]() | software.amazon.awscdk.services.greengrass.CfnResourceDefinition.ResourceDefinitionVersionProperty |
![]() | aws_cdk.aws_greengrass.CfnResourceDefinition.ResourceDefinitionVersionProperty |
![]() | aws-cdk-lib » 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 { aws_greengrass as greengrass } from 'aws-cdk-lib';
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.