create_opportunity
async
¶
create_opportunity(
catalog: CatalogIdentifier,
client_token: ClientToken,
*,
config_overrides: Optional[AsyncPartnerCentralSellingClientConfig] = None,
primary_needs_from_aws: Optional[PrimaryNeedsFromAws] = None,
national_security: Optional[NationalSecurity] = None,
partner_opportunity_identifier: Optional[str] = None,
customer: Optional[Customer] = None,
project: Optional[Project] = None,
opportunity_type: Optional[OpportunityType] = None,
marketing: Optional[Marketing] = None,
software_revenue: Optional[SoftwareRevenue] = None,
life_cycle: Optional[LifeCycle] = None,
origin: Optional[OpportunityOrigin] = None,
opportunity_team: Optional[PartnerOpportunityTeamMembersList] = None,
tags: Optional[TagList] = None,
) -> CreateOpportunityResponse
Creates an Opportunity record in Partner Central. Use this operation to create a potential business opportunity for submission to Amazon Web Services. Creating an opportunity sets Lifecycle.ReviewStatus to Pending Submission.
To submit an opportunity, follow these steps:
-
To create the opportunity, use
CreateOpportunity. -
To associate a solution with the opportunity, use
AssociateOpportunity. -
To start the engagement with AWS, use
StartEngagementFromOpportunity.
After submission, you can't edit the opportunity until the review is complete. But opportunities in the Pending Submission state must have complete details. You can update the opportunity while it's in the Pending Submission state.
There's a set of mandatory fields to create opportunities, but consider providing optional fields to enrich the opportunity record.
Parameters:
-
catalog(CatalogIdentifier) –Specifies the catalog associated with the request. This field takes a string value from a predefined list:
AWSorSandbox. The catalog determines which environment the opportunity is created in. UseAWSto create opportunities in the Amazon Web Services catalog, andSandboxfor testing in secure, isolated environments. -
primary_needs_from_aws(Optional[PrimaryNeedsFromAws], default:None) –Identifies the type of support the partner needs from Amazon Web Services.
Valid values:
-
Cosell—Architectural Validation: Confirmation from Amazon Web Services that the partner's proposed solution architecture is aligned with Amazon Web Services best practices and poses minimal architectural risks.
-
Cosell—Business Presentation: Request Amazon Web Services seller's participation in a joint customer presentation.
-
Cosell—Competitive Information: Access to Amazon Web Services competitive resources and support for the partner's proposed solution.
-
Cosell—Pricing Assistance: Connect with an Amazon Web Services seller for support situations where a partner may be receiving an upfront discount on a service (for example: EDP deals).
-
Cosell—Technical Consultation: Connect with an Amazon Web Services Solutions Architect to address the partner's questions about the proposed solution.
-
Cosell—Total Cost of Ownership Evaluation: Assistance with quoting different cost savings of proposed solutions on Amazon Web Services versus on-premises or a traditional hosting environment.
-
Cosell—Deal Support: Request Amazon Web Services seller's support to progress the opportunity (for example: joint customer call, strategic positioning).
-
Cosell—Support for Public Tender/RFx: Opportunity related to the public sector where the partner needs Amazon Web Services RFx support.
-
-
national_security(Optional[NationalSecurity], default:None) –Indicates whether the
Opportunitypertains to a national security project. This field must be set totrueonly when the customer's industry is Government. Additional privacy and security measures apply during the review and management process for opportunities marked asNationalSecurity. -
partner_opportunity_identifier(Optional[str], default:None) –Specifies the opportunity's unique identifier in the partner's CRM system. This value is essential to track and reconcile because it's included in the outbound payload to the partner.
This field allows partners to link an opportunity to their CRM, which helps to ensure seamless integration and accurate synchronization between the Partner Central API and the partner's internal systems.
-
customer(Optional[Customer], default:None) –Specifies customer details associated with the
Opportunity. -
project(Optional[Project], default:None) –An object that contains project details for the
Opportunity. -
opportunity_type(Optional[OpportunityType], default:None) –Specifies the opportunity type as a renewal, new, or expansion.
Opportunity types:
-
New opportunity: Represents a new business opportunity with a potential customer that's not previously engaged with your solutions or services.
-
Renewal opportunity: Represents an opportunity to renew an existing contract or subscription with a current customer, ensuring continuity of service.
-
Expansion opportunity: Represents an opportunity to expand the scope of an existing contract or subscription, either by adding new services or increasing the volume of existing services for a current customer.
-
-
marketing(Optional[Marketing], default:None) –This object contains marketing details and is optional for an opportunity.
-
software_revenue(Optional[SoftwareRevenue], default:None) –Specifies details of a customer's procurement terms. This is required only for partners in eligible programs.
-
client_token(ClientToken) –Required to be unique, and should be unchanging, it can be randomly generated or a meaningful string.
Default: None
Best practice: To help ensure uniqueness and avoid conflicts, use a Universally Unique Identifier (UUID) as the
ClientToken. You can use standard libraries from most programming languages to generate this. If you use the same client token, the API returns the following error: "Conflicting client token submitted for a new request body." -
life_cycle(Optional[LifeCycle], default:None) –An object that contains lifecycle details for the
Opportunity. -
origin(Optional[OpportunityOrigin], default:None) –Specifies the origin of the opportunity, indicating if it was sourced from Amazon Web Services or the partner. For all opportunities created with
Catalog: AWS, this field must only bePartner Referral. However, when usingCatalog: Sandbox, you can set this field toAWS Referralto simulate Amazon Web Services referral creation. This allows Amazon Web Services-originated flows testing in the sandbox catalog. -
opportunity_team(Optional[PartnerOpportunityTeamMembersList], default:None) –Represents the internal team handling the opportunity. Specify collaborating members of this opportunity who are within the partner's organization.
-
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.
-
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
1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 | |