create_thing_group
¶
create_thing_group(
thing_group_name: ThingGroupName,
*,
config_overrides: Optional[IoTClientConfig] = None,
parent_group_name: Optional[ThingGroupName] = None,
thing_group_properties: Optional[ThingGroupProperties] = None,
tags: Optional[TagList] = None,
) -> CreateThingGroupResponse
Create a thing group.
This is a control plane operation. See Authorization for information about authorizing control plane actions.
If the ThingGroup that you create has the exact same attributes as an existing ThingGroup, you will get a 200 success response.
Requires permission to access the CreateThingGroup action.
Parameters:
-
thing_group_name(ThingGroupName) –The thing group name to create.
-
parent_group_name(Optional[ThingGroupName], default:None) –The name of the parent thing group.
-
thing_group_properties(Optional[ThingGroupProperties], default:None) –The thing group properties.
-
tags(Optional[TagList], default:None) –Metadata which can be used to manage the thing group.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
ResourceAlreadyExistsException–The resource already exists.
-
ThrottlingException–The rate exceeds the limit.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/io_t.py
4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 | |