Class CfnThingGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.iot.CfnThingGroup
- All Implemented Interfaces:
IInspectable,ITaggable,IThingGroupRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:12.471Z")
@Stability(Stable)
public class CfnThingGroup
extends CfnResource
implements IInspectable, IThingGroupRef, ITaggable
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();
- See Also:
-
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.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iot.IThingGroupRef
IThingGroupRef.Jsii$Default, IThingGroupRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnThingGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnThingGroup(software.amazon.jsii.JsiiObjectRef objRef) CfnThingGroup(software.constructs.Construct scope, String id) CfnThingGroup(software.constructs.Construct scope, String id, CfnThingGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IThingGroupReffromThingGroupArn(software.constructs.Construct scope, String id, String arn) Creates a new IThingGroupRef from an ARN.static IThingGroupReffromThingGroupName(software.constructs.Construct scope, String id, String thingGroupName) Creates a new IThingGroupRef from a thingGroupName.The thing group ARN.The thing group ID.The parent thing group name.The dynamic thing group search query string.getTags()Tag Manager which manages the tags for this resource.Metadata which can be used to manage the thing group or dynamic thing group.The thing group name.Thing group properties.A reference to a ThingGroup resource.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.voidsetTagsRaw(List<CfnTag> value) Metadata which can be used to manage the thing group or dynamic thing group.voidsetThingGroupName(String value) The thing group name.voidThing group properties.voidThing group properties.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods 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 software.constructs.Construct scope, @NotNull String id, @Nullable CfnThingGroupProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnThingGroup
@Stability(Stable) public CfnThingGroup(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
fromThingGroupArn
@Stability(Stable) @NotNull public static IThingGroupRef fromThingGroupArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IThingGroupRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromThingGroupName
@Stability(Stable) @NotNull public static IThingGroupRef fromThingGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String thingGroupName) Creates a new IThingGroupRef from a thingGroupName.- Parameters:
scope- This parameter is required.id- This parameter is required.thingGroupName- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
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
Tag Manager which manages the tags for this resource. -
getThingGroupRef
A reference to a ThingGroup resource.- Specified by:
getThingGroupRefin interfaceIThingGroupRef
-
getParentGroupName
The parent thing group name. -
setParentGroupName
The parent thing group name. -
getQueryString
The dynamic thing group search query string. -
setQueryString
The dynamic thing group search query string. -
getTagsRaw
Metadata which can be used to manage the thing group or dynamic thing group. -
setTagsRaw
Metadata which can be used to manage the thing group or dynamic thing group. -
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.
-