import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { UpdateOpportunityRequest, UpdateOpportunityResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link UpdateOpportunityCommand}. */ export interface UpdateOpportunityCommandInput extends UpdateOpportunityRequest { } /** * @public * * The output of {@link UpdateOpportunityCommand}. */ export interface UpdateOpportunityCommandOutput extends UpdateOpportunityResponse, __MetadataBearer { } declare const UpdateOpportunityCommand_base: { new (input: UpdateOpportunityCommandInput): import("@smithy/core/client").CommandImpl; new (input: UpdateOpportunityCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { PartnerCentralSellingClient, UpdateOpportunityCommand } from "@aws-sdk/client-partnercentral-selling"; // ES Modules import * // const { PartnerCentralSellingClient, UpdateOpportunityCommand } = require("@aws-sdk/client-partnercentral-selling"); // CommonJS import * // import type { PartnerCentralSellingClientConfig } from "@aws-sdk/client-partnercentral-selling"; * const config = {}; // type is PartnerCentralSellingClientConfig * const client = new PartnerCentralSellingClient(config); * const input = { // UpdateOpportunityRequest * Catalog: "STRING_VALUE", // required * PrimaryNeedsFromAws: [ // 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", * ], * NationalSecurity: "Yes" || "No", * PartnerOpportunityIdentifier: "STRING_VALUE", * Customer: { // Customer * Account: { // 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_VALUE", * CompanyName: "STRING_VALUE", // required * WebsiteUrl: "STRING_VALUE", * AwsAccountId: "STRING_VALUE", * Address: { // Address * City: "STRING_VALUE", * PostalCode: "STRING_VALUE", * StateOrRegion: "STRING_VALUE", * 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_VALUE", * }, * Duns: "STRING_VALUE", * }, * Contacts: [ // CustomerContactsList * { // Contact * Email: "STRING_VALUE", * FirstName: "STRING_VALUE", * LastName: "STRING_VALUE", * BusinessTitle: "STRING_VALUE", * Phone: "STRING_VALUE", * }, * ], * }, * Project: { // Project * DeliveryModels: [ // DeliveryModels * "SaaS or PaaS" || "BYOL or AMI" || "Managed Services" || "Professional Services" || "Resell" || "Other", * ], * ExpectedCustomerSpend: [ // ExpectedCustomerSpendList * { // ExpectedCustomerSpend * Amount: "STRING_VALUE", * CurrencyCode: "USD" || "EUR" || "GBP" || "AUD" || "CAD" || "CNY" || "NZD" || "INR" || "JPY" || "CHF" || "SEK" || "AED" || "AFN" || "ALL" || "AMD" || "ANG" || "AOA" || "ARS" || "AWG" || "AZN" || "BAM" || "BBD" || "BDT" || "BGN" || "BHD" || "BIF" || "BMD" || "BND" || "BOB" || "BOV" || "BRL" || "BSD" || "BTN" || "BWP" || "BYN" || "BZD" || "CDF" || "CHE" || "CHW" || "CLF" || "CLP" || "COP" || "COU" || "CRC" || "CUC" || "CUP" || "CVE" || "CZK" || "DJF" || "DKK" || "DOP" || "DZD" || "EGP" || "ERN" || "ETB" || "FJD" || "FKP" || "GEL" || "GHS" || "GIP" || "GMD" || "GNF" || "GTQ" || "GYD" || "HKD" || "HNL" || "HRK" || "HTG" || "HUF" || "IDR" || "ILS" || "IQD" || "IRR" || "ISK" || "JMD" || "JOD" || "KES" || "KGS" || "KHR" || "KMF" || "KPW" || "KRW" || "KWD" || "KYD" || "KZT" || "LAK" || "LBP" || "LKR" || "LRD" || "LSL" || "LYD" || "MAD" || "MDL" || "MGA" || "MKD" || "MMK" || "MNT" || "MOP" || "MRU" || "MUR" || "MVR" || "MWK" || "MXN" || "MXV" || "MYR" || "MZN" || "NAD" || "NGN" || "NIO" || "NOK" || "NPR" || "OMR" || "PAB" || "PEN" || "PGK" || "PHP" || "PKR" || "PLN" || "PYG" || "QAR" || "RON" || "RSD" || "RUB" || "RWF" || "SAR" || "SBD" || "SCR" || "SDG" || "SGD" || "SHP" || "SLL" || "SOS" || "SRD" || "SSP" || "STN" || "SVC" || "SYP" || "SZL" || "THB" || "TJS" || "TMT" || "TND" || "TOP" || "TRY" || "TTD" || "TWD" || "TZS" || "UAH" || "UGX" || "USN" || "UYI" || "UYU" || "UZS" || "VEF" || "VND" || "VUV" || "WST" || "XAF" || "XCD" || "XDR" || "XOF" || "XPF" || "XSU" || "XUA" || "YER" || "ZAR" || "ZMW" || "ZWL", // required * Frequency: "Monthly", // required * TargetCompany: "STRING_VALUE", // required * EstimationUrl: "STRING_VALUE", * }, * ], * ExpectedContractDuration: { // ExpectedContractDuration * Term: "Months", // required * Value: "STRING_VALUE", // required * }, * Title: "STRING_VALUE", * ApnPrograms: [ // ApnPrograms * "STRING_VALUE", * ], * CustomerBusinessProblem: "STRING_VALUE", * CustomerUseCase: "STRING_VALUE", * RelatedOpportunityIdentifier: "STRING_VALUE", * SalesActivities: [ // 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", * ], * CompetitorName: "Oracle Cloud" || "On-Prem" || "Co-location" || "Akamai" || "AliCloud" || "Google Cloud Platform" || "IBM Softlayer" || "Microsoft Azure" || "Other- Cost Optimization" || "No Competition" || "*Other", * OtherCompetitorNames: "STRING_VALUE", * OtherSolutionDescription: "STRING_VALUE", * AdditionalComments: "STRING_VALUE", * AwsPartition: "aws-eusc", * }, * OpportunityType: "Net New Business" || "Flat Renewal" || "Expansion", * Marketing: { // Marketing * CampaignName: "STRING_VALUE", * Source: "Marketing Activity" || "None", * UseCases: [ // UseCases * "STRING_VALUE", * ], * Channels: [ // Channels * "AWS Marketing Central" || "Content Syndication" || "Display" || "Email" || "Live Event" || "Out Of Home (OOH)" || "Print" || "Search" || "Social" || "Telemarketing" || "TV" || "Video" || "Virtual Event", * ], * AwsFundingUsed: "Yes" || "No", * }, * SoftwareRevenue: { // SoftwareRevenue * DeliveryModel: "Contract" || "Pay-as-you-go" || "Subscription", * Value: { // MonetaryValue * Amount: "STRING_VALUE", // required * CurrencyCode: "USD" || "EUR" || "GBP" || "AUD" || "CAD" || "CNY" || "NZD" || "INR" || "JPY" || "CHF" || "SEK" || "AED" || "AFN" || "ALL" || "AMD" || "ANG" || "AOA" || "ARS" || "AWG" || "AZN" || "BAM" || "BBD" || "BDT" || "BGN" || "BHD" || "BIF" || "BMD" || "BND" || "BOB" || "BOV" || "BRL" || "BSD" || "BTN" || "BWP" || "BYN" || "BZD" || "CDF" || "CHE" || "CHW" || "CLF" || "CLP" || "COP" || "COU" || "CRC" || "CUC" || "CUP" || "CVE" || "CZK" || "DJF" || "DKK" || "DOP" || "DZD" || "EGP" || "ERN" || "ETB" || "FJD" || "FKP" || "GEL" || "GHS" || "GIP" || "GMD" || "GNF" || "GTQ" || "GYD" || "HKD" || "HNL" || "HRK" || "HTG" || "HUF" || "IDR" || "ILS" || "IQD" || "IRR" || "ISK" || "JMD" || "JOD" || "KES" || "KGS" || "KHR" || "KMF" || "KPW" || "KRW" || "KWD" || "KYD" || "KZT" || "LAK" || "LBP" || "LKR" || "LRD" || "LSL" || "LYD" || "MAD" || "MDL" || "MGA" || "MKD" || "MMK" || "MNT" || "MOP" || "MRU" || "MUR" || "MVR" || "MWK" || "MXN" || "MXV" || "MYR" || "MZN" || "NAD" || "NGN" || "NIO" || "NOK" || "NPR" || "OMR" || "PAB" || "PEN" || "PGK" || "PHP" || "PKR" || "PLN" || "PYG" || "QAR" || "RON" || "RSD" || "RUB" || "RWF" || "SAR" || "SBD" || "SCR" || "SDG" || "SGD" || "SHP" || "SLL" || "SOS" || "SRD" || "SSP" || "STN" || "SVC" || "SYP" || "SZL" || "THB" || "TJS" || "TMT" || "TND" || "TOP" || "TRY" || "TTD" || "TWD" || "TZS" || "UAH" || "UGX" || "USN" || "UYI" || "UYU" || "UZS" || "VEF" || "VND" || "VUV" || "WST" || "XAF" || "XCD" || "XDR" || "XOF" || "XPF" || "XSU" || "XUA" || "YER" || "ZAR" || "ZMW" || "ZWL", // required * }, * EffectiveDate: "STRING_VALUE", * ExpirationDate: "STRING_VALUE", * }, * LastModifiedDate: new Date("TIMESTAMP"), // required * Identifier: "STRING_VALUE", // required * LifeCycle: { // LifeCycle * Stage: "Prospect" || "Qualified" || "Technical Validation" || "Business Validation" || "Committed" || "Launched" || "Closed Lost", * ClosedLostReason: "Customer Deficiency" || "Delay / Cancellation of Project" || "Legal / Tax / Regulatory" || "Lost to Competitor - Google" || "Lost to Competitor - Microsoft" || "Lost to Competitor - SoftLayer" || "Lost to Competitor - VMWare" || "Lost to Competitor - Other" || "No Opportunity" || "On Premises Deployment" || "Partner Gap" || "Price" || "Security / Compliance" || "Technical Limitations" || "Customer Experience" || "Other" || "People/Relationship/Governance" || "Product/Technology" || "Financial/Commercial", * NextSteps: "STRING_VALUE", * TargetCloseDate: "STRING_VALUE", * ReviewStatus: "Pending Submission" || "Submitted" || "In review" || "Approved" || "Rejected" || "Action Required", * ReviewComments: "STRING_VALUE", * ReviewStatusReason: "STRING_VALUE", * NextStepsHistory: [ // NextStepsHistories * { // NextStepsHistory * Value: "STRING_VALUE", // required * Time: new Date("TIMESTAMP"), // required * }, * ], * }, * }; * const command = new UpdateOpportunityCommand(input); * const response = await client.send(command); * // { // UpdateOpportunityResponse * // Id: "STRING_VALUE", // required * // LastModifiedDate: new Date("TIMESTAMP"), // required * // }; * * ``` * * @param UpdateOpportunityCommandInput - {@link UpdateOpportunityCommandInput} * @returns {@link UpdateOpportunityCommandOutput} * @see {@link UpdateOpportunityCommandInput} for command's `input` shape. * @see {@link UpdateOpportunityCommandOutput} for command's `response` shape. * @see {@link PartnerCentralSellingClientResolvedConfig | config} for PartnerCentralSellingClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

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.

* * @throws {@link ConflictException} (client fault) *

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.

* * @throws {@link InternalServerException} (server fault) *

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.

* * @throws {@link ResourceNotFoundException} (client fault) *

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.

* * @throws {@link ThrottlingException} (client fault) *

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.

* * @throws {@link ValidationException} (client fault) *

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.

* * @throws {@link PartnerCentralSellingServiceException} *

Base exception class for all service exceptions from PartnerCentralSelling service.

* * * @public */ export declare class UpdateOpportunityCommand extends UpdateOpportunityCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateOpportunityRequest; output: UpdateOpportunityResponse; }; sdk: { input: UpdateOpportunityCommandInput; output: UpdateOpportunityCommandOutput; }; }; }