get_resource_snapshot
async
¶
get_resource_snapshot(
catalog: CatalogIdentifier,
engagement_identifier: EngagementIdentifier,
resource_type: ResourceType,
resource_identifier: ResourceIdentifier,
resource_snapshot_template_identifier: ResourceTemplateName,
*,
config_overrides: Optional[AsyncPartnerCentralSellingClientConfig] = None,
revision: Optional[ResourceSnapshotRevision] = None,
) -> GetResourceSnapshotResponse
Use this action to retrieve a specific snapshot record.
Parameters:
-
catalog(CatalogIdentifier) –Specifies the catalog related to the request. Valid values are:
-
AWS: Retrieves the snapshot from the production AWS environment.
-
Sandbox: Retrieves the snapshot from a sandbox environment used for testing or development purposes.
-
-
engagement_identifier(EngagementIdentifier) –The unique identifier of the engagement associated with the snapshot. This field links the snapshot to a specific engagement context.
-
resource_type(ResourceType) –Specifies the type of resource that was snapshotted. This field determines the structure and content of the snapshot payload. Valid value includes:
Opportunity: For opportunity-related data. -
resource_identifier(ResourceIdentifier) –The unique identifier of the specific resource that was snapshotted. The format and constraints of this identifier depend on the ResourceType specified. For
Opportunitytype, it will be anopportunity ID -
resource_snapshot_template_identifier(ResourceTemplateName) –he name of the template that defines the schema for the snapshot. This template determines which subset of the resource data is included in the snapshot and must correspond to an existing and valid template for the specified
ResourceType. -
revision(Optional[ResourceSnapshotRevision], default:None) –Specifies which revision of the snapshot to retrieve. If omitted returns the latest revision.
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
5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 | |