Skip to content
v2.274.0

CfnResourceDefinitionVersionProps Struct ​

Properties for defining a CfnResourceDefinitionVersion.

Example ​

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 cfnResourceDefinitionVersionProps: greengrass.CfnResourceDefinitionVersionProps = {
  resourceDefinitionId: 'resourceDefinitionId',
  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 ​

resourceDefinitionIdstringresource_definition_idstrresourceDefinitionIdStringResourceDefinitionIdstringResourceDefinitionId*stringrequired#
The ID of the resource definition associated with this version.

This value is a GUID.

resourcesIResolvable | IResolvable | CfnResourceDefinitionVersion.ResourceInstanceProperty[]resourcestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ResourceInstanceProperty]]]resourcesIResolvableResourcesIResolvableResourcesinterface{}required#
The resources in this version.