aws-cdk-lib.aws_greengrass.CfnResourceDefinition.ResourceDataContainerProperty

interface ResourceDataContainerProperty

LanguageType name
.NETAmazon.CDK.AWS.Greengrass.CfnResourceDefinition.ResourceDataContainerProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsgreengrass#CfnResourceDefinition_ResourceDataContainerProperty
Javasoftware.amazon.awscdk.services.greengrass.CfnResourceDefinition.ResourceDataContainerProperty
Pythonaws_cdk.aws_greengrass.CfnResourceDefinition.ResourceDataContainerProperty
TypeScript aws-cdk-lib » aws_greengrass » CfnResourceDefinition » ResourceDataContainerProperty

A container for resource data, which defines the resource type.

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 ResourceDataContainer instance.

In an AWS CloudFormation template, ResourceDataContainer is a property of the ResourceInstance property type.

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 resourceDataContainerProperty: greengrass.CfnResourceDefinition.ResourceDataContainerProperty = {
  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

NameTypeDescription
localDeviceResourceData?IResolvable | LocalDeviceResourceDataPropertySettings for a local device resource.
localVolumeResourceData?IResolvable | LocalVolumeResourceDataPropertySettings for a local volume resource.
s3MachineLearningModelResourceData?IResolvable | S3MachineLearningModelResourceDataPropertySettings for a machine learning resource stored in Amazon S3 .
sageMakerMachineLearningModelResourceData?IResolvable | SageMakerMachineLearningModelResourceDataPropertySettings for a machine learning resource saved as an SageMaker training job.
secretsManagerSecretResourceData?IResolvable | SecretsManagerSecretResourceDataPropertySettings for a secret resource.

localDeviceResourceData?

Type: IResolvable | LocalDeviceResourceDataProperty (optional)

Settings for a local device resource.


localVolumeResourceData?

Type: IResolvable | LocalVolumeResourceDataProperty (optional)

Settings for a local volume resource.


s3MachineLearningModelResourceData?

Type: IResolvable | S3MachineLearningModelResourceDataProperty (optional)

Settings for a machine learning resource stored in Amazon S3 .


sageMakerMachineLearningModelResourceData?

Type: IResolvable | SageMakerMachineLearningModelResourceDataProperty (optional)

Settings for a machine learning resource saved as an SageMaker training job.


secretsManagerSecretResourceData?

Type: IResolvable | SecretsManagerSecretResourceDataProperty (optional)

Settings for a secret resource.