Skip to content

Commit 482229b

Browse files
author
awstools
committed
feat(client-partnercentral-selling): Add Tagging support for ResourceSnapshotJob resources
1 parent 75b806b commit 482229b

34 files changed

+2024
-1336
lines changed

clients/client-partnercentral-selling/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,14 @@ ListSolutions
479479

480480
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/partnercentral-selling/command/ListSolutionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-partnercentral-selling/Interface/ListSolutionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-partnercentral-selling/Interface/ListSolutionsCommandOutput/)
481481

482+
</details>
483+
<details>
484+
<summary>
485+
ListTagsForResource
486+
</summary>
487+
488+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/partnercentral-selling/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-partnercentral-selling/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-partnercentral-selling/Interface/ListTagsForResourceCommandOutput/)
489+
482490
</details>
483491
<details>
484492
<summary>
@@ -535,6 +543,22 @@ SubmitOpportunity
535543

536544
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/partnercentral-selling/command/SubmitOpportunityCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-partnercentral-selling/Interface/SubmitOpportunityCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-partnercentral-selling/Interface/SubmitOpportunityCommandOutput/)
537545

546+
</details>
547+
<details>
548+
<summary>
549+
TagResource
550+
</summary>
551+
552+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/partnercentral-selling/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-partnercentral-selling/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-partnercentral-selling/Interface/TagResourceCommandOutput/)
553+
554+
</details>
555+
<details>
556+
<summary>
557+
UntagResource
558+
</summary>
559+
560+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/partnercentral-selling/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-partnercentral-selling/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-partnercentral-selling/Interface/UntagResourceCommandOutput/)
561+
538562
</details>
539563
<details>
540564
<summary>

clients/client-partnercentral-selling/src/PartnerCentralSelling.ts

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ import {
137137
ListSolutionsCommandInput,
138138
ListSolutionsCommandOutput,
139139
} from "./commands/ListSolutionsCommand";
140+
import {
141+
ListTagsForResourceCommand,
142+
ListTagsForResourceCommandInput,
143+
ListTagsForResourceCommandOutput,
144+
} from "./commands/ListTagsForResourceCommand";
140145
import {
141146
PutSellingSystemSettingsCommand,
142147
PutSellingSystemSettingsCommandInput,
@@ -172,6 +177,12 @@ import {
172177
SubmitOpportunityCommandInput,
173178
SubmitOpportunityCommandOutput,
174179
} from "./commands/SubmitOpportunityCommand";
180+
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
181+
import {
182+
UntagResourceCommand,
183+
UntagResourceCommandInput,
184+
UntagResourceCommandOutput,
185+
} from "./commands/UntagResourceCommand";
175186
import {
176187
UpdateOpportunityCommand,
177188
UpdateOpportunityCommandInput,
@@ -207,13 +218,16 @@ const commands = {
207218
ListResourceSnapshotJobsCommand,
208219
ListResourceSnapshotsCommand,
209220
ListSolutionsCommand,
221+
ListTagsForResourceCommand,
210222
PutSellingSystemSettingsCommand,
211223
RejectEngagementInvitationCommand,
212224
StartEngagementByAcceptingInvitationTaskCommand,
213225
StartEngagementFromOpportunityTaskCommand,
214226
StartResourceSnapshotJobCommand,
215227
StopResourceSnapshotJobCommand,
216228
SubmitOpportunityCommand,
229+
TagResourceCommand,
230+
UntagResourceCommand,
217231
UpdateOpportunityCommand,
218232
};
219233

@@ -659,6 +673,23 @@ export interface PartnerCentralSelling {
659673
cb: (err: any, data?: ListSolutionsCommandOutput) => void
660674
): void;
661675

676+
/**
677+
* @see {@link ListTagsForResourceCommand}
678+
*/
679+
listTagsForResource(
680+
args: ListTagsForResourceCommandInput,
681+
options?: __HttpHandlerOptions
682+
): Promise<ListTagsForResourceCommandOutput>;
683+
listTagsForResource(
684+
args: ListTagsForResourceCommandInput,
685+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
686+
): void;
687+
listTagsForResource(
688+
args: ListTagsForResourceCommandInput,
689+
options: __HttpHandlerOptions,
690+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
691+
): void;
692+
662693
/**
663694
* @see {@link PutSellingSystemSettingsCommand}
664695
*/
@@ -778,6 +809,28 @@ export interface PartnerCentralSelling {
778809
cb: (err: any, data?: SubmitOpportunityCommandOutput) => void
779810
): void;
780811

812+
/**
813+
* @see {@link TagResourceCommand}
814+
*/
815+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
816+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
817+
tagResource(
818+
args: TagResourceCommandInput,
819+
options: __HttpHandlerOptions,
820+
cb: (err: any, data?: TagResourceCommandOutput) => void
821+
): void;
822+
823+
/**
824+
* @see {@link UntagResourceCommand}
825+
*/
826+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
827+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
828+
untagResource(
829+
args: UntagResourceCommandInput,
830+
options: __HttpHandlerOptions,
831+
cb: (err: any, data?: UntagResourceCommandOutput) => void
832+
): void;
833+
781834
/**
782835
* @see {@link UpdateOpportunityCommand}
783836
*/

clients/client-partnercentral-selling/src/PartnerCentralSellingClient.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ import {
137137
ListResourceSnapshotsCommandOutput,
138138
} from "./commands/ListResourceSnapshotsCommand";
139139
import { ListSolutionsCommandInput, ListSolutionsCommandOutput } from "./commands/ListSolutionsCommand";
140+
import {
141+
ListTagsForResourceCommandInput,
142+
ListTagsForResourceCommandOutput,
143+
} from "./commands/ListTagsForResourceCommand";
140144
import {
141145
PutSellingSystemSettingsCommandInput,
142146
PutSellingSystemSettingsCommandOutput,
@@ -162,6 +166,8 @@ import {
162166
StopResourceSnapshotJobCommandOutput,
163167
} from "./commands/StopResourceSnapshotJobCommand";
164168
import { SubmitOpportunityCommandInput, SubmitOpportunityCommandOutput } from "./commands/SubmitOpportunityCommand";
169+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
170+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
165171
import { UpdateOpportunityCommandInput, UpdateOpportunityCommandOutput } from "./commands/UpdateOpportunityCommand";
166172
import {
167173
ClientInputEndpointParameters,
@@ -205,13 +211,16 @@ export type ServiceInputTypes =
205211
| ListResourceSnapshotJobsCommandInput
206212
| ListResourceSnapshotsCommandInput
207213
| ListSolutionsCommandInput
214+
| ListTagsForResourceCommandInput
208215
| PutSellingSystemSettingsCommandInput
209216
| RejectEngagementInvitationCommandInput
210217
| StartEngagementByAcceptingInvitationTaskCommandInput
211218
| StartEngagementFromOpportunityTaskCommandInput
212219
| StartResourceSnapshotJobCommandInput
213220
| StopResourceSnapshotJobCommandInput
214221
| SubmitOpportunityCommandInput
222+
| TagResourceCommandInput
223+
| UntagResourceCommandInput
215224
| UpdateOpportunityCommandInput;
216225

217226
/**
@@ -245,13 +254,16 @@ export type ServiceOutputTypes =
245254
| ListResourceSnapshotJobsCommandOutput
246255
| ListResourceSnapshotsCommandOutput
247256
| ListSolutionsCommandOutput
257+
| ListTagsForResourceCommandOutput
248258
| PutSellingSystemSettingsCommandOutput
249259
| RejectEngagementInvitationCommandOutput
250260
| StartEngagementByAcceptingInvitationTaskCommandOutput
251261
| StartEngagementFromOpportunityTaskCommandOutput
252262
| StartResourceSnapshotJobCommandOutput
253263
| StopResourceSnapshotJobCommandOutput
254264
| SubmitOpportunityCommandOutput
265+
| TagResourceCommandOutput
266+
| UntagResourceCommandOutput
255267
| UpdateOpportunityCommandOutput;
256268

257269
/**

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

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@ export interface AcceptEngagementInvitationCommandInput extends AcceptEngagement
3232
export interface AcceptEngagementInvitationCommandOutput extends __MetadataBearer {}
3333

3434
/**
35-
* <p>
36-
* Use the <code>AcceptEngagementInvitation</code> action to accept an engagement invitation shared by AWS.
37-
* Accepting the invitation indicates your willingness to participate in the engagement,
38-
* granting you access to all engagement-related data.
39-
* </p>
35+
* <p>Use the <code>AcceptEngagementInvitation</code> action to accept an engagement
36+
* invitation shared by AWS. Accepting the invitation indicates your willingness to
37+
* participate in the engagement, granting you access to all engagement-related
38+
* data.</p>
4039
* @example
4140
* Use a bare-bones client and the command you need to make an API call.
4241
* ```javascript
@@ -65,6 +64,13 @@ export interface AcceptEngagementInvitationCommandOutput extends __MetadataBeare
6564
* <p>You don’t have access to this action or resource. Review IAM policies or contact your
6665
* AWS administrator for assistance.</p>
6766
*
67+
* @throws {@link ConflictException} (client fault)
68+
* <p>This error occurs when the request can’t be processed due to a conflict with the
69+
* target resource's current state, which could result from updating or deleting the
70+
* resource.</p>
71+
* <p>Suggested action: Fetch the latest state of the resource, verify the state, and retry
72+
* the request.</p>
73+
*
6874
* @throws {@link InternalServerException} (server fault)
6975
* <p>This error occurs when the specified resource can’t be found or doesn't exist.
7076
* Resource ID and type might be incorrect.</p>

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ export interface CreateEngagementCommandInput extends CreateEngagementRequest {}
3636
export interface CreateEngagementCommandOutput extends CreateEngagementResponse, __MetadataBearer {}
3737

3838
/**
39-
* <p>
40-
* The <code>CreateEngagement</code> action allows you to create an <code>Engagement</code>,
41-
* which serves as a collaborative space between different parties such as AWS Partners and AWS Sellers.
42-
* This action automatically adds the caller's AWS account as an active member of the newly created <code>Engagement</code>.
43-
* </p>
39+
* <p>The <code>CreateEngagement</code> action allows you to create an
40+
* <code>Engagement</code>, which serves as a collaborative space between different
41+
* parties such as AWS Partners and AWS Sellers. This action automatically adds the
42+
* caller's AWS account as an active member of the newly created
43+
* <code>Engagement</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/commands/CreateEngagementInvitationCommand.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ export interface CreateEngagementInvitationCommandInput extends CreateEngagement
3636
export interface CreateEngagementInvitationCommandOutput extends CreateEngagementInvitationResponse, __MetadataBearer {}
3737

3838
/**
39-
* <p>
40-
* This action creates an invitation from a sender to a single receiver to join an engagement.
41-
* </p>
39+
* <p> This action creates an invitation from a sender to a single receiver to join an
40+
* engagement. </p>
4241
* @example
4342
* Use a bare-bones client and the command you need to make an API call.
4443
* ```javascript

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export interface CreateOpportunityCommandOutput extends CreateOpportunityRespons
5050
* <code>AssociateOpportunity</code>.</p>
5151
* </li>
5252
* <li>
53-
* <p>To submit the opportunity, use
54-
* <code>StartEngagementFromOpportunityTask</code>.</p>
53+
* <p>To start the engagement with AWS, use
54+
* <code>StartEngagementFromOpportunity</code>.</p>
5555
* </li>
5656
* </ol>
5757
* <p>After submission, you can't edit the opportunity until the review is complete. But

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ export interface CreateResourceSnapshotCommandInput extends CreateResourceSnapsh
3232
export interface CreateResourceSnapshotCommandOutput extends CreateResourceSnapshotResponse, __MetadataBearer {}
3333

3434
/**
35-
* <p>
36-
* This action allows you to create an immutable snapshot of a specific resource, such as an opportunity,
37-
* within the context of an engagement.
38-
* The snapshot captures a subset of the resource's data based on the schema defined by the provided template.</p>
35+
* <p> This action allows you to create an immutable snapshot of a specific resource, such
36+
* as an opportunity, within the context of an engagement. The snapshot captures a subset
37+
* of the resource's data based on the schema defined by the provided template.</p>
3938
* @example
4039
* Use a bare-bones client and the command you need to make an API call.
4140
* ```javascript

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@ export interface CreateResourceSnapshotJobCommandInput extends CreateResourceSna
3232
export interface CreateResourceSnapshotJobCommandOutput extends CreateResourceSnapshotJobResponse, __MetadataBearer {}
3333

3434
/**
35-
* <p>
36-
* Use this action to create a job to generate a snapshot of the specified resource
37-
* within an engagement. It initiates an asynchronous process to create a resource
38-
* snapshot. The job creates a new snapshot only if the resource state has changed,
39-
* adhering to the same access control and immutability rules as direct snapshot creation.
40-
* </p>
35+
* <p>Use this action to create a job to generate a snapshot of the specified resource
36+
* within an engagement. It initiates an asynchronous process to create a resource
37+
* snapshot. The job creates a new snapshot only if the resource state has changed,
38+
* adhering to the same access control and immutability rules as direct snapshot
39+
* creation.</p>
4140
* @example
4241
* Use a bare-bones client and the command you need to make an API call.
4342
* ```javascript
@@ -51,6 +50,12 @@ export interface CreateResourceSnapshotJobCommandOutput extends CreateResourceSn
5150
* ResourceType: "Opportunity", // required
5251
* ResourceIdentifier: "STRING_VALUE", // required
5352
* ResourceSnapshotTemplateIdentifier: "STRING_VALUE", // required
53+
* Tags: [ // TagList
54+
* { // Tag
55+
* Key: "STRING_VALUE", // required
56+
* Value: "STRING_VALUE", // required
57+
* },
58+
* ],
5459
* };
5560
* const command = new CreateResourceSnapshotJobCommand(input);
5661
* const response = await client.send(command);

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ export interface DeleteResourceSnapshotJobCommandInput extends DeleteResourceSna
3232
export interface DeleteResourceSnapshotJobCommandOutput extends __MetadataBearer {}
3333

3434
/**
35-
* <p>
36-
* Use this action to deletes a previously created resource snapshot job. The job must be
37-
* in a stopped state before it can be deleted.
38-
* </p>
35+
* <p> Use this action to deletes a previously created resource snapshot job. The job must
36+
* be in a stopped state before it can be deleted. </p>
3937
* @example
4038
* Use a bare-bones client and the command you need to make an API call.
4139
* ```javascript
@@ -64,6 +62,13 @@ export interface DeleteResourceSnapshotJobCommandOutput extends __MetadataBearer
6462
* <p>You don’t have access to this action or resource. Review IAM policies or contact your
6563
* AWS administrator for assistance.</p>
6664
*
65+
* @throws {@link ConflictException} (client fault)
66+
* <p>This error occurs when the request can’t be processed due to a conflict with the
67+
* target resource's current state, which could result from updating or deleting the
68+
* resource.</p>
69+
* <p>Suggested action: Fetch the latest state of the resource, verify the state, and retry
70+
* the request.</p>
71+
*
6772
* @throws {@link ResourceNotFoundException} (client fault)
6873
* <p>This error occurs when the specified resource can't be found. The resource might not
6974
* exist, or isn't visible with the current credentials.</p>

0 commit comments

Comments
 (0)