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
Modifier and TypeClassDescriptionstatic interface
The attribute payload.static final class
A fluent builder forCfnThingGroup
.static interface
Thing group properties.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnThingGroup
(Construct scope, String id) Create a newAWS::IoT::ThingGroup
.CfnThingGroup
(Construct scope, String id, CfnThingGroupProps props) Create a newAWS::IoT::ThingGroup
.protected
CfnThingGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnThingGroup
(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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setParentGroupName
(String value) The parent thing group name.void
setQueryString
(String value) The dynamic thing group search query string.void
setThingGroupName
(String value) The thing group name.void
Thing group properties.void
Thing 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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The thing group ARN. -
getAttrId
The thing group ID. -
getCfnProperties
- Overrides:
getCfnProperties
in 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
parentGroupName
defined. -
setParentGroupName
The parent thing group name.A Dynamic Thing Group does not have
parentGroupName
defined. -
getQueryString
The dynamic thing group search query string.The
queryString
attribute is required forCreateDynamicThingGroup
. ThequeryString
attribute is not required forCreateThingGroup
. -
setQueryString
The dynamic thing group search query string.The
queryString
attribute is required forCreateDynamicThingGroup
. ThequeryString
attribute 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.
-