Skip to content

Commit 9ede01b

Browse files
author
awstools
committed
feat(client-partnercentral-selling): Add Tagging Support for Opportunity resources
1 parent 46d94c1 commit 9ede01b

File tree

6 files changed

+62
-23
lines changed

6 files changed

+62
-23
lines changed

clients/client-partnercentral-selling/src/commands/CreateOpportunityCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ export interface CreateOpportunityCommandOutput extends CreateOpportunityRespons
151151
* Phone: "STRING_VALUE",
152152
* },
153153
* ],
154+
* Tags: [ // TagList
155+
* { // Tag
156+
* Key: "STRING_VALUE", // required
157+
* Value: "STRING_VALUE", // required
158+
* },
159+
* ],
154160
* };
155161
* const command = new CreateOpportunityCommand(input);
156162
* const response = await client.send(command);

clients/client-partnercentral-selling/src/commands/ListOpportunitiesCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface ListOpportunitiesCommandInput extends ListOpportunitiesRequest
3636
export interface ListOpportunitiesCommandOutput extends ListOpportunitiesResponse, __MetadataBearer {}
3737

3838
/**
39-
* <p>This request accepts a list of filters that retrieve opportunity subsets as well as sort options. This feature is available to partners from <a href="https://partnercentral.awspartner.com/">Partner Central</a> using the <code>ListOpportunities</code> API action.</p> <p>To synchronize your system with Amazon Web Services, only list the opportunities that were newly created or updated. We recommend you rely on events emitted by the service into your Amazon Web Services account’s Amazon EventBridge default event bus, you can also use the <code>ListOpportunities</code> action.</p> <p>We recommend the following approach:</p> <ol> <li> <p>Find the latest <code>LastModifiedDate</code> that you stored, and only use the values that came from Amazon Web Services. Don’t use values generated by your system.</p> </li> <li> <p>When you send a <code>ListOpportunities</code> request, submit the date in ISO 8601 format in the <code>AfterLastModifiedDate</code> filter.</p> </li> <li> <p>Amazon Web Services only returns opportunities created or updated on or after that date and time. Use <code>NextToken</code> to iterate over all pages.</p> </li> </ol>
39+
* <p>This request accepts a list of filters that retrieve opportunity subsets as well as sort options. This feature is available to partners from <a href="https://partnercentral.awspartner.com/">Partner Central</a> using the <code>ListOpportunities</code> API action.</p> <p>To synchronize your system with Amazon Web Services, list only the opportunities that were newly created or updated. We recommend you rely on events emitted by the service into your Amazon Web Services account’s Amazon EventBridge default event bus. You can also use the <code>ListOpportunities</code> action.</p> <p>We recommend the following approach:</p> <ol> <li> <p>Find the latest <code>LastModifiedDate</code> that you stored, and only use the values that came from Amazon Web Services. Don’t use values generated by your system.</p> </li> <li> <p>When you send a <code>ListOpportunities</code> request, submit the date in ISO 8601 format in the <code>AfterLastModifiedDate</code> filter.</p> </li> <li> <p>Amazon Web Services only returns opportunities created or updated on or after that date and time. Use <code>NextToken</code> to iterate over all pages.</p> </li> </ol>
4040
* @example
4141
* Use a bare-bones client and the command you need to make an API call.
4242
* ```javascript

clients/client-partnercentral-selling/src/commands/StartEngagementFromOpportunityTaskCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface StartEngagementFromOpportunityTaskCommandOutput
4040
__MetadataBearer {}
4141

4242
/**
43-
* <p>This action initiates the engagement process from an existing opportunity by accepting the engagement invitation and creating a corresponding opportunity in the partner’s system. Similar to <code>StartEngagementByAcceptingInvitationTask</code>, this action is asynchronous and performs multiple steps before completion.</p>
43+
* <p>Similar to <code>StartEngagementByAcceptingInvitationTask</code>, this action is asynchronous and performs multiple steps before completion. This action orchestrates a comprehensive workflow that combines multiple API operations into a single task to create and initiate an engagement from an existing opportunity. It automatically executes a sequence of operations including <code>GetOpportunity</code>, <code>CreateEngagement</code> (if it doesn't exist), <code>CreateResourceSnapshot</code>, <code>CreateResourceSnapshotJob</code>, <code>CreateEngagementInvitation</code> (if not already invited/accepted), and <code>SubmitOpportunity</code>. </p>
4444
* @example
4545
* Use a bare-bones client and the command you need to make an API call.
4646
* ```javascript

clients/client-partnercentral-selling/src/models/models_0.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,13 +1265,13 @@ export interface ExpectedCustomerSpend {
12651265
CurrencyCode: CurrencyCode | undefined;
12661266

12671267
/**
1268-
* <p>Indicates how frequently the customer is expected to spend the projected amount. This can include values such as <code>Monthly</code>, <code>Quarterly</code>, or <code>Annually</code>. The default value is <code>Monthly</code>, representing recurring monthly spend.</p>
1268+
* <p>Indicates how frequently the customer is expected to spend the projected amount. Only the value <code>Monthly</code> is allowed for the <code>Frequency</code> field, representing recurring monthly spend.</p>
12691269
* @public
12701270
*/
12711271
Frequency: PaymentFrequency | undefined;
12721272

12731273
/**
1274-
* <p>Specifies the name of the partner company that is expected to generate revenue from the opportunity. This field helps track the partner’s involvement in the opportunity.</p>
1274+
* <p>Specifies the name of the partner company that is expected to generate revenue from the opportunity. This field helps track the partner’s involvement in the opportunity. This field only accepts the value <code>AWS</code>. If any other value is provided, the system will automatically set it to <code>AWS</code>.</p>
12751275
* @public
12761276
*/
12771277
TargetCompany: string | undefined;
@@ -3300,13 +3300,13 @@ export interface LifeCycle {
33003300
ReviewStatus?: ReviewStatus | undefined;
33013301

33023302
/**
3303-
* <p>Indicates why an opportunity was sent back for further details. Partners must take corrective action based on the <code>ReviewComments</code>.</p>
3303+
* <p>Contains detailed feedback from Amazon Web Services when requesting additional information from partners. Provides specific guidance on what partners need to provide or clarify for opportunity validation, complementing the <code>ReviewStatusReason</code> field.</p>
33043304
* @public
33053305
*/
33063306
ReviewComments?: string | undefined;
33073307

33083308
/**
3309-
* <p>Indicates the reason a decision was made during the opportunity review process. This field combines the reasons for both disqualified and action required statuses, and provide clarity for why an opportunity was disqualified or requires further action.</p>
3309+
* <p>Code indicating the validation decision during the Amazon Web Services opportunity review. Applies when status is <code>Rejected</code> or <code>Action Required</code>. Used to document validation results for AWS Partner Referrals and indicate when additional information is needed from partners as part of the APN Customer Engagement (ACE) program.</p>
33103310
* @public
33113311
*/
33123312
ReviewStatusReason?: string | undefined;
@@ -3739,6 +3739,12 @@ export interface CreateOpportunityRequest {
37393739
* @public
37403740
*/
37413741
OpportunityTeam?: Contact[] | undefined;
3742+
3743+
/**
3744+
* <p>A map of the key-value pairs of the tag or tags to assign.</p>
3745+
* @public
3746+
*/
3747+
Tags?: Tag[] | undefined;
37423748
}
37433749

37443750
/**
@@ -5672,6 +5678,7 @@ export const AwsOpportunityLifeCycleFilterSensitiveLog = (obj: AwsOpportunityLif
56725678
*/
56735679
export const ExpectedCustomerSpendFilterSensitiveLog = (obj: ExpectedCustomerSpend): any => ({
56745680
...obj,
5681+
...(obj.Amount && { Amount: SENSITIVE_STRING }),
56755682
...(obj.CurrencyCode && { CurrencyCode: SENSITIVE_STRING }),
56765683
...(obj.EstimationUrl && { EstimationUrl: SENSITIVE_STRING }),
56775684
});

clients/client-partnercentral-selling/src/protocols/Aws_json1_0.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,6 +1702,7 @@ const se_CreateOpportunityRequest = (input: CreateOpportunityRequest, context: _
17021702
PrimaryNeedsFromAws: _json,
17031703
Project: _json,
17041704
SoftwareRevenue: _json,
1705+
Tags: _json,
17051706
});
17061707
};
17071708

0 commit comments

Comments
 (0)