update_cross_account_attachment
async
¶
update_cross_account_attachment(
attachment_arn: GenericString,
*,
config_overrides: Optional[AsyncGlobalAcceleratorClientConfig] = None,
name: Optional[AttachmentName] = None,
add_principals: Optional[Principals] = None,
remove_principals: Optional[Principals] = None,
add_resources: Optional[Resources] = None,
remove_resources: Optional[Resources] = None,
) -> UpdateCrossAccountAttachmentResponse
Update a cross-account attachment to add or remove principals or resources. When you update an attachment to remove a principal (account ID or accelerator) or a resource, Global Accelerator revokes the permission for specific resources.
For more information, see Working with cross-account attachments and resources in Global Accelerator in the Global Accelerator Developer Guide.
Parameters:
-
attachment_arn(GenericString) –The Amazon Resource Name (ARN) of the cross-account attachment to update.
-
name(Optional[AttachmentName], default:None) –The name of the cross-account attachment.
-
add_principals(Optional[Principals], default:None) –The principals to add to the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.
To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
-
remove_principals(Optional[Principals], default:None) –The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.
To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
-
add_resources(Optional[Resources], default:None) –The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.
To add more than one resource, separate the resource ARNs with commas.
-
remove_resources(Optional[Resources], default:None) –The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.
To remove more than one resource, separate the resource ARNs with commas.
Raises:
-
AccessDeniedException–You don't have access permission.
-
AttachmentNotFoundException–No cross-account attachment was found.
-
InternalServiceErrorException–There was an internal error for Global Accelerator.
-
InvalidArgumentException–An argument that you specified is invalid.
-
LimitExceededException–Processing your request would cause you to exceed an Global Accelerator limit.
-
TransactionInProgressException–There's already a transaction in progress. Another transaction can't be processed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_global_accelerator/_services/async_global_accelerator.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 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 | |