@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:15.523Z") 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 .
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnResourceDefinitionVersion(Construct scope,
java.lang.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 java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getResourceDefinitionId()
The ID of the resource definition associated with this version.
|
java.lang.Object |
getResources()
The resources in this version.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setResourceDefinitionId(java.lang.String value)
The ID of the resource definition associated with this version.
|
void |
setResources(IResolvable value)
The resources in this version.
|
void |
setResources(java.util.List<java.lang.Object> value)
The resources in this version.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnResourceDefinitionVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnResourceDefinitionVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnResourceDefinitionVersion(Construct scope, java.lang.String id, 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getResourceDefinitionId()
This value is a GUID.
public void setResourceDefinitionId(java.lang.String value)
This value is a GUID.
public java.lang.Object getResources()
public void setResources(IResolvable value)
public void setResources(java.util.List<java.lang.Object> value)