Skip to content

Commit

Permalink
feat(client-partnercentral-selling): Add Tagging support for Resource…
Browse files Browse the repository at this point in the history
…SnapshotJob resources
  • Loading branch information
awstools committed Jan 15, 2025
1 parent 75b806b commit 482229b
Show file tree
Hide file tree
Showing 34 changed files with 2,024 additions and 1,336 deletions.
24 changes: 24 additions & 0 deletions clients/client-partnercentral-selling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,14 @@ ListSolutions

[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/)

</details>
<details>
<summary>
ListTagsForResource
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -535,6 +543,22 @@ SubmitOpportunity

[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/)

</details>
<details>
<summary>
TagResource
</summary>

[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/)

</details>
<details>
<summary>
UntagResource
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
53 changes: 53 additions & 0 deletions clients/client-partnercentral-selling/src/PartnerCentralSelling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ import {
ListSolutionsCommandInput,
ListSolutionsCommandOutput,
} from "./commands/ListSolutionsCommand";
import {
ListTagsForResourceCommand,
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import {
PutSellingSystemSettingsCommand,
PutSellingSystemSettingsCommandInput,
Expand Down Expand Up @@ -172,6 +177,12 @@ import {
SubmitOpportunityCommandInput,
SubmitOpportunityCommandOutput,
} from "./commands/SubmitOpportunityCommand";
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import {
UntagResourceCommand,
UntagResourceCommandInput,
UntagResourceCommandOutput,
} from "./commands/UntagResourceCommand";
import {
UpdateOpportunityCommand,
UpdateOpportunityCommandInput,
Expand Down Expand Up @@ -207,13 +218,16 @@ const commands = {
ListResourceSnapshotJobsCommand,
ListResourceSnapshotsCommand,
ListSolutionsCommand,
ListTagsForResourceCommand,
PutSellingSystemSettingsCommand,
RejectEngagementInvitationCommand,
StartEngagementByAcceptingInvitationTaskCommand,
StartEngagementFromOpportunityTaskCommand,
StartResourceSnapshotJobCommand,
StopResourceSnapshotJobCommand,
SubmitOpportunityCommand,
TagResourceCommand,
UntagResourceCommand,
UpdateOpportunityCommand,
};

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

/**
* @see {@link ListTagsForResourceCommand}
*/
listTagsForResource(
args: ListTagsForResourceCommandInput,
options?: __HttpHandlerOptions
): Promise<ListTagsForResourceCommandOutput>;
listTagsForResource(
args: ListTagsForResourceCommandInput,
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
): void;
listTagsForResource(
args: ListTagsForResourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
): void;

/**
* @see {@link PutSellingSystemSettingsCommand}
*/
Expand Down Expand Up @@ -778,6 +809,28 @@ export interface PartnerCentralSelling {
cb: (err: any, data?: SubmitOpportunityCommandOutput) => void
): void;

/**
* @see {@link TagResourceCommand}
*/
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
tagResource(
args: TagResourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: TagResourceCommandOutput) => void
): void;

/**
* @see {@link UntagResourceCommand}
*/
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
untagResource(
args: UntagResourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UntagResourceCommandOutput) => void
): void;

/**
* @see {@link UpdateOpportunityCommand}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ import {
ListResourceSnapshotsCommandOutput,
} from "./commands/ListResourceSnapshotsCommand";
import { ListSolutionsCommandInput, ListSolutionsCommandOutput } from "./commands/ListSolutionsCommand";
import {
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import {
PutSellingSystemSettingsCommandInput,
PutSellingSystemSettingsCommandOutput,
Expand All @@ -162,6 +166,8 @@ import {
StopResourceSnapshotJobCommandOutput,
} from "./commands/StopResourceSnapshotJobCommand";
import { SubmitOpportunityCommandInput, SubmitOpportunityCommandOutput } from "./commands/SubmitOpportunityCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
import { UpdateOpportunityCommandInput, UpdateOpportunityCommandOutput } from "./commands/UpdateOpportunityCommand";
import {
ClientInputEndpointParameters,
Expand Down Expand Up @@ -205,13 +211,16 @@ export type ServiceInputTypes =
| ListResourceSnapshotJobsCommandInput
| ListResourceSnapshotsCommandInput
| ListSolutionsCommandInput
| ListTagsForResourceCommandInput
| PutSellingSystemSettingsCommandInput
| RejectEngagementInvitationCommandInput
| StartEngagementByAcceptingInvitationTaskCommandInput
| StartEngagementFromOpportunityTaskCommandInput
| StartResourceSnapshotJobCommandInput
| StopResourceSnapshotJobCommandInput
| SubmitOpportunityCommandInput
| TagResourceCommandInput
| UntagResourceCommandInput
| UpdateOpportunityCommandInput;

/**
Expand Down Expand Up @@ -245,13 +254,16 @@ export type ServiceOutputTypes =
| ListResourceSnapshotJobsCommandOutput
| ListResourceSnapshotsCommandOutput
| ListSolutionsCommandOutput
| ListTagsForResourceCommandOutput
| PutSellingSystemSettingsCommandOutput
| RejectEngagementInvitationCommandOutput
| StartEngagementByAcceptingInvitationTaskCommandOutput
| StartEngagementFromOpportunityTaskCommandOutput
| StartResourceSnapshotJobCommandOutput
| StopResourceSnapshotJobCommandOutput
| SubmitOpportunityCommandOutput
| TagResourceCommandOutput
| UntagResourceCommandOutput
| UpdateOpportunityCommandOutput;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ export interface AcceptEngagementInvitationCommandInput extends AcceptEngagement
export interface AcceptEngagementInvitationCommandOutput extends __MetadataBearer {}

/**
* <p>
* Use the <code>AcceptEngagementInvitation</code> action to accept an engagement invitation shared by AWS.
* Accepting the invitation indicates your willingness to participate in the engagement,
* granting you access to all engagement-related data.
* </p>
* <p>Use the <code>AcceptEngagementInvitation</code> action to accept an engagement
* invitation shared by AWS. Accepting the invitation indicates your willingness to
* participate in the engagement, granting you access to all engagement-related
* data.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down Expand Up @@ -65,6 +64,13 @@ export interface AcceptEngagementInvitationCommandOutput extends __MetadataBeare
* <p>You don’t have access to this action or resource. Review IAM policies or contact your
* AWS administrator for assistance.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>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.</p>
* <p>Suggested action: Fetch the latest state of the resource, verify the state, and retry
* the request.</p>
*
* @throws {@link InternalServerException} (server fault)
* <p>This error occurs when the specified resource can’t be found or doesn't exist.
* Resource ID and type might be incorrect.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ export interface CreateEngagementCommandInput extends CreateEngagementRequest {}
export interface CreateEngagementCommandOutput extends CreateEngagementResponse, __MetadataBearer {}

/**
* <p>
* The <code>CreateEngagement</code> action allows you to create an <code>Engagement</code>,
* which serves as a collaborative space between different parties such as AWS Partners and AWS Sellers.
* This action automatically adds the caller's AWS account as an active member of the newly created <code>Engagement</code>.
* </p>
* <p>The <code>CreateEngagement</code> action allows you to create an
* <code>Engagement</code>, which serves as a collaborative space between different
* parties such as AWS Partners and AWS Sellers. This action automatically adds the
* caller's AWS account as an active member of the newly created
* <code>Engagement</code>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ export interface CreateEngagementInvitationCommandInput extends CreateEngagement
export interface CreateEngagementInvitationCommandOutput extends CreateEngagementInvitationResponse, __MetadataBearer {}

/**
* <p>
* This action creates an invitation from a sender to a single receiver to join an engagement.
* </p>
* <p> This action creates an invitation from a sender to a single receiver to join an
* engagement. </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export interface CreateOpportunityCommandOutput extends CreateOpportunityRespons
* <code>AssociateOpportunity</code>.</p>
* </li>
* <li>
* <p>To submit the opportunity, use
* <code>StartEngagementFromOpportunityTask</code>.</p>
* <p>To start the engagement with AWS, use
* <code>StartEngagementFromOpportunity</code>.</p>
* </li>
* </ol>
* <p>After submission, you can't edit the opportunity until the review is complete. But
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ export interface CreateResourceSnapshotCommandInput extends CreateResourceSnapsh
export interface CreateResourceSnapshotCommandOutput extends CreateResourceSnapshotResponse, __MetadataBearer {}

/**
* <p>
* This action allows you to create an immutable snapshot of a specific resource, such as an opportunity,
* within the context of an engagement.
* The snapshot captures a subset of the resource's data based on the schema defined by the provided template.</p>
* <p> This action allows you to create an immutable snapshot of a specific resource, such
* as an opportunity, within the context of an engagement. The snapshot captures a subset
* of the resource's data based on the schema defined by the provided template.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ export interface CreateResourceSnapshotJobCommandInput extends CreateResourceSna
export interface CreateResourceSnapshotJobCommandOutput extends CreateResourceSnapshotJobResponse, __MetadataBearer {}

/**
* <p>
* Use this action to create a job to generate a snapshot of the specified resource
* within an engagement. It initiates an asynchronous process to create a resource
* snapshot. The job creates a new snapshot only if the resource state has changed,
* adhering to the same access control and immutability rules as direct snapshot creation.
* </p>
* <p>Use this action to create a job to generate a snapshot of the specified resource
* within an engagement. It initiates an asynchronous process to create a resource
* snapshot. The job creates a new snapshot only if the resource state has changed,
* adhering to the same access control and immutability rules as direct snapshot
* creation.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand All @@ -51,6 +50,12 @@ export interface CreateResourceSnapshotJobCommandOutput extends CreateResourceSn
* ResourceType: "Opportunity", // required
* ResourceIdentifier: "STRING_VALUE", // required
* ResourceSnapshotTemplateIdentifier: "STRING_VALUE", // required
* Tags: [ // TagList
* { // Tag
* Key: "STRING_VALUE", // required
* Value: "STRING_VALUE", // required
* },
* ],
* };
* const command = new CreateResourceSnapshotJobCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ export interface DeleteResourceSnapshotJobCommandInput extends DeleteResourceSna
export interface DeleteResourceSnapshotJobCommandOutput extends __MetadataBearer {}

/**
* <p>
* Use this action to deletes a previously created resource snapshot job. The job must be
* in a stopped state before it can be deleted.
* </p>
* <p> Use this action to deletes a previously created resource snapshot job. The job must
* be in a stopped state before it can be deleted. </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down Expand Up @@ -64,6 +62,13 @@ export interface DeleteResourceSnapshotJobCommandOutput extends __MetadataBearer
* <p>You don’t have access to this action or resource. Review IAM policies or contact your
* AWS administrator for assistance.</p>
*
* @throws {@link ConflictException} (client fault)
* <p>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.</p>
* <p>Suggested action: Fetch the latest state of the resource, verify the state, and retry
* the request.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>This error occurs when the specified resource can't be found. The resource might not
* exist, or isn't visible with the current credentials.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ export interface GetEngagementCommandInput extends GetEngagementRequest {}
export interface GetEngagementCommandOutput extends GetEngagementResponse, __MetadataBearer {}

/**
* <p>
* Use this action to retrieve the engagement record for a given
* <code>EngagementIdentifier</code>.
* </p>
* <p>Use this action to retrieve the engagement record for a given
* <code>EngagementIdentifier</code>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ export interface GetResourceSnapshotJobCommandInput extends GetResourceSnapshotJ
export interface GetResourceSnapshotJobCommandOutput extends GetResourceSnapshotJobResponse, __MetadataBearer {}

/**
* <p>
* Use this action to retrieves information about a specific resource snapshot
* job.
* </p>
* <p>Use this action to retrieves information about a specific resource snapshot
* job.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export interface GetSellingSystemSettingsCommandInput extends GetSellingSystemSe
export interface GetSellingSystemSettingsCommandOutput extends GetSellingSystemSettingsResponse, __MetadataBearer {}

/**
* <p>Retrieves the currently set system settings, which include the IAM Role used for resource snapshot jobs.</p>
* <p>Retrieves the currently set system settings, which include the IAM Role used for
* resource snapshot jobs.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ export interface ListEngagementByAcceptingInvitationTasksCommandOutput
__MetadataBearer {}

/**
* <p>
* Lists all in-progress, completed, or failed StartEngagementByAcceptingInvitationTask
* tasks that were initiated by the caller's account.
* </p>
* <p> Lists all in-progress, completed, or failed StartEngagementByAcceptingInvitationTask
* tasks that were initiated by the caller's account. </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down Expand Up @@ -82,7 +80,7 @@ export interface ListEngagementByAcceptingInvitationTasksCommandOutput
* // StartTime: new Date("TIMESTAMP"),
* // TaskStatus: "IN_PROGRESS" || "COMPLETE" || "FAILED",
* // Message: "STRING_VALUE",
* // ReasonCode: "InvitationAccessDenied" || "InvitationValidationFailed" || "EngagementAccessDenied" || "OpportunityAccessDenied" || "ResourceSnapshotJobAccessDenied" || "ResourceSnapshotJobValidationFailed" || "ResourceSnapshotJobConflict" || "EngagementValidationFailed" || "EngagementConflict" || "OpportunitySubmissionFailed" || "EngagementInvitationConflict" || "OpportunityValidationFailed" || "OpportunityConflict" || "ResourceSnapshotAccessDenied" || "ResourceSnapshotValidationFailed" || "ResourceSnapshotConflict" || "InternalError" || "ServiceQuotaExceeded" || "RequestThrottled",
* // ReasonCode: "InvitationAccessDenied" || "InvitationValidationFailed" || "EngagementAccessDenied" || "OpportunityAccessDenied" || "ResourceSnapshotJobAccessDenied" || "ResourceSnapshotJobValidationFailed" || "ResourceSnapshotJobConflict" || "EngagementValidationFailed" || "EngagementConflict" || "OpportunitySubmissionFailed" || "EngagementInvitationConflict" || "InternalError" || "OpportunityValidationFailed" || "OpportunityConflict" || "ResourceSnapshotAccessDenied" || "ResourceSnapshotValidationFailed" || "ResourceSnapshotConflict" || "ServiceQuotaExceeded" || "RequestThrottled",
* // OpportunityId: "STRING_VALUE",
* // ResourceSnapshotJobId: "STRING_VALUE",
* // EngagementInvitationId: "STRING_VALUE",
Expand Down
Loading

0 comments on commit 482229b

Please sign in to comment.