create_identity_source
async
¶
create_identity_source(
identity_source_parameters: IdentitySourceParameters,
*,
config_overrides: Optional[AsyncMPAClientConfig] = None,
client_token: Optional[Token] = None,
tags: Optional[Tags] = None,
) -> CreateIdentitySourceResponse
Creates a new identity source. For more information, see Identity Source in the Multi-party approval User Guide.
Parameters:
-
identity_source_parameters(IdentitySourceParameters) –A
IdentitySourceParametersobject. Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance. -
client_token(Optional[Token], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services populates this field.
What is idempotency?
When you make a mutating API request, the request typically returns a result before the operation's asynchronous workflows have completed. Operations might also time out or encounter other server issues before they complete, even though the request has already returned a result. This could make it difficult to determine whether the request succeeded or not, and could lead to multiple retries to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the operation is completed multiple times. This means that you might create more resources than you intended.
Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.
-
tags(Optional[Tags], default:None) –Tag you want to attach to the identity source.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. Check your permissions, and try again.
-
InternalServerException–The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.
-
ServiceQuotaExceededException–The request exceeds the service quota for your account. Request a quota increase or reduce your request size.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mpa/_services/async_mpa.py
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 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 | |