@Stability(value=Stable)
public static interface CfnResourceDefinitionVersion.ResourceInstanceProperty
extends software.amazon.jsii.JsiiSerializable
For more information, see Access Local Resources with Lambda Functions , Perform Machine Learning Inference , and Deploy Secrets to the AWS IoT Greengrass Core in the Developer Guide .
In an AWS CloudFormation template, the Resources property of the AWS::Greengrass::ResourceDefinitionVersion resource contains a list of ResourceInstance property types.
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.*;
ResourceInstanceProperty resourceInstanceProperty = ResourceInstanceProperty.builder()
.id("id")
.name("name")
.resourceDataContainer(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())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnResourceDefinitionVersion.ResourceInstanceProperty.Builder
A builder for
CfnResourceDefinitionVersion.ResourceInstanceProperty |
static class |
CfnResourceDefinitionVersion.ResourceInstanceProperty.Jsii$Proxy
An implementation for
CfnResourceDefinitionVersion.ResourceInstanceProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnResourceDefinitionVersion.ResourceInstanceProperty.Builder |
builder() |
String |
getId()
A descriptive or arbitrary ID for the resource.
|
String |
getName()
The descriptive resource name, which is displayed on the AWS IoT Greengrass console.
|
Object |
getResourceDataContainer()
A container for resource data.
|
@Stability(value=Stable) @NotNull String getId()
This value must be unique within the resource definition version. Maximum length is 128 characters with pattern [a-zA-Z0-9:_-]+ .
@Stability(value=Stable) @NotNull String getName()
Maximum length 128 characters with pattern [a-zA-Z0-9:_-]+. This must be unique within a Greengrass group.
@Stability(value=Stable) @NotNull Object getResourceDataContainer()
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.
@Stability(value=Stable) static CfnResourceDefinitionVersion.ResourceInstanceProperty.Builder builder()
Copyright © 2022. All rights reserved.