PartnerCentralSellingAPI / Client / create_resource_snapshot_job
create_resource_snapshot_job#
- PartnerCentralSellingAPI.Client.create_resource_snapshot_job(**kwargs)#
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.
See also: AWS API Documentation
Request Syntax
response = client.create_resource_snapshot_job( Catalog='string', ClientToken='string', EngagementIdentifier='string', ResourceIdentifier='string', ResourceSnapshotTemplateIdentifier='string', ResourceType='Opportunity' )
- Parameters:
Catalog (string) –
[REQUIRED]
Specifies the catalog in which to create the snapshot job. Valid values are
AWS
andSandbox
.ClientToken (string) –
[REQUIRED]
Specifies a unique, client-generated UUID to ensure that the request is handled exactly once. This token helps prevent duplicate snapshot job creations.
This field is autopopulated if not provided.
EngagementIdentifier (string) –
[REQUIRED]
Specifies the identifier of the engagement associated with the resource to be snapshotted.
ResourceIdentifier (string) –
[REQUIRED]
Specifies the identifier of the specific resource to be snapshotted. The format depends on the
ResourceType
.ResourceSnapshotTemplateIdentifier (string) –
[REQUIRED]
Specifies the name of the template that defines the schema for the snapshot.
ResourceType (string) –
[REQUIRED]
The type of resource for which the snapshot job is being created. Must be one of the supported resource types
Opportunity
.
- Return type:
dict
- Returns:
Response Syntax
{ 'Arn': 'string', 'Id': 'string' }
Response Structure
(dict) –
Arn (string) –
The Amazon Resource Name (ARN) of the created snapshot job.
Id (string) –
The unique identifier for the created snapshot job.
Exceptions
PartnerCentralSellingAPI.Client.exceptions.ThrottlingException
PartnerCentralSellingAPI.Client.exceptions.ConflictException
PartnerCentralSellingAPI.Client.exceptions.AccessDeniedException
PartnerCentralSellingAPI.Client.exceptions.ValidationException
PartnerCentralSellingAPI.Client.exceptions.ServiceQuotaExceededException
PartnerCentralSellingAPI.Client.exceptions.ResourceNotFoundException