create_app_authorization
¶
create_app_authorization(
app_bundle_identifier: Identifier,
app: String255,
credential: Credential,
tenant: Tenant,
auth_type: AuthType,
*,
config_overrides: Optional[AppFabricClientConfig] = None,
client_token: Optional[UUID] = None,
tags: Optional[TagList] = None,
) -> CreateAppAuthorizationResponse
Creates an app authorization within an app bundle, which allows AppFabric to connect to an application.
Parameters:
-
app_bundle_identifier(Identifier) –The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.
-
app(String255) –The name of the application.
Valid values are:
-
SLACK -
ASANA -
JIRA -
M365 -
M365AUDITLOGS -
ZOOM -
ZENDESK -
OKTA -
GOOGLE -
DROPBOX -
SMARTSHEET -
CISCO
-
-
credential(Credential) –Contains credentials for the application, such as an API key or OAuth2 client ID and secret.
Specify credentials that match the authorization type for your request. For example, if the authorization type for your request is OAuth2 (
oauth2), then you should provide only the OAuth2 credentials. -
tenant(Tenant) –Contains information about an application tenant, such as the application display name and identifier.
-
auth_type(AuthType) –The authorization type for the app authorization.
-
client_token(Optional[UUID], default:None) –Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
ClientToken, but with different parameters, the retry fails with anIdempotentParameterMismatcherror. -
tags(Optional[TagList], default:None) –A map of the key-value pairs of the tag or tags to assign to the resource.
Raises:
-
AccessDeniedException–You are not authorized to perform this operation.
-
ConflictException–The request has created a conflict. Check the request parameters and try again.
-
InternalServerException–The request processing has failed because of an unknown error, exception, or failure with an internal server.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceQuotaExceededException–The request exceeds a service quota.
-
ThrottlingException–The request rate exceeds the limit.
-
ValidationException–The request has invalid or missing parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appfabric/_services/app_fabric.py
350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 | |