list_resource_snapshots
async
¶
list_resource_snapshots(
catalog: CatalogIdentifier,
engagement_identifier: EngagementIdentifier,
*,
config_overrides: Optional[AsyncPartnerCentralSellingClientConfig] = None,
max_results: Optional[PageSize] = None,
next_token: Optional[str] = None,
resource_type: Optional[ResourceType] = None,
resource_identifier: Optional[ResourceIdentifier] = None,
resource_snapshot_template_identifier: Optional[ResourceTemplateName] = None,
created_by: Optional[AwsAccount] = None,
) -> ListResourceSnapshotsResponse
Retrieves a list of resource view snapshots based on specified criteria. This operation supports various use cases, including:
-
Fetching all snapshots associated with an engagement.
-
Retrieving snapshots of a specific resource type within an engagement.
-
Obtaining snapshots for a particular resource using a specified template.
-
Accessing the latest snapshot of a resource within an engagement.
-
Filtering snapshots by resource owner.
Parameters:
-
catalog(CatalogIdentifier) –Specifies the catalog related to the request.
-
max_results(Optional[PageSize], default:None) –The maximum number of results to return in a single call.
-
next_token(Optional[str], default:None) –The token for the next set of results.
-
engagement_identifier(EngagementIdentifier) –The unique identifier of the engagement associated with the snapshots.
-
resource_type(Optional[ResourceType], default:None) –Filters the response to include only snapshots of the specified resource type.
-
resource_identifier(Optional[ResourceIdentifier], default:None) –Filters the response to include only snapshots of the specified resource.
-
resource_snapshot_template_identifier(Optional[ResourceTemplateName], default:None) –Filters the response to include only snapshots created using the specified template.
-
created_by(Optional[AwsAccount], default:None) –Filters the response to include only snapshots of resources owned by the specified AWS account.
Raises:
-
AccessDeniedException–This error occurs when you don't have permission to perform the requested action.
You don’t have access to this action or resource. Review IAM policies or contact your AWS administrator for assistance.
-
InternalServerException–This error occurs when the specified resource can’t be found or doesn't exist. Resource ID and type might be incorrect.
Suggested action: This is usually a transient error. Retry after the provided retry delay or a short interval. If the problem persists, contact AWS support.
-
ResourceNotFoundException–This error occurs when the specified resource can't be found. The resource might not exist, or isn't visible with the current credentials.
Suggested action: Verify that the resource ID is correct and the resource is in the expected AWS region. Check IAM permissions for accessing the resource.
-
ThrottlingException–This error occurs when there are too many requests sent. Review the provided quotas and adapt your usage to avoid throttling.
This error occurs when there are too many requests sent. Review the provided Quotas and retry after the provided delay.
-
ValidationException–The input fails to satisfy the constraints specified by the service or business validation rules.
Suggested action: Review the error message, including the failed fields and reasons, to correct the request payload.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_partnercentral_selling/_services/async_partner_central_selling.py
3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 | |