Interface CfnResourceDefinitionVersion.IResourceDataContainerProperty
A container for resource data, which defines the resource type.
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IResourceDataContainerProperty
Syntax (vb)
Public Interface IResourceDataContainerProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Greengrass;
var resourceDataContainerProperty = new ResourceDataContainerProperty {
LocalDeviceResourceData = new LocalDeviceResourceDataProperty {
SourcePath = "sourcePath",
// the properties below are optional
GroupOwnerSetting = new GroupOwnerSettingProperty {
AutoAddGroupOwner = false,
// the properties below are optional
GroupOwner = "groupOwner"
}
},
LocalVolumeResourceData = new LocalVolumeResourceDataProperty {
DestinationPath = "destinationPath",
SourcePath = "sourcePath",
// the properties below are optional
GroupOwnerSetting = new GroupOwnerSettingProperty {
AutoAddGroupOwner = false,
// the properties below are optional
GroupOwner = "groupOwner"
}
},
S3MachineLearningModelResourceData = new S3MachineLearningModelResourceDataProperty {
DestinationPath = "destinationPath",
S3Uri = "s3Uri",
// the properties below are optional
OwnerSetting = new ResourceDownloadOwnerSettingProperty {
GroupOwner = "groupOwner",
GroupPermission = "groupPermission"
}
},
SageMakerMachineLearningModelResourceData = new SageMakerMachineLearningModelResourceDataProperty {
DestinationPath = "destinationPath",
SageMakerJobArn = "sageMakerJobArn",
// the properties below are optional
OwnerSetting = new ResourceDownloadOwnerSettingProperty {
GroupOwner = "groupOwner",
GroupPermission = "groupPermission"
}
},
SecretsManagerSecretResourceData = new SecretsManagerSecretResourceDataProperty {
Arn = "arn",
// the properties below are optional
AdditionalStagingLabelsToDownload = new [] { "additionalStagingLabelsToDownload" }
}
};
Synopsis
Properties
LocalDeviceResourceData | Settings for a local device resource. |
LocalVolumeResourceData | Settings for a local volume resource. |
S3MachineLearningModelResourceData | Settings for a machine learning resource stored in Amazon S3 . |
SageMakerMachineLearningModelResourceData | Settings for a machine learning resource saved as an SageMaker training job. |
SecretsManagerSecretResourceData | Settings for a secret resource. |
Properties
LocalDeviceResourceData
Settings for a local device resource.
virtual object LocalDeviceResourceData { get; }
Property Value
System.Object
Remarks
LocalVolumeResourceData
Settings for a local volume resource.
virtual object LocalVolumeResourceData { get; }
Property Value
System.Object
Remarks
S3MachineLearningModelResourceData
Settings for a machine learning resource stored in Amazon S3 .
virtual object S3MachineLearningModelResourceData { get; }
Property Value
System.Object
Remarks
SageMakerMachineLearningModelResourceData
Settings for a machine learning resource saved as an SageMaker training job.
virtual object SageMakerMachineLearningModelResourceData { get; }
Property Value
System.Object
Remarks
SecretsManagerSecretResourceData
Settings for a secret resource.
virtual object SecretsManagerSecretResourceData { get; }
Property Value
System.Object