clients/client-partnercentral-selling/README.md
AWS SDK for JavaScript PartnerCentralSelling Client for Node.js, Browser and React Native.
<fullname>AWS Partner Central API for Selling</fullname> <p> <b>AWS Partner Central API for Selling Reference Guide</b> </p> <p>This Amazon Web Services (AWS) Partner Central API reference is designed to help <a href="http://aws.amazon.com/partners/programs/">AWS Partners</a> integrate Customer Relationship Management (CRM) systems with AWS Partner Central. Partners can automate interactions with AWS Partner Central, which helps to ensure effective engagements in joint business activities.</p> <p>The API provides standard AWS API functionality. Access it by either using API <a href="https://docs.aws.amazon.com/partner-central/latest/selling-api/API_Operations.html">Actions</a> or by using an AWS SDK that's tailored to your programming language or platform. For more information, see <a href="http://aws.amazon.com/getting-started">Getting Started with AWS</a> and <a href="http://aws.amazon.com/developer/tools/">Tools to Build on AWS</a>.</p> <p class="title"> <b>Features offered by AWS Partner Central API</b> </p> <ol> <li> <p> <b>Opportunity management:</b> Manages coselling opportunities through API actions such as <code>CreateOpportunity</code>, <code>UpdateOpportunity</code>, <code>ListOpportunities</code>, <code>GetOpportunity</code>, and <code>AssignOpportunity</code>.</p> </li> <li> <p> <b>AWS referral management:</b> Manages referrals shared by AWS using actions such as <code>ListEngagementInvitations</code>, <code>GetEngagementInvitation</code>, <code>StartEngagementByAcceptingInvitation</code>, and <code>RejectEngagementInvitation</code>.</p> </li> <li> <p> <b>Entity association:</b> Associates related entities such as <i>AWS Products</i>, <i>Partner Solutions</i>, and <i>AWS Marketplace Private Offers</i> with opportunities using the actions <code>AssociateOpportunity</code>, and <code>DisassociateOpportunity</code>.</p> </li> <li> <p> <b>View AWS opportunity details:</b> Retrieves real-time summaries of AWS opportunities using the <code>GetAWSOpportunitySummary</code> action.</p> </li> <li> <p> <b>List solutions:</b> Provides list APIs for listing partner offers using <code>ListSolutions</code>.</p> </li> <li> <p> <b>Event subscription:</b> Subscribe to real-time opportunity updates through AWS EventBridge by using actions such as <i>Opportunity Created</i>, <i>Opportunity Updated</i>, <i>Engagement Invitation Accepted</i>, <i>Engagement Invitation Rejected</i>, and <i>Engagement Invitation Created</i>.</p> </li> </ol>
To install this package, use the CLI of your favorite package manager:
npm install @aws-sdk/client-partnercentral-sellingyarn add @aws-sdk/client-partnercentral-sellingpnpm add @aws-sdk/client-partnercentral-sellingThe AWS SDK is modulized by clients and commands.
To send a request, you only need to import the PartnerCentralSellingClient and
the commands you need, for example ListEngagementsCommand:
// ES5 example
const { PartnerCentralSellingClient, ListEngagementsCommand } = require("@aws-sdk/client-partnercentral-selling");
// ES6+ example
import { PartnerCentralSellingClient, ListEngagementsCommand } from "@aws-sdk/client-partnercentral-selling";
To send a request:
send operation on the client, providing the command object as input.const client = new PartnerCentralSellingClient({ region: "REGION" });
const params = { /** input parameters */ };
const command = new ListEngagementsCommand(params);
We recommend using the await operator to wait for the promise returned by send operation as follows:
// async/await.
try {
const data = await client.send(command);
// process data.
} catch (error) {
// error handling.
} finally {
// finally.
}
You can also use Promise chaining.
client
.send(command)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
})
.finally(() => {
// finally.
});
The aggregated client class is exported from the same package, but without the "Client" suffix.
PartnerCentralSelling extends PartnerCentralSellingClient and additionally supports all operations, waiters, and paginators as methods.
This style may be familiar to you from the AWS SDK for JavaScript v2.
If you are bundling the AWS SDK, we recommend using only the bare-bones client (PartnerCentralSellingClient).
More details are in the blog post on
modular packages in AWS SDK for JavaScript.
import { PartnerCentralSelling } from "@aws-sdk/client-partnercentral-selling";
const client = new PartnerCentralSelling({ region: "REGION" });
// async/await.
try {
const data = await client.listEngagements(params);
// process data.
} catch (error) {
// error handling.
}
// Promises.
client
.listEngagements(params)
.then((data) => {
// process data.
})
.catch((error) => {
// error handling.
});
// callbacks (not recommended).
client.listEngagements(params, (err, data) => {
// process err and data.
});
When the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).
try {
const data = await client.send(command);
// process data.
} catch (error) {
const { requestId, cfId, extendedRequestId } = error.$metadata;
console.log({ requestId, cfId, extendedRequestId });
/**
* The keys within exceptions are also parsed.
* You can access them by specifying exception names:
* if (error.name === 'SomeServiceException') {
* const value = error.specialKeyInException;
* }
*/
}
See also docs/ERROR_HANDLING.
Please use these community resources for getting help. We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
aws-sdk-js
on AWS Developer Blog.aws-sdk-js.To test your universal JavaScript code in Node.js, browser and react-native environments, visit our code samples repo.
This client code is generated automatically. Any modifications will be overwritten the next time the @aws-sdk/client-partnercentral-selling package is updated.
To contribute to client you can check our generate clients scripts.
This SDK is distributed under the Apache License, Version 2.0, see LICENSE for more information.
Command API Reference / Input / Output
</details> <details> <summary> AssignOpportunity </summary>Command API Reference / Input / Output
</details> <details> <summary> AssociateOpportunity </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateEngagement </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateEngagementContext </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateEngagementInvitation </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateOpportunity </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateResourceSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> CreateResourceSnapshotJob </summary>Command API Reference / Input / Output
</details> <details> <summary> DeleteResourceSnapshotJob </summary>Command API Reference / Input / Output
</details> <details> <summary> DisassociateOpportunity </summary>Command API Reference / Input / Output
</details> <details> <summary> GetAwsOpportunitySummary </summary>Command API Reference / Input / Output
</details> <details> <summary> GetEngagement </summary>Command API Reference / Input / Output
</details> <details> <summary> GetEngagementInvitation </summary>Command API Reference / Input / Output
</details> <details> <summary> GetOpportunity </summary>Command API Reference / Input / Output
</details> <details> <summary> GetResourceSnapshot </summary>Command API Reference / Input / Output
</details> <details> <summary> GetResourceSnapshotJob </summary>Command API Reference / Input / Output
</details> <details> <summary> GetSellingSystemSettings </summary>Command API Reference / Input / Output
</details> <details> <summary> ListEngagementByAcceptingInvitationTasks </summary>Command API Reference / Input / Output
</details> <details> <summary> ListEngagementFromOpportunityTasks </summary>Command API Reference / Input / Output
</details> <details> <summary> ListEngagementInvitations </summary>Command API Reference / Input / Output
</details> <details> <summary> ListEngagementMembers </summary>Command API Reference / Input / Output
</details> <details> <summary> ListEngagementResourceAssociations </summary>Command API Reference / Input / Output
</details> <details> <summary> ListEngagements </summary>Command API Reference / Input / Output
</details> <details> <summary> ListOpportunities </summary>Command API Reference / Input / Output
</details> <details> <summary> ListOpportunityFromEngagementTasks </summary>Command API Reference / Input / Output
</details> <details> <summary> ListResourceSnapshotJobs </summary>Command API Reference / Input / Output
</details> <details> <summary> ListResourceSnapshots </summary>Command API Reference / Input / Output
</details> <details> <summary> ListSolutions </summary>Command API Reference / Input / Output
</details> <details> <summary> ListTagsForResource </summary>Command API Reference / Input / Output
</details> <details> <summary> PutSellingSystemSettings </summary>Command API Reference / Input / Output
</details> <details> <summary> RejectEngagementInvitation </summary>Command API Reference / Input / Output
</details> <details> <summary> StartEngagementByAcceptingInvitationTask </summary>Command API Reference / Input / Output
</details> <details> <summary> StartEngagementFromOpportunityTask </summary>Command API Reference / Input / Output
</details> <details> <summary> StartOpportunityFromEngagementTask </summary>Command API Reference / Input / Output
</details> <details> <summary> StartResourceSnapshotJob </summary>Command API Reference / Input / Output
</details> <details> <summary> StopResourceSnapshotJob </summary>Command API Reference / Input / Output
</details> <details> <summary> SubmitOpportunity </summary>Command API Reference / Input / Output
</details> <details> <summary> TagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UntagResource </summary>Command API Reference / Input / Output
</details> <details> <summary> UpdateEngagementContext </summary> </details> <details> <summary> UpdateOpportunity </summary> </details>