getAwsOpportunitySummary method
Retrieves a summary of an AWS Opportunity. This summary includes high-level details about the opportunity sourced from AWS, such as lifecycle information, customer details, and involvement type. It is useful for tracking updates on the AWS opportunity corresponding to an opportunity in the partner's account.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter catalog :
Specifies the catalog in which the AWS Opportunity is located. Accepted
values include AWS for production opportunities or
Sandbox for testing purposes. The catalog determines which
environment the opportunity data is pulled from.
Parameter relatedOpportunityIdentifier :
The unique identifier for the related partner opportunity. Use this field
to correlate an AWS opportunity with its corresponding partner
opportunity.
Implementation
Future<GetAwsOpportunitySummaryResponse> getAwsOpportunitySummary({
required String catalog,
required String relatedOpportunityIdentifier,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AWSPartnerCentralSelling.GetAwsOpportunitySummary'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Catalog': catalog,
'RelatedOpportunityIdentifier': relatedOpportunityIdentifier,
},
);
return GetAwsOpportunitySummaryResponse.fromJson(jsonResponse.body);
}