Class CfnCoreDefinitionVersion
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Greengrass::CoreDefinitionVersion.
The AWS::Greengrass::CoreDefinitionVersion resource represents a core definition version for AWS IoT Greengrass . A core definition version contains a Greengrass core.
To create a core definition version, you must specify the ID of the core definition that you want to associate with the version. For information about creating a core definition, see
AWS::Greengrass::CoreDefinition.After you create a core definition version that contains the core 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.*;
CfnCoreDefinitionVersion cfnCoreDefinitionVersion = CfnCoreDefinitionVersion.Builder.create(this, "MyCfnCoreDefinitionVersion")
.coreDefinitionId("coreDefinitionId")
.cores(List.of(CoreProperty.builder()
.certificateArn("certificateArn")
.id("id")
.thingArn("thingArn")
// the properties below are optional
.syncShadow(false)
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnCoreDefinitionVersion.static interfaceA core is an AWS IoT device that runs the AWS IoT Greengrass core software and manages local processes for a Greengrass group.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnCoreDefinitionVersion(Construct scope, String id, CfnCoreDefinitionVersionProps props) Create a newAWS::Greengrass::CoreDefinitionVersion.protectedCfnCoreDefinitionVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCoreDefinitionVersion(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe ID of the core definition associated with this version.getCores()The Greengrass core in this version.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCoreDefinitionId(String value) The ID of the core definition associated with this version.voidThe Greengrass core in this version.voidsetCores(IResolvable value) The Greengrass core in this version.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCoreDefinitionVersion
protected CfnCoreDefinitionVersion(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCoreDefinitionVersion
protected CfnCoreDefinitionVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCoreDefinitionVersion
@Stability(Stable) public CfnCoreDefinitionVersion(@NotNull Construct scope, @NotNull String id, @NotNull CfnCoreDefinitionVersionProps props) Create a newAWS::Greengrass::CoreDefinitionVersion.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCoreDefinitionId
The ID of the core definition associated with this version.This value is a GUID.
-
setCoreDefinitionId
The ID of the core definition associated with this version.This value is a GUID.
-
getCores
The Greengrass core in this version.Currently, the
Coresproperty for a core definition version can contain only one core. -
setCores
The Greengrass core in this version.Currently, the
Coresproperty for a core definition version can contain only one core. -
setCores
The Greengrass core in this version.Currently, the
Coresproperty for a core definition version can contain only one core.
-