@Stability(value=Stable)
public static interface CfnResourceDefinition.ResourceDefinitionVersionProperty
extends software.amazon.jsii.JsiiSerializable
After you create a resource definition version that contains the resources you want to deploy, you must add it to your group version. For more information, see
AWS::Greengrass::Group.
In an AWS CloudFormation template, ResourceDefinitionVersion is the property type of the InitialVersion property in the AWS::Greengrass::ResourceDefinition resource.
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.*;
ResourceDefinitionVersionProperty resourceDefinitionVersionProperty = ResourceDefinitionVersionProperty.builder()
.resources(List.of(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()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnResourceDefinition.ResourceDefinitionVersionProperty.Builder
A builder for
CfnResourceDefinition.ResourceDefinitionVersionProperty |
static class |
CfnResourceDefinition.ResourceDefinitionVersionProperty.Jsii$Proxy
An implementation for
CfnResourceDefinition.ResourceDefinitionVersionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnResourceDefinition.ResourceDefinitionVersionProperty.Builder |
builder() |
Object |
getResources()
The resources in this version.
|
@Stability(value=Stable) @NotNull Object getResources()
@Stability(value=Stable) static CfnResourceDefinition.ResourceDefinitionVersionProperty.Builder builder()
Copyright © 2022. All rights reserved.