@Stability(value=Stable)
public static interface CfnResourceDefinition.ResourceDataContainerProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnResourceDefinition.ResourceDataContainerProperty.Builder
A builder for
CfnResourceDefinition.ResourceDataContainerProperty |
static class |
CfnResourceDefinition.ResourceDataContainerProperty.Jsii$Proxy
An implementation for
CfnResourceDefinition.ResourceDataContainerProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnResourceDefinition.ResourceDataContainerProperty.Builder |
builder() |
default Object |
getLocalDeviceResourceData()
Settings for a local device resource.
|
default Object |
getLocalVolumeResourceData()
Settings for a local volume resource.
|
default Object |
getS3MachineLearningModelResourceData()
Settings for a machine learning resource stored in Amazon S3 .
|
default Object |
getSageMakerMachineLearningModelResourceData()
Settings for a machine learning resource saved as an SageMaker training job.
|
default Object |
getSecretsManagerSecretResourceData()
Settings for a secret resource.
|
@Stability(value=Stable) @Nullable default Object getLocalDeviceResourceData()
@Stability(value=Stable) @Nullable default Object getLocalVolumeResourceData()
@Stability(value=Stable) @Nullable default Object getS3MachineLearningModelResourceData()
@Stability(value=Stable) @Nullable default Object getSageMakerMachineLearningModelResourceData()
@Stability(value=Stable) @Nullable default Object getSecretsManagerSecretResourceData()
@Stability(value=Stable) static CfnResourceDefinition.ResourceDataContainerProperty.Builder builder()
Copyright © 2022. All rights reserved.