get_invitation
async
¶
get_invitation(
environment_arn: EnvironmentArn,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
invitee_account_id: Optional[InviteeAccountId] = None,
) -> GetInvitationOutput
Retrieves a single invitation, identified by environmentArn and inviteeAccountId. You can call this operation from the account that owns the environment or from the invited account.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of the environment the invitation is for.
-
invitee_account_id(Optional[InviteeAccountId], default:None) –The AWS account ID of the invited account. Supply this value when you are the environment owner reading a specific invitee's invitation. Omit it when you are the invited account reading your own invitation for the environment.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.
-
InternalServerException–An internal server error occurred.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was throttled.
-
ValidationException–The request failed validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Retrieve an invitation Retrieves the invitation extended to the payments team's member account for the governance environment running the PCI-DSS assessment.
>>> await client.get_invitation(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', invitee_account_id='444455556666')
Source code in docs_src/capo_assurance/_services/async_assurance.py
3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 | |