create_resource_snapshot_job
async
¶
create_resource_snapshot_job(
catalog: CatalogIdentifier,
client_token: ClientToken,
engagement_identifier: EngagementIdentifier,
resource_type: ResourceType,
resource_identifier: ResourceIdentifier,
resource_snapshot_template_identifier: ResourceTemplateName,
*,
config_overrides: Optional[AsyncPartnerCentralSellingClientConfig] = None,
tags: Optional[TagList] = None,
) -> CreateResourceSnapshotJobResponse
Use this action to create a job to generate a snapshot of the specified resource within an engagement. It initiates an asynchronous process to create a resource snapshot. The job creates a new snapshot only if the resource state has changed, adhering to the same access control and immutability rules as direct snapshot creation.
Parameters:
-
catalog(CatalogIdentifier) –Specifies the catalog in which to create the snapshot job. Valid values are
AWSandSandbox. -
client_token(ClientToken) –A client-generated UUID used for idempotency check. The token helps prevent duplicate job creations.
-
engagement_identifier(EngagementIdentifier) –Specifies the identifier of the engagement associated with the resource to be snapshotted.
-
resource_type(ResourceType) –The type of resource for which the snapshot job is being created. Must be one of the supported resource types i.e.
Opportunity -
resource_identifier(ResourceIdentifier) –Specifies the identifier of the specific resource to be snapshotted. The format depends on the
ResourceType. -
resource_snapshot_template_identifier(ResourceTemplateName) –Specifies the name of the template that defines the schema for the snapshot.
-
tags(Optional[TagList], default:None) –A map of the key-value pairs of the tag or tags to assign.
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.
-
ConflictException–This error occurs when the request can’t be processed due to a conflict with the target resource's current state, which could result from updating or deleting the resource.
Suggested action: Fetch the latest state of the resource, verify the state, and retry the request.
-
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.
-
ServiceQuotaExceededException–This error occurs when the request would cause a service quota to be exceeded. Service quotas represent the maximum allowed use of a specific resource, and this error indicates that the request would surpass that limit.
Suggested action: Review the Quotas for the resource, and either reduce usage or request a quota increase.
-
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
3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 | |