update_cross_account_attachment
¶
update_cross_account_attachment(
attachment_arn: GenericString,
*,
config_overrides: Optional[GlobalAcceleratorClientConfig] = 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/global_accelerator.py
3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 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 | |