interface ResourceDataContainerProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Greengrass.CfnResourceDefinitionVersion.ResourceDataContainerProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsgreengrass#CfnResourceDefinitionVersion_ResourceDataContainerProperty |
![]() | software.amazon.awscdk.services.greengrass.CfnResourceDefinitionVersion.ResourceDataContainerProperty |
![]() | aws_cdk.aws_greengrass.CfnResourceDefinitionVersion.ResourceDataContainerProperty |
![]() | aws-cdk-lib » aws_greengrass » CfnResourceDefinitionVersion » 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.CfnResourceDefinitionVersion.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
Name | Type | Description |
---|---|---|
local | IResolvable | Local | Settings for a local device resource. |
local | IResolvable | Local | Settings for a local volume resource. |
s3 | IResolvable | S3 | Settings for a machine learning resource stored in Amazon S3 . |
sage | IResolvable | Sage | Settings for a machine learning resource saved as an SageMaker AI training job. |
secrets | IResolvable | Secrets | Settings for a secret resource. |
localDeviceResourceData?
Type:
IResolvable
|
Local
(optional)
Settings for a local device resource.
localVolumeResourceData?
Type:
IResolvable
|
Local
(optional)
Settings for a local volume resource.
s3MachineLearningModelResourceData?
Type:
IResolvable
|
S3
(optional)
Settings for a machine learning resource stored in Amazon S3 .
sageMakerMachineLearningModelResourceData?
Type:
IResolvable
|
Sage
(optional)
Settings for a machine learning resource saved as an SageMaker AI training job.
secretsManagerSecretResourceData?
Type:
IResolvable
|
Secrets
(optional)
Settings for a secret resource.