PartnerCentralSellingAPI / Client / get_resource_snapshot
get_resource_snapshot¶
- PartnerCentralSellingAPI.Client.get_resource_snapshot(**kwargs)¶
Use this action to retrieve a specific snapshot record.
See also: AWS API Documentation
Request Syntax
response = client.get_resource_snapshot( Catalog='string', EngagementIdentifier='string', ResourceType='Opportunity', ResourceIdentifier='string', ResourceSnapshotTemplateIdentifier='string', Revision=123 )
- Parameters:
Catalog (string) –
[REQUIRED]
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.
EngagementIdentifier (string) –
[REQUIRED]
The unique identifier of the engagement associated with the snapshot. This field links the snapshot to a specific engagement context.
ResourceType (string) –
[REQUIRED]
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.ResourceIdentifier (string) –
[REQUIRED]
The unique identifier of the specific resource that was snapshotted. The format and constraints of this identifier depend on the ResourceType specified. For
Opportunity
type, it will be anopportunity ID
ResourceSnapshotTemplateIdentifier (string) –
[REQUIRED]
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 (integer) – Specifies which revision of the snapshot to retrieve. If omitted returns the latest revision.
- Return type:
dict
- Returns:
Response Syntax
{ 'Catalog': 'string', 'Arn': 'string', 'CreatedBy': 'string', 'CreatedAt': datetime(2015, 1, 1), 'EngagementId': 'string', 'ResourceType': 'Opportunity', 'ResourceId': 'string', 'ResourceSnapshotTemplateName': 'string', 'Revision': 123, 'Payload': { 'OpportunitySummary': { 'OpportunityType': 'Net New Business'|'Flat Renewal'|'Expansion', 'Lifecycle': { 'TargetCloseDate': 'string', 'ReviewStatus': 'Pending Submission'|'Submitted'|'In review'|'Approved'|'Rejected'|'Action Required', 'Stage': 'Prospect'|'Qualified'|'Technical Validation'|'Business Validation'|'Committed'|'Launched'|'Closed Lost', 'NextSteps': 'string' }, 'OpportunityTeam': [ { 'Email': 'string', 'FirstName': 'string', 'LastName': 'string', 'BusinessTitle': 'string', 'Phone': 'string' }, ], 'PrimaryNeedsFromAws': [ 'Co-Sell - Architectural Validation'|'Co-Sell - Business Presentation'|'Co-Sell - Competitive Information'|'Co-Sell - Pricing Assistance'|'Co-Sell - Technical Consultation'|'Co-Sell - Total Cost of Ownership Evaluation'|'Co-Sell - Deal Support'|'Co-Sell - Support for Public Tender / RFx', ], 'Customer': { 'Account': { 'Industry': 'Aerospace'|'Agriculture'|'Automotive'|'Computers and Electronics'|'Consumer Goods'|'Education'|'Energy - Oil and Gas'|'Energy - Power and Utilities'|'Financial Services'|'Gaming'|'Government'|'Healthcare'|'Hospitality'|'Life Sciences'|'Manufacturing'|'Marketing and Advertising'|'Media and Entertainment'|'Mining'|'Non-Profit Organization'|'Professional Services'|'Real Estate and Construction'|'Retail'|'Software and Internet'|'Telecommunications'|'Transportation and Logistics'|'Travel'|'Wholesale and Distribution'|'Other', 'OtherIndustry': 'string', 'CompanyName': 'string', 'WebsiteUrl': 'string', 'AwsAccountId': 'string', 'Address': { 'City': 'string', 'PostalCode': 'string', 'StateOrRegion': 'string', 'CountryCode': 'US'|'AF'|'AX'|'AL'|'DZ'|'AS'|'AD'|'AO'|'AI'|'AQ'|'AG'|'AR'|'AM'|'AW'|'AU'|'AT'|'AZ'|'BS'|'BH'|'BD'|'BB'|'BY'|'BE'|'BZ'|'BJ'|'BM'|'BT'|'BO'|'BQ'|'BA'|'BW'|'BV'|'BR'|'IO'|'BN'|'BG'|'BF'|'BI'|'KH'|'CM'|'CA'|'CV'|'KY'|'CF'|'TD'|'CL'|'CN'|'CX'|'CC'|'CO'|'KM'|'CG'|'CK'|'CR'|'CI'|'HR'|'CU'|'CW'|'CY'|'CZ'|'CD'|'DK'|'DJ'|'DM'|'DO'|'EC'|'EG'|'SV'|'GQ'|'ER'|'EE'|'ET'|'FK'|'FO'|'FJ'|'FI'|'FR'|'GF'|'PF'|'TF'|'GA'|'GM'|'GE'|'DE'|'GH'|'GI'|'GR'|'GL'|'GD'|'GP'|'GU'|'GT'|'GG'|'GN'|'GW'|'GY'|'HT'|'HM'|'VA'|'HN'|'HK'|'HU'|'IS'|'IN'|'ID'|'IR'|'IQ'|'IE'|'IM'|'IL'|'IT'|'JM'|'JP'|'JE'|'JO'|'KZ'|'KE'|'KI'|'KR'|'KW'|'KG'|'LA'|'LV'|'LB'|'LS'|'LR'|'LY'|'LI'|'LT'|'LU'|'MO'|'MK'|'MG'|'MW'|'MY'|'MV'|'ML'|'MT'|'MH'|'MQ'|'MR'|'MU'|'YT'|'MX'|'FM'|'MD'|'MC'|'MN'|'ME'|'MS'|'MA'|'MZ'|'MM'|'NA'|'NR'|'NP'|'NL'|'AN'|'NC'|'NZ'|'NI'|'NE'|'NG'|'NU'|'NF'|'MP'|'NO'|'OM'|'PK'|'PW'|'PS'|'PA'|'PG'|'PY'|'PE'|'PH'|'PN'|'PL'|'PT'|'PR'|'QA'|'RE'|'RO'|'RU'|'RW'|'BL'|'SH'|'KN'|'LC'|'MF'|'PM'|'VC'|'WS'|'SM'|'ST'|'SA'|'SN'|'RS'|'SC'|'SL'|'SG'|'SX'|'SK'|'SI'|'SB'|'SO'|'ZA'|'GS'|'SS'|'ES'|'LK'|'SD'|'SR'|'SJ'|'SZ'|'SE'|'CH'|'SY'|'TW'|'TJ'|'TZ'|'TH'|'TL'|'TG'|'TK'|'TO'|'TT'|'TN'|'TR'|'TM'|'TC'|'TV'|'UG'|'UA'|'AE'|'GB'|'UM'|'UY'|'UZ'|'VU'|'VE'|'VN'|'VG'|'VI'|'WF'|'EH'|'YE'|'ZM'|'ZW', 'StreetAddress': 'string' }, 'Duns': 'string' }, 'Contacts': [ { 'Email': 'string', 'FirstName': 'string', 'LastName': 'string', 'BusinessTitle': 'string', 'Phone': 'string' }, ] }, 'Project': { 'DeliveryModels': [ 'SaaS or PaaS'|'BYOL or AMI'|'Managed Services'|'Professional Services'|'Resell'|'Other', ], 'ExpectedCustom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', 'Frequency': 'Monthly', 'TargetCompany': 'string', 'EstimationUrl': 'string' }, ], 'CustomerUseCase': 'string', 'SalesActivities': [ 'Initialized discussions with customer'|'Customer has shown interest in solution'|'Conducted POC / Demo'|'In evaluation / planning stage'|'Agreed on solution to Business Problem'|'Completed Action Plan'|'Finalized Deployment Need'|'SOW Signed', ], 'OtherSolutionDescription': 'string' }, 'RelatedEntityIdentifiers': { 'AwsMarketplaceOffers': [ 'string', ], 'Solutions': [ 'string', ], 'AwsProducts': [ 'string', ] } } } }
Response Structure
(dict) –
Catalog (string) –
The catalog in which the snapshot was created. Matches the Catalog specified in the request.
Arn (string) –
The Amazon Resource Name (ARN) that uniquely identifies the resource snapshot.
CreatedBy (string) –
The AWS account ID of the principal (user or role) who created the snapshot. This helps in tracking the origin of the snapshot.
CreatedAt (datetime) –
The timestamp when the snapshot was created, in ISO 8601 format (e.g., “2023-06-01T14:30:00Z”). This allows for precise tracking of when the snapshot was taken.
EngagementId (string) –
The identifier of the engagement associated with this snapshot. Matches the EngagementIdentifier specified in the request.
ResourceType (string) –
The type of the resource that was snapshotted. Matches the ResourceType specified in the request.
ResourceId (string) –
The identifier of the specific resource that was snapshotted. Matches the ResourceIdentifier specified in the request.
ResourceSnapshotTemplateName (string) –
The name of the view used for this snapshot. This is the same as the template name.
Revision (integer) –
The revision number of this snapshot. This is a positive integer that is sequential and unique within the context of a resource view.
Payload (dict) –
Represents the payload of a resource snapshot. This structure is designed to accommodate different types of resource snapshots, currently supporting opportunity summaries.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
OpportunitySummary
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
OpportunitySummary (dict) –
An object that contains an
opportunity
’s subset of fields.OpportunityType (string) –
Specifies the opportunity type.
Lifecycle (dict) –
Contains information about the opportunity’s lifecycle, including its current stage, status, and important dates such as creation and last modification times.
TargetCloseDate (string) –
The projected launch date of the opportunity shared through a snapshot.
ReviewStatus (string) –
Defines the approval status of the opportunity shared through a snapshot.
Stage (string) –
Defines the current stage of the opportunity shared through a snapshot.
NextSteps (string) –
Describes the next steps for the opportunity shared through a snapshot.
OpportunityTeam (list) –
Represents the internal team handling the opportunity. Specify the members involved in collaborating on an opportunity within the partner’s organization.
(dict) –
An object that contains a
Customer Partner
’s contact details.Email (string) –
The contact’s email address associated with the
Opportunity
.FirstName (string) –
The contact’s first name associated with the
Opportunity
.LastName (string) –
The contact’s last name associated with the
Opportunity
.BusinessTitle (string) –
The partner contact’s title (job title or role) associated with the
Opportunity
.BusinessTitle
supports eitherPartnerAccountManager
orOpportunityOwner
.Phone (string) –
The contact’s phone number associated with the
Opportunity
.
PrimaryNeedsFromAws (list) –
Identifies the type of support the partner needs from AWS.
(string) –
Customer (dict) –
An object that contains the customer’s
Account
andContact
.Account (dict) –
An object that contains the customer’s account details.
Industry (string) –
Specifies the industry the end
Customer
belongs to that’s associated with theOpportunity
. It refers to the category or sector where the customer’s business operates. This is a required field.OtherIndustry (string) –
Specifies the end
Customer
’s industry associated with theOpportunity
, when the selected value in theIndustry
field isOther
.CompanyName (string) –
Specifies the end
Customer
’s company name associated with theOpportunity
.WebsiteUrl (string) –
Specifies the end customer’s company website URL associated with the
Opportunity
. This value is crucial to map the customer within the Amazon Web Services CRM system. This field is required in all cases except when the opportunity is related to national security.AwsAccountId (string) –
Specifies the
Customer
Amazon Web Services account ID associated with theOpportunity
.Address (dict) –
Specifies the end
Customer
’s address details associated with theOpportunity
.City (string) –
Specifies the end
Customer
’s city associated with theOpportunity
.PostalCode (string) –
Specifies the end
Customer
’s postal code associated with theOpportunity
.StateOrRegion (string) –
Specifies the end
Customer
’s state or region associated with theOpportunity
.Valid values:
Alabama | Alaska | American Samoa | Arizona | Arkansas | California | Colorado | Connecticut | Delaware | Dist. of Columbia | Federated States of Micronesia | Florida | Georgia | Guam | Hawaii | Idaho | Illinois | Indiana | Iowa | Kansas | Kentucky | Louisiana | Maine | Marshall Islands | Maryland | Massachusetts | Michigan | Minnesota | Mississippi | Missouri | Montana | Nebraska | Nevada | New Hampshire | New Jersey | New Mexico | New York | North Carolina | North Dakota | Northern Mariana Islands | Ohio | Oklahoma | Oregon | Palau | Pennsylvania | Puerto Rico | Rhode Island | South Carolina | South Dakota | Tennessee | Texas | Utah | Vermont | Virginia | Virgin Islands | Washington | West Virginia | Wisconsin | Wyoming | APO/AE | AFO/FPO | FPO, AP
CountryCode (string) –
Specifies the end
Customer
’s country associated with theOpportunity
.StreetAddress (string) –
Specifies the end
Customer
’s street address associated with theOpportunity
.
Duns (string) –
Indicates the
Customer
DUNS number, if available.
Contacts (list) –
Represents the contact details for individuals associated with the customer of the
Opportunity
. This field captures relevant contacts, including decision-makers, influencers, and technical stakeholders within the customer organization. These contacts are key to progressing the opportunity.(dict) –
An object that contains a
Customer Partner
’s contact details.Email (string) –
The contact’s email address associated with the
Opportunity
.FirstName (string) –
The contact’s first name associated with the
Opportunity
.LastName (string) –
The contact’s last name associated with the
Opportunity
.BusinessTitle (string) –
The partner contact’s title (job title or role) associated with the
Opportunity
.BusinessTitle
supports eitherPartnerAccountManager
orOpportunityOwner
.Phone (string) –
The contact’s phone number associated with the
Opportunity
.
Project (dict) –
Contains summary information about the project associated with the opportunity, including project name, description, timeline, and other relevant details.
DeliveryModels (list) –
Describes the deployment or consumption model for the partner solution or offering. This field indicates how the project’s solution will be delivered or implemented for the customer.
(string) –
ExpectedCustomerSpend (list) –
Provides information about the anticipated customer spend related to this project. This may include details such as amount, frequency, and currency of expected expenditure.
(dict) –
Provides an estimate of the revenue that the partner is expected to generate from the opportunity. This information helps partners assess the financial value of the project.
Amount (string) –
Represents the estimated monthly revenue that the partner expects to earn from the opportunity. This helps in forecasting financial returns.
CurrencyCode (string) –
Indicates the currency in which the revenue estimate is provided. This helps in understanding the financial impact across different markets.
Frequency (string) –
Indicates how frequently the customer is expected to spend the projected amount. Only the value
Monthly
is allowed for theFrequency
field, representing recurring monthly spend.TargetCompany (string) –
Specifies the name of the partner company that is expected to generate revenue from the opportunity. This field helps track the partner’s involvement in the opportunity. This field only accepts the value
AWS
. If any other value is provided, the system will automatically set it toAWS
.EstimationUrl (string) –
A URL providing additional information or context about the spend estimation.
CustomerUseCase (string) –
Specifies the proposed solution focus or type of workload for the project.
SalesActivities (list) –
Lists the pre-sales activities that have occurred with the end-customer related to the opportunity. This field is conditionally mandatory when the project is qualified for Co-Sell and helps drive assignment priority on the AWS side. It provides insight into the engagement level with the customer.
(string) –
OtherSolutionDescription (string) –
Offers a description of other solutions if the standard solutions do not adequately cover the project’s scope.
RelatedEntityIdentifiers (dict) –
This field provides the associations’ information for other entities with the opportunity. These entities include identifiers for
AWSProducts
,Partner Solutions
, andAWSMarketplaceOffers
.AwsMarketplaceOffers (list) –
Takes one value per opportunity. Each value is an Amazon Resource Name (ARN), in this format:
"offers": ["arn:aws:aws-marketplace:us-east-1:999999999999:AWSMarketplace/Offer/offer-sampleOffer32"]
.Use the ListEntities action in the Marketplace Catalog APIs for a list of offers in the associated Marketplace seller account.
(string) –
Solutions (list) –
Enables partner solutions or offerings’ association with an opportunity. To associate a solution, provide the solution’s unique identifier, which you can obtain with the
ListSolutions
operation.If the specific solution identifier is not available, you can use the value
Other
and provide details about the solution in theotherSolutionOffered
field. But when the opportunity reaches theCommitted
stage or beyond, theOther
value cannot be used, and a valid solution identifier must be provided.By associating the relevant solutions with the opportunity, you can communicate the offerings that are being considered or implemented to address the customer’s business problem.
(string) –
AwsProducts (list) –
Enables the association of specific Amazon Web Services products with the
Opportunity
. Partners can indicate the relevant Amazon Web Services products for theOpportunity
’s solution and align with the customer’s needs. Returns multiple values separated by commas. For example,"AWSProducts" : ["AmazonRedshift", "AWSAppFabric", "AWSCleanRooms"]
.Use the file with the list of Amazon Web Services products hosted on GitHub: Amazon Web Services products.
(string) –
Exceptions