create_user
¶
create_user(
account_id: NonEmptyString,
*,
config_overrides: Optional[ChimeClientConfig] = None,
username: Optional[String] = None,
email: Optional[EmailAddress] = None,
user_type: Optional[UserType] = None,
) -> CreateUserResponse
Creates a user under the specified Amazon Chime account.
Parameters:
-
account_id(NonEmptyString) –The Amazon Chime account ID.
-
username(Optional[String], default:None) –The user name.
-
email(Optional[EmailAddress], default:None) –The user's email address.
-
user_type(Optional[UserType], default:None) –The user type.
Raises:
-
BadRequestException–The input parameters don't match the service's restrictions.
-
ConflictException–The request could not be processed because of conflict in the current state of the resource.
-
ForbiddenException–The client is permanently forbidden from making the request.
-
NotFoundException–One or more of the resources in the request does not exist in the system.
-
ServiceFailureException–The service encountered an unexpected error.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottledClientException–The client exceeded its request rate limit.
-
UnauthorizedClientException–The client is not currently authorized to make the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_chime/_services/chime.py
1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 | |