Class CfnThingGroup
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::IoT::ThingGroup.
Creates a new thing group. A dynamic thing group is created if the resource template contains the QueryString attribute. A dynamic thing group will not contain the ParentGroupName attribute. A static thing group and dynamic thing group can't be converted to each other via the addition or removal of the QueryString attribute.
This is a control plane operation. See Authorization for information about authorizing control plane actions.
Requires permission to access the CreateThingGroup action.
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.iot.*;
CfnThingGroup cfnThingGroup = CfnThingGroup.Builder.create(this, "MyCfnThingGroup")
.parentGroupName("parentGroupName")
.queryString("queryString")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.thingGroupName("thingGroupName")
.thingGroupProperties(ThingGroupPropertiesProperty.builder()
.attributePayload(AttributePayloadProperty.builder()
.attributes(Map.of(
"attributesKey", "attributes"))
.build())
.thingGroupDescription("thingGroupDescription")
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe attribute payload.static final classA fluent builder forCfnThingGroup.static interfaceThing group properties.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
ConstructorsModifierConstructorDescriptionCfnThingGroup(Construct scope, String id) Create a newAWS::IoT::ThingGroup.CfnThingGroup(Construct scope, String id, CfnThingGroupProps props) Create a newAWS::IoT::ThingGroup.protectedCfnThingGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnThingGroup(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe thing group ARN.The thing group ID.The parent thing group name.The dynamic thing group search query string.getTags()Metadata which can be used to manage the thing group or dynamic thing group.The thing group name.Thing group properties.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetParentGroupName(String value) The parent thing group name.voidsetQueryString(String value) The dynamic thing group search query string.voidsetThingGroupName(String value) The thing group name.voidThing group properties.voidThing group properties.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
-
CfnThingGroup
protected CfnThingGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnThingGroup
protected CfnThingGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnThingGroup
@Stability(Stable) public CfnThingGroup(@NotNull Construct scope, @NotNull String id, @Nullable CfnThingGroupProps props) Create a newAWS::IoT::ThingGroup.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
CfnThingGroup
Create a newAWS::IoT::ThingGroup.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
-
-
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.
-
getAttrArn
The thing group ARN. -
getAttrId
The thing group ID. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Metadata which can be used to manage the thing group or dynamic thing group. -
getParentGroupName
The parent thing group name.A Dynamic Thing Group does not have
parentGroupNamedefined. -
setParentGroupName
The parent thing group name.A Dynamic Thing Group does not have
parentGroupNamedefined. -
getQueryString
The dynamic thing group search query string.The
queryStringattribute is required forCreateDynamicThingGroup. ThequeryStringattribute is not required forCreateThingGroup. -
setQueryString
The dynamic thing group search query string.The
queryStringattribute is required forCreateDynamicThingGroup. ThequeryStringattribute is not required forCreateThingGroup. -
getThingGroupName
The thing group name. -
setThingGroupName
The thing group name. -
getThingGroupProperties
Thing group properties. -
setThingGroupProperties
Thing group properties. -
setThingGroupProperties
@Stability(Stable) public void setThingGroupProperties(@Nullable CfnThingGroup.ThingGroupPropertiesProperty value) Thing group properties.
-