Interface CfnResourceDefinitionVersion.ResourceDataContainerProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResourceDefinitionVersion.ResourceDataContainerProperty.Jsii$Proxy
- Enclosing class:
CfnResourceDefinitionVersion
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
ResourceDataContainerinstance.
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 software.amazon.awscdk.services.greengrass.*;
ResourceDataContainerProperty resourceDataContainerProperty = ResourceDataContainerProperty.builder()
.localDeviceResourceData(LocalDeviceResourceDataProperty.builder()
.sourcePath("sourcePath")
// the properties below are optional
.groupOwnerSetting(GroupOwnerSettingProperty.builder()
.autoAddGroupOwner(false)
// the properties below are optional
.groupOwner("groupOwner")
.build())
.build())
.localVolumeResourceData(LocalVolumeResourceDataProperty.builder()
.destinationPath("destinationPath")
.sourcePath("sourcePath")
// the properties below are optional
.groupOwnerSetting(GroupOwnerSettingProperty.builder()
.autoAddGroupOwner(false)
// the properties below are optional
.groupOwner("groupOwner")
.build())
.build())
.s3MachineLearningModelResourceData(S3MachineLearningModelResourceDataProperty.builder()
.destinationPath("destinationPath")
.s3Uri("s3Uri")
// the properties below are optional
.ownerSetting(ResourceDownloadOwnerSettingProperty.builder()
.groupOwner("groupOwner")
.groupPermission("groupPermission")
.build())
.build())
.sageMakerMachineLearningModelResourceData(SageMakerMachineLearningModelResourceDataProperty.builder()
.destinationPath("destinationPath")
.sageMakerJobArn("sageMakerJobArn")
// the properties below are optional
.ownerSetting(ResourceDownloadOwnerSettingProperty.builder()
.groupOwner("groupOwner")
.groupPermission("groupPermission")
.build())
.build())
.secretsManagerSecretResourceData(SecretsManagerSecretResourceDataProperty.builder()
.arn("arn")
// the properties below are optional
.additionalStagingLabelsToDownload(List.of("additionalStagingLabelsToDownload"))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnResourceDefinitionVersion.ResourceDataContainerProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectSettings for a local device resource.default ObjectSettings for a local volume resource.default ObjectSettings for a machine learning resource stored in Amazon S3 .default ObjectSettings for a machine learning resource saved as an SageMaker AI training job.default ObjectSettings for a secret resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLocalDeviceResourceData
Settings for a local device resource.Returns union: either
IResolvableorCfnResourceDefinitionVersion.LocalDeviceResourceDataProperty- See Also:
-
getLocalVolumeResourceData
Settings for a local volume resource.Returns union: either
IResolvableorCfnResourceDefinitionVersion.LocalVolumeResourceDataProperty- See Also:
-
getS3MachineLearningModelResourceData
Settings for a machine learning resource stored in Amazon S3 .Returns union: either
IResolvableorCfnResourceDefinitionVersion.S3MachineLearningModelResourceDataProperty- See Also:
-
getSageMakerMachineLearningModelResourceData
Settings for a machine learning resource saved as an SageMaker AI training job.Returns union: either
IResolvableorCfnResourceDefinitionVersion.SageMakerMachineLearningModelResourceDataProperty- See Also:
-
getSecretsManagerSecretResourceData
Settings for a secret resource.Returns union: either
IResolvableorCfnResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty- See Also:
-
builder
@Stability(Stable) static CfnResourceDefinitionVersion.ResourceDataContainerProperty.Builder builder()
-