update_opportunity
¶
update_opportunity(
catalog: CatalogIdentifier,
last_modified_date: DateTime,
identifier: OpportunityIdentifier,
*,
config_overrides: Optional[PartnerCentralSellingClientConfig] = 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,
) -> UpdateOpportunityResponse
Updates the Opportunity record identified by a given Identifier. This operation allows you to modify the details of an existing opportunity to reflect the latest information and progress. Use this action to keep the opportunity record up-to-date and accurate.
When you perform updates, include the entire payload with each request. If any field is omitted, the API assumes that the field is set to null. The best practice is to always perform a GetOpportunity to retrieve the latest values, then send the complete payload with the updated values to be changed.
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 updated in. UseAWSto update real opportunities in the production environment, andSandboxfor testing in secure, isolated environments. When you use theSandboxcatalog, it allows you to simulate and validate your interactions with Amazon Web Services services without affecting live data or operations. -
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 AWS seller for support situations where a partner may be receiving an upfront discount on a service (for example: EDP deals).
-
Cosell—Technical Consultation: Connection 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 RFx support from Amazon Web Services.
-
-
national_security(Optional[NationalSecurity], default:None) –Specifies if the opportunity is associated with national security concerns. This flag is only applicable when the industry is
Government. For national-security-related opportunities, validation and compliance rules may apply, impacting the opportunity's visibility and processing. -
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 sent back to the partner.
-
customer(Optional[Customer], default:None) –Specifies details of the customer associated with the
Opportunity. -
project(Optional[Project], default:None) –An object that contains project details summary 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) –An object that contains marketing details for the
Opportunity. -
software_revenue(Optional[SoftwareRevenue], default:None) –Specifies details of a customer's procurement terms. Required only for partners in eligible programs.
-
last_modified_date(DateTime) –DateTimewhen the opportunity was last modified. -
identifier(OpportunityIdentifier) –Read-only, system generated
Opportunityunique identifier. -
life_cycle(Optional[LifeCycle], default:None) –An object that contains lifecycle details for the
Opportunity.
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/partner_central_selling.py
2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 | |