@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:35.225Z") @Stability(value=Stable) public class CfnResourceDefinitionVersion extends CfnResource implements IInspectable
The AWS::Greengrass::ResourceDefinitionVersion resource represents a resource definition version for AWS IoT Greengrass . A resource definition version contains a list of resources. (In AWS CloudFormation , resources are named resource instances .)
To create a resource definition version, you must specify the ID of the resource definition that you want to associate with the version. For information about creating a resource definition, see
AWS::Greengrass::ResourceDefinition.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.
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.*;
CfnResourceDefinitionVersion cfnResourceDefinitionVersion = CfnResourceDefinitionVersion.Builder.create(this, "MyCfnResourceDefinitionVersion")
.resourceDefinitionId("resourceDefinitionId")
.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 | Class and Description |
|---|---|
static class |
CfnResourceDefinitionVersion.Builder
A fluent builder for
CfnResourceDefinitionVersion. |
static interface |
CfnResourceDefinitionVersion.GroupOwnerSettingProperty
Settings that define additional Linux OS group permissions to give to the Lambda function process.
|
static interface |
CfnResourceDefinitionVersion.LocalDeviceResourceDataProperty
Settings for a local device resource, which represents a file under `/dev` .
|
static interface |
CfnResourceDefinitionVersion.LocalVolumeResourceDataProperty
Settings for a local volume resource, which represents a file or directory on the root file system.
|
static interface |
CfnResourceDefinitionVersion.ResourceDataContainerProperty
A container for resource data, which defines the resource type.
|
static interface |
CfnResourceDefinitionVersion.ResourceDownloadOwnerSettingProperty
The owner setting for a downloaded machine learning resource.
|
static interface |
CfnResourceDefinitionVersion.ResourceInstanceProperty
A local resource, machine learning resource, or secret resource.
|
static interface |
CfnResourceDefinitionVersion.S3MachineLearningModelResourceDataProperty
Settings for an Amazon S3 machine learning resource.
|
static interface |
CfnResourceDefinitionVersion.SageMakerMachineLearningModelResourceDataProperty
Settings for an Secrets Manager machine learning resource.
|
static interface |
CfnResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty
Settings for a secret resource, which references a secret from AWS Secrets Manager .
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnResourceDefinitionVersion(Construct scope,
String id,
CfnResourceDefinitionVersionProps props)
Create a new `AWS::Greengrass::ResourceDefinitionVersion`.
|
protected |
CfnResourceDefinitionVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnResourceDefinitionVersion(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getResourceDefinitionId()
The ID of the resource definition associated with this version.
|
Object |
getResources()
The resources in this version.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setResourceDefinitionId(String value)
The ID of the resource definition associated with this version.
|
void |
setResources(IResolvable value)
The resources in this version.
|
void |
setResources(List<Object> value)
The resources in this version.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnResourceDefinitionVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnResourceDefinitionVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnResourceDefinitionVersion(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnResourceDefinitionVersionProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getResourceDefinitionId()
This value is a GUID.
@Stability(value=Stable)
public void setResourceDefinitionId(@NotNull
String value)
This value is a GUID.
@Stability(value=Stable) @NotNull public Object getResources()
@Stability(value=Stable)
public void setResources(@NotNull
IResolvable value)
Copyright © 2022. All rights reserved.