diff --git a/clients/client-resource-groups/README.md b/clients/client-resource-groups/README.md index 446518b70a5b..a0ba37d8561d 100644 --- a/clients/client-resource-groups/README.md +++ b/clients/client-resource-groups/README.md @@ -30,7 +30,7 @@ resource query entities

Applying, editing, and removing tags from resource groups

  • -

    Resolving resource group member ARNs so they can be returned as search +

    Resolving resource group member Amazon resource names (ARN)s so they can be returned as search results

  • @@ -236,6 +236,14 @@ see LICENSE for more information. ## Client Commands (Operations List) +
    + +CancelTagSyncTask + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-groups/command/CancelTagSyncTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/CancelTagSyncTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/CancelTagSyncTaskCommandOutput/) + +
    CreateGroup @@ -291,6 +299,14 @@ GetTags [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-groups/command/GetTagsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/GetTagsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/GetTagsCommandOutput/) +
    +
    + +GetTagSyncTask + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-groups/command/GetTagSyncTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/GetTagSyncTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/GetTagSyncTaskCommandOutput/) +
    @@ -299,6 +315,14 @@ GroupResources [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-groups/command/GroupResourcesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/GroupResourcesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/GroupResourcesCommandOutput/) +
    +
    + +ListGroupingStatuses + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-groups/command/ListGroupingStatusesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/ListGroupingStatusesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/ListGroupingStatusesCommandOutput/) +
    @@ -315,6 +339,14 @@ ListGroups [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-groups/command/ListGroupsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/ListGroupsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/ListGroupsCommandOutput/) +
    +
    + +ListTagSyncTasks + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-groups/command/ListTagSyncTasksCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/ListTagSyncTasksCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/ListTagSyncTasksCommandOutput/) +
    @@ -331,6 +363,14 @@ SearchResources [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-groups/command/SearchResourcesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/SearchResourcesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/SearchResourcesCommandOutput/) +
    +
    + +StartTagSyncTask + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/resource-groups/command/StartTagSyncTaskCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/StartTagSyncTaskCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-resource-groups/Interface/StartTagSyncTaskCommandOutput/) +
    diff --git a/clients/client-resource-groups/src/ResourceGroups.ts b/clients/client-resource-groups/src/ResourceGroups.ts index 942bad95dd2b..af125cd46c79 100644 --- a/clients/client-resource-groups/src/ResourceGroups.ts +++ b/clients/client-resource-groups/src/ResourceGroups.ts @@ -2,6 +2,11 @@ import { createAggregatedClient } from "@smithy/smithy-client"; import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types"; +import { + CancelTagSyncTaskCommand, + CancelTagSyncTaskCommandInput, + CancelTagSyncTaskCommandOutput, +} from "./commands/CancelTagSyncTaskCommand"; import { CreateGroupCommand, CreateGroupCommandInput, CreateGroupCommandOutput } from "./commands/CreateGroupCommand"; import { DeleteGroupCommand, DeleteGroupCommandInput, DeleteGroupCommandOutput } from "./commands/DeleteGroupCommand"; import { @@ -21,17 +26,32 @@ import { GetGroupQueryCommandOutput, } from "./commands/GetGroupQueryCommand"; import { GetTagsCommand, GetTagsCommandInput, GetTagsCommandOutput } from "./commands/GetTagsCommand"; +import { + GetTagSyncTaskCommand, + GetTagSyncTaskCommandInput, + GetTagSyncTaskCommandOutput, +} from "./commands/GetTagSyncTaskCommand"; import { GroupResourcesCommand, GroupResourcesCommandInput, GroupResourcesCommandOutput, } from "./commands/GroupResourcesCommand"; +import { + ListGroupingStatusesCommand, + ListGroupingStatusesCommandInput, + ListGroupingStatusesCommandOutput, +} from "./commands/ListGroupingStatusesCommand"; import { ListGroupResourcesCommand, ListGroupResourcesCommandInput, ListGroupResourcesCommandOutput, } from "./commands/ListGroupResourcesCommand"; import { ListGroupsCommand, ListGroupsCommandInput, ListGroupsCommandOutput } from "./commands/ListGroupsCommand"; +import { + ListTagSyncTasksCommand, + ListTagSyncTasksCommandInput, + ListTagSyncTasksCommandOutput, +} from "./commands/ListTagSyncTasksCommand"; import { PutGroupConfigurationCommand, PutGroupConfigurationCommandInput, @@ -42,6 +62,11 @@ import { SearchResourcesCommandInput, SearchResourcesCommandOutput, } from "./commands/SearchResourcesCommand"; +import { + StartTagSyncTaskCommand, + StartTagSyncTaskCommandInput, + StartTagSyncTaskCommandOutput, +} from "./commands/StartTagSyncTaskCommand"; import { TagCommand, TagCommandInput, TagCommandOutput } from "./commands/TagCommand"; import { UngroupResourcesCommand, @@ -63,6 +88,7 @@ import { import { ResourceGroupsClient, ResourceGroupsClientConfig } from "./ResourceGroupsClient"; const commands = { + CancelTagSyncTaskCommand, CreateGroupCommand, DeleteGroupCommand, GetAccountSettingsCommand, @@ -70,11 +96,15 @@ const commands = { GetGroupConfigurationCommand, GetGroupQueryCommand, GetTagsCommand, + GetTagSyncTaskCommand, GroupResourcesCommand, + ListGroupingStatusesCommand, ListGroupResourcesCommand, ListGroupsCommand, + ListTagSyncTasksCommand, PutGroupConfigurationCommand, SearchResourcesCommand, + StartTagSyncTaskCommand, TagCommand, UngroupResourcesCommand, UntagCommand, @@ -84,6 +114,23 @@ const commands = { }; export interface ResourceGroups { + /** + * @see {@link CancelTagSyncTaskCommand} + */ + cancelTagSyncTask( + args: CancelTagSyncTaskCommandInput, + options?: __HttpHandlerOptions + ): Promise; + cancelTagSyncTask( + args: CancelTagSyncTaskCommandInput, + cb: (err: any, data?: CancelTagSyncTaskCommandOutput) => void + ): void; + cancelTagSyncTask( + args: CancelTagSyncTaskCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CancelTagSyncTaskCommandOutput) => void + ): void; + /** * @see {@link CreateGroupCommand} */ @@ -178,6 +225,20 @@ export interface ResourceGroups { cb: (err: any, data?: GetTagsCommandOutput) => void ): void; + /** + * @see {@link GetTagSyncTaskCommand} + */ + getTagSyncTask( + args: GetTagSyncTaskCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getTagSyncTask(args: GetTagSyncTaskCommandInput, cb: (err: any, data?: GetTagSyncTaskCommandOutput) => void): void; + getTagSyncTask( + args: GetTagSyncTaskCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetTagSyncTaskCommandOutput) => void + ): void; + /** * @see {@link GroupResourcesCommand} */ @@ -192,6 +253,23 @@ export interface ResourceGroups { cb: (err: any, data?: GroupResourcesCommandOutput) => void ): void; + /** + * @see {@link ListGroupingStatusesCommand} + */ + listGroupingStatuses( + args: ListGroupingStatusesCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listGroupingStatuses( + args: ListGroupingStatusesCommandInput, + cb: (err: any, data?: ListGroupingStatusesCommandOutput) => void + ): void; + listGroupingStatuses( + args: ListGroupingStatusesCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListGroupingStatusesCommandOutput) => void + ): void; + /** * @see {@link ListGroupResourcesCommand} */ @@ -222,6 +300,24 @@ export interface ResourceGroups { cb: (err: any, data?: ListGroupsCommandOutput) => void ): void; + /** + * @see {@link ListTagSyncTasksCommand} + */ + listTagSyncTasks(): Promise; + listTagSyncTasks( + args: ListTagSyncTasksCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listTagSyncTasks( + args: ListTagSyncTasksCommandInput, + cb: (err: any, data?: ListTagSyncTasksCommandOutput) => void + ): void; + listTagSyncTasks( + args: ListTagSyncTasksCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListTagSyncTasksCommandOutput) => void + ): void; + /** * @see {@link PutGroupConfigurationCommand} */ @@ -254,6 +350,23 @@ export interface ResourceGroups { cb: (err: any, data?: SearchResourcesCommandOutput) => void ): void; + /** + * @see {@link StartTagSyncTaskCommand} + */ + startTagSyncTask( + args: StartTagSyncTaskCommandInput, + options?: __HttpHandlerOptions + ): Promise; + startTagSyncTask( + args: StartTagSyncTaskCommandInput, + cb: (err: any, data?: StartTagSyncTaskCommandOutput) => void + ): void; + startTagSyncTask( + args: StartTagSyncTaskCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: StartTagSyncTaskCommandOutput) => void + ): void; + /** * @see {@link TagCommand} */ @@ -362,7 +475,7 @@ export interface ResourceGroups { *

    Applying, editing, and removing tags from resource groups

    *
  • *
  • - *

    Resolving resource group member ARNs so they can be returned as search + *

    Resolving resource group member Amazon resource names (ARN)s so they can be returned as search * results

    *
  • *
  • diff --git a/clients/client-resource-groups/src/ResourceGroupsClient.ts b/clients/client-resource-groups/src/ResourceGroupsClient.ts index cf88385c48ef..8b585c14b696 100644 --- a/clients/client-resource-groups/src/ResourceGroupsClient.ts +++ b/clients/client-resource-groups/src/ResourceGroupsClient.ts @@ -53,6 +53,7 @@ import { HttpAuthSchemeResolvedConfig, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider"; +import { CancelTagSyncTaskCommandInput, CancelTagSyncTaskCommandOutput } from "./commands/CancelTagSyncTaskCommand"; import { CreateGroupCommandInput, CreateGroupCommandOutput } from "./commands/CreateGroupCommand"; import { DeleteGroupCommandInput, DeleteGroupCommandOutput } from "./commands/DeleteGroupCommand"; import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from "./commands/GetAccountSettingsCommand"; @@ -63,14 +64,21 @@ import { } from "./commands/GetGroupConfigurationCommand"; import { GetGroupQueryCommandInput, GetGroupQueryCommandOutput } from "./commands/GetGroupQueryCommand"; import { GetTagsCommandInput, GetTagsCommandOutput } from "./commands/GetTagsCommand"; +import { GetTagSyncTaskCommandInput, GetTagSyncTaskCommandOutput } from "./commands/GetTagSyncTaskCommand"; import { GroupResourcesCommandInput, GroupResourcesCommandOutput } from "./commands/GroupResourcesCommand"; +import { + ListGroupingStatusesCommandInput, + ListGroupingStatusesCommandOutput, +} from "./commands/ListGroupingStatusesCommand"; import { ListGroupResourcesCommandInput, ListGroupResourcesCommandOutput } from "./commands/ListGroupResourcesCommand"; import { ListGroupsCommandInput, ListGroupsCommandOutput } from "./commands/ListGroupsCommand"; +import { ListTagSyncTasksCommandInput, ListTagSyncTasksCommandOutput } from "./commands/ListTagSyncTasksCommand"; import { PutGroupConfigurationCommandInput, PutGroupConfigurationCommandOutput, } from "./commands/PutGroupConfigurationCommand"; import { SearchResourcesCommandInput, SearchResourcesCommandOutput } from "./commands/SearchResourcesCommand"; +import { StartTagSyncTaskCommandInput, StartTagSyncTaskCommandOutput } from "./commands/StartTagSyncTaskCommand"; import { TagCommandInput, TagCommandOutput } from "./commands/TagCommand"; import { UngroupResourcesCommandInput, UngroupResourcesCommandOutput } from "./commands/UngroupResourcesCommand"; import { UntagCommandInput, UntagCommandOutput } from "./commands/UntagCommand"; @@ -95,18 +103,23 @@ export { __Client }; * @public */ export type ServiceInputTypes = + | CancelTagSyncTaskCommandInput | CreateGroupCommandInput | DeleteGroupCommandInput | GetAccountSettingsCommandInput | GetGroupCommandInput | GetGroupConfigurationCommandInput | GetGroupQueryCommandInput + | GetTagSyncTaskCommandInput | GetTagsCommandInput | GroupResourcesCommandInput | ListGroupResourcesCommandInput + | ListGroupingStatusesCommandInput | ListGroupsCommandInput + | ListTagSyncTasksCommandInput | PutGroupConfigurationCommandInput | SearchResourcesCommandInput + | StartTagSyncTaskCommandInput | TagCommandInput | UngroupResourcesCommandInput | UntagCommandInput @@ -118,18 +131,23 @@ export type ServiceInputTypes = * @public */ export type ServiceOutputTypes = + | CancelTagSyncTaskCommandOutput | CreateGroupCommandOutput | DeleteGroupCommandOutput | GetAccountSettingsCommandOutput | GetGroupCommandOutput | GetGroupConfigurationCommandOutput | GetGroupQueryCommandOutput + | GetTagSyncTaskCommandOutput | GetTagsCommandOutput | GroupResourcesCommandOutput | ListGroupResourcesCommandOutput + | ListGroupingStatusesCommandOutput | ListGroupsCommandOutput + | ListTagSyncTasksCommandOutput | PutGroupConfigurationCommandOutput | SearchResourcesCommandOutput + | StartTagSyncTaskCommandOutput | TagCommandOutput | UngroupResourcesCommandOutput | UntagCommandOutput @@ -333,7 +351,7 @@ export interface ResourceGroupsClientResolvedConfig extends ResourceGroupsClient *

    Applying, editing, and removing tags from resource groups

    *
  • *
  • - *

    Resolving resource group member ARNs so they can be returned as search + *

    Resolving resource group member Amazon resource names (ARN)s so they can be returned as search * results

    *
  • *
  • diff --git a/clients/client-resource-groups/src/commands/CancelTagSyncTaskCommand.ts b/clients/client-resource-groups/src/commands/CancelTagSyncTaskCommand.ts new file mode 100644 index 000000000000..3fb89fbcfa47 --- /dev/null +++ b/clients/client-resource-groups/src/commands/CancelTagSyncTaskCommand.ts @@ -0,0 +1,125 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { CancelTagSyncTaskInput } from "../models/models_0"; +import { de_CancelTagSyncTaskCommand, se_CancelTagSyncTaskCommand } from "../protocols/Aws_restJson1"; +import { ResourceGroupsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ResourceGroupsClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link CancelTagSyncTaskCommand}. + */ +export interface CancelTagSyncTaskCommandInput extends CancelTagSyncTaskInput {} +/** + * @public + * + * The output of {@link CancelTagSyncTaskCommand}. + */ +export interface CancelTagSyncTaskCommandOutput extends __MetadataBearer {} + +/** + *

    Cancels the specified tag-sync task.

    + *

    + * Minimum permissions + *

    + *

    To run this command, you must have the following permissions:

    + * + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ResourceGroupsClient, CancelTagSyncTaskCommand } from "@aws-sdk/client-resource-groups"; // ES Modules import + * // const { ResourceGroupsClient, CancelTagSyncTaskCommand } = require("@aws-sdk/client-resource-groups"); // CommonJS import + * const client = new ResourceGroupsClient(config); + * const input = { // CancelTagSyncTaskInput + * TaskArn: "STRING_VALUE", // required + * }; + * const command = new CancelTagSyncTaskCommand(input); + * const response = await client.send(command); + * // {}; + * + * ``` + * + * @param CancelTagSyncTaskCommandInput - {@link CancelTagSyncTaskCommandInput} + * @returns {@link CancelTagSyncTaskCommandOutput} + * @see {@link CancelTagSyncTaskCommandInput} for command's `input` shape. + * @see {@link CancelTagSyncTaskCommandOutput} for command's `response` shape. + * @see {@link ResourceGroupsClientResolvedConfig | config} for ResourceGroupsClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

    The request includes one or more parameters that violate validation rules.

    + * + * @throws {@link ForbiddenException} (client fault) + *

    The caller isn't authorized to make the request. Check permissions.

    + * + * @throws {@link InternalServerErrorException} (server fault) + *

    An internal error occurred while processing the request. Try again later.

    + * + * @throws {@link MethodNotAllowedException} (client fault) + *

    The request uses an HTTP method that isn't allowed for the specified resource.

    + * + * @throws {@link TooManyRequestsException} (client fault) + *

    You've exceeded throttling limits by making too many requests in a period of + * time.

    + * + * @throws {@link UnauthorizedException} (client fault) + *

    The request was rejected because it doesn't have valid credentials for the target + * resource.

    + * + * @throws {@link ResourceGroupsServiceException} + *

    Base exception class for all service exceptions from ResourceGroups service.

    + * + * @public + */ +export class CancelTagSyncTaskCommand extends $Command + .classBuilder< + CancelTagSyncTaskCommandInput, + CancelTagSyncTaskCommandOutput, + ResourceGroupsClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: ResourceGroupsClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("Ardi", "CancelTagSyncTask", {}) + .n("ResourceGroupsClient", "CancelTagSyncTaskCommand") + .f(void 0, void 0) + .ser(se_CancelTagSyncTaskCommand) + .de(de_CancelTagSyncTaskCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: CancelTagSyncTaskInput; + output: {}; + }; + sdk: { + input: CancelTagSyncTaskCommandInput; + output: CancelTagSyncTaskCommandOutput; + }; + }; +} diff --git a/clients/client-resource-groups/src/commands/CreateGroupCommand.ts b/clients/client-resource-groups/src/commands/CreateGroupCommand.ts index feabbe1ee21a..75600b339641 100644 --- a/clients/client-resource-groups/src/commands/CreateGroupCommand.ts +++ b/clients/client-resource-groups/src/commands/CreateGroupCommand.ts @@ -73,6 +73,9 @@ export interface CreateGroupCommandOutput extends CreateGroupOutput, __MetadataB * ], * }, * ], + * Criticality: Number("int"), + * Owner: "STRING_VALUE", + * DisplayName: "STRING_VALUE", * }; * const command = new CreateGroupCommand(input); * const response = await client.send(command); @@ -81,6 +84,12 @@ export interface CreateGroupCommandOutput extends CreateGroupOutput, __MetadataB * // GroupArn: "STRING_VALUE", // required * // Name: "STRING_VALUE", // required * // Description: "STRING_VALUE", + * // Criticality: Number("int"), + * // Owner: "STRING_VALUE", + * // DisplayName: "STRING_VALUE", + * // ApplicationTag: { // ApplicationTag + * // "": "STRING_VALUE", + * // }, * // }, * // ResourceQuery: { // ResourceQuery * // Type: "TAG_FILTERS_1_0" || "CLOUDFORMATION_STACK_1_0", // required diff --git a/clients/client-resource-groups/src/commands/DeleteGroupCommand.ts b/clients/client-resource-groups/src/commands/DeleteGroupCommand.ts index 2cd229d4f79a..5655c68fe582 100644 --- a/clients/client-resource-groups/src/commands/DeleteGroupCommand.ts +++ b/clients/client-resource-groups/src/commands/DeleteGroupCommand.ts @@ -58,6 +58,12 @@ export interface DeleteGroupCommandOutput extends DeleteGroupOutput, __MetadataB * // GroupArn: "STRING_VALUE", // required * // Name: "STRING_VALUE", // required * // Description: "STRING_VALUE", + * // Criticality: Number("int"), + * // Owner: "STRING_VALUE", + * // DisplayName: "STRING_VALUE", + * // ApplicationTag: { // ApplicationTag + * // "": "STRING_VALUE", + * // }, * // }, * // }; * diff --git a/clients/client-resource-groups/src/commands/GetGroupCommand.ts b/clients/client-resource-groups/src/commands/GetGroupCommand.ts index a8feafac1696..bdba40f187db 100644 --- a/clients/client-resource-groups/src/commands/GetGroupCommand.ts +++ b/clients/client-resource-groups/src/commands/GetGroupCommand.ts @@ -57,6 +57,12 @@ export interface GetGroupCommandOutput extends GetGroupOutput, __MetadataBearer * // GroupArn: "STRING_VALUE", // required * // Name: "STRING_VALUE", // required * // Description: "STRING_VALUE", + * // Criticality: Number("int"), + * // Owner: "STRING_VALUE", + * // DisplayName: "STRING_VALUE", + * // ApplicationTag: { // ApplicationTag + * // "": "STRING_VALUE", + * // }, * // }, * // }; * diff --git a/clients/client-resource-groups/src/commands/GetTagSyncTaskCommand.ts b/clients/client-resource-groups/src/commands/GetTagSyncTaskCommand.ts new file mode 100644 index 000000000000..cad244eab870 --- /dev/null +++ b/clients/client-resource-groups/src/commands/GetTagSyncTaskCommand.ts @@ -0,0 +1,133 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { GetTagSyncTaskInput, GetTagSyncTaskOutput } from "../models/models_0"; +import { de_GetTagSyncTaskCommand, se_GetTagSyncTaskCommand } from "../protocols/Aws_restJson1"; +import { ResourceGroupsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ResourceGroupsClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link GetTagSyncTaskCommand}. + */ +export interface GetTagSyncTaskCommandInput extends GetTagSyncTaskInput {} +/** + * @public + * + * The output of {@link GetTagSyncTaskCommand}. + */ +export interface GetTagSyncTaskCommandOutput extends GetTagSyncTaskOutput, __MetadataBearer {} + +/** + *

    Returns information about a specified tag-sync task.

    + *

    + * Minimum permissions + *

    + *

    To run this command, you must have the following permissions:

    + *
      + *
    • + *

      + * resource-groups:GetTagSyncTask on the application group

      + *
    • + *
    + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ResourceGroupsClient, GetTagSyncTaskCommand } from "@aws-sdk/client-resource-groups"; // ES Modules import + * // const { ResourceGroupsClient, GetTagSyncTaskCommand } = require("@aws-sdk/client-resource-groups"); // CommonJS import + * const client = new ResourceGroupsClient(config); + * const input = { // GetTagSyncTaskInput + * TaskArn: "STRING_VALUE", // required + * }; + * const command = new GetTagSyncTaskCommand(input); + * const response = await client.send(command); + * // { // GetTagSyncTaskOutput + * // GroupArn: "STRING_VALUE", + * // GroupName: "STRING_VALUE", + * // TaskArn: "STRING_VALUE", + * // TagKey: "STRING_VALUE", + * // TagValue: "STRING_VALUE", + * // RoleArn: "STRING_VALUE", + * // Status: "ACTIVE" || "ERROR", + * // ErrorMessage: "STRING_VALUE", + * // CreatedAt: new Date("TIMESTAMP"), + * // }; + * + * ``` + * + * @param GetTagSyncTaskCommandInput - {@link GetTagSyncTaskCommandInput} + * @returns {@link GetTagSyncTaskCommandOutput} + * @see {@link GetTagSyncTaskCommandInput} for command's `input` shape. + * @see {@link GetTagSyncTaskCommandOutput} for command's `response` shape. + * @see {@link ResourceGroupsClientResolvedConfig | config} for ResourceGroupsClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

    The request includes one or more parameters that violate validation rules.

    + * + * @throws {@link ForbiddenException} (client fault) + *

    The caller isn't authorized to make the request. Check permissions.

    + * + * @throws {@link InternalServerErrorException} (server fault) + *

    An internal error occurred while processing the request. Try again later.

    + * + * @throws {@link MethodNotAllowedException} (client fault) + *

    The request uses an HTTP method that isn't allowed for the specified resource.

    + * + * @throws {@link NotFoundException} (client fault) + *

    One or more of the specified resources don't exist.

    + * + * @throws {@link TooManyRequestsException} (client fault) + *

    You've exceeded throttling limits by making too many requests in a period of + * time.

    + * + * @throws {@link UnauthorizedException} (client fault) + *

    The request was rejected because it doesn't have valid credentials for the target + * resource.

    + * + * @throws {@link ResourceGroupsServiceException} + *

    Base exception class for all service exceptions from ResourceGroups service.

    + * + * @public + */ +export class GetTagSyncTaskCommand extends $Command + .classBuilder< + GetTagSyncTaskCommandInput, + GetTagSyncTaskCommandOutput, + ResourceGroupsClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: ResourceGroupsClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("Ardi", "GetTagSyncTask", {}) + .n("ResourceGroupsClient", "GetTagSyncTaskCommand") + .f(void 0, void 0) + .ser(se_GetTagSyncTaskCommand) + .de(de_GetTagSyncTaskCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: GetTagSyncTaskInput; + output: GetTagSyncTaskOutput; + }; + sdk: { + input: GetTagSyncTaskCommandInput; + output: GetTagSyncTaskCommandOutput; + }; + }; +} diff --git a/clients/client-resource-groups/src/commands/GetTagsCommand.ts b/clients/client-resource-groups/src/commands/GetTagsCommand.ts index 9ff0a386b38d..dec4066cb32b 100644 --- a/clients/client-resource-groups/src/commands/GetTagsCommand.ts +++ b/clients/client-resource-groups/src/commands/GetTagsCommand.ts @@ -29,7 +29,7 @@ export interface GetTagsCommandOutput extends GetTagsOutput, __MetadataBearer {} /** *

    Returns a list of tags that are associated with a resource group, specified by an - * ARN.

    + * Amazon resource name (ARN).

    *

    * Minimum permissions *

    diff --git a/clients/client-resource-groups/src/commands/GroupResourcesCommand.ts b/clients/client-resource-groups/src/commands/GroupResourcesCommand.ts index f0859a62e6da..9af739de0a67 100644 --- a/clients/client-resource-groups/src/commands/GroupResourcesCommand.ts +++ b/clients/client-resource-groups/src/commands/GroupResourcesCommand.ts @@ -30,8 +30,7 @@ export interface GroupResourcesCommandOutput extends GroupResourcesOutput, __Met /** *

    Adds the specified resources to the specified group.

    * - *

    You can use this operation with only resource groups that are configured with the - * following types:

    + *

    You can only use this operation with the following groups:

    *
      *
    • *

      @@ -43,8 +42,13 @@ export interface GroupResourcesCommandOutput extends GroupResourcesOutput, __Met * AWS::EC2::CapacityReservationPool *

      *
    • + *
    • + *

      + * AWS::ResourceGroups::ApplicationGroup + *

      + *
    • *
    - *

    Other resource group type and resource types aren't currently supported by this + *

    Other resource group types and resource types are not currently supported by this * operation.

    *
    *

    diff --git a/clients/client-resource-groups/src/commands/ListGroupResourcesCommand.ts b/clients/client-resource-groups/src/commands/ListGroupResourcesCommand.ts index e814e0faa8f1..f1b6f162c97b 100644 --- a/clients/client-resource-groups/src/commands/ListGroupResourcesCommand.ts +++ b/clients/client-resource-groups/src/commands/ListGroupResourcesCommand.ts @@ -28,7 +28,7 @@ export interface ListGroupResourcesCommandInput extends ListGroupResourcesInput export interface ListGroupResourcesCommandOutput extends ListGroupResourcesOutput, __MetadataBearer {} /** - *

    Returns a list of ARNs of the resources that are members of a specified resource + *

    Returns a list of Amazon resource names (ARNs) of the resources that are members of a specified resource * group.

    *

    * Minimum permissions diff --git a/clients/client-resource-groups/src/commands/ListGroupingStatusesCommand.ts b/clients/client-resource-groups/src/commands/ListGroupingStatusesCommand.ts new file mode 100644 index 000000000000..4d01a8a979b1 --- /dev/null +++ b/clients/client-resource-groups/src/commands/ListGroupingStatusesCommand.ts @@ -0,0 +1,130 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { ListGroupingStatusesInput, ListGroupingStatusesOutput } from "../models/models_0"; +import { de_ListGroupingStatusesCommand, se_ListGroupingStatusesCommand } from "../protocols/Aws_restJson1"; +import { ResourceGroupsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ResourceGroupsClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link ListGroupingStatusesCommand}. + */ +export interface ListGroupingStatusesCommandInput extends ListGroupingStatusesInput {} +/** + * @public + * + * The output of {@link ListGroupingStatusesCommand}. + */ +export interface ListGroupingStatusesCommandOutput extends ListGroupingStatusesOutput, __MetadataBearer {} + +/** + *

    Returns the status of the last grouping or ungrouping action for + * each resource in the specified application group.

    + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ResourceGroupsClient, ListGroupingStatusesCommand } from "@aws-sdk/client-resource-groups"; // ES Modules import + * // const { ResourceGroupsClient, ListGroupingStatusesCommand } = require("@aws-sdk/client-resource-groups"); // CommonJS import + * const client = new ResourceGroupsClient(config); + * const input = { // ListGroupingStatusesInput + * Group: "STRING_VALUE", // required + * MaxResults: Number("int"), + * Filters: [ // ListGroupingStatusesFilterList + * { // ListGroupingStatusesFilter + * Name: "status" || "resource-arn", // required + * Values: [ // ListGroupingStatusesFilterValues // required + * "STRING_VALUE", + * ], + * }, + * ], + * NextToken: "STRING_VALUE", + * }; + * const command = new ListGroupingStatusesCommand(input); + * const response = await client.send(command); + * // { // ListGroupingStatusesOutput + * // Group: "STRING_VALUE", + * // GroupingStatuses: [ // GroupingStatusesList + * // { // GroupingStatusesItem + * // ResourceArn: "STRING_VALUE", + * // Action: "GROUP" || "UNGROUP", + * // Status: "SUCCESS" || "FAILED" || "IN_PROGRESS" || "SKIPPED", + * // ErrorMessage: "STRING_VALUE", + * // ErrorCode: "STRING_VALUE", + * // UpdatedAt: new Date("TIMESTAMP"), + * // }, + * // ], + * // NextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListGroupingStatusesCommandInput - {@link ListGroupingStatusesCommandInput} + * @returns {@link ListGroupingStatusesCommandOutput} + * @see {@link ListGroupingStatusesCommandInput} for command's `input` shape. + * @see {@link ListGroupingStatusesCommandOutput} for command's `response` shape. + * @see {@link ResourceGroupsClientResolvedConfig | config} for ResourceGroupsClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

    The request includes one or more parameters that violate validation rules.

    + * + * @throws {@link ForbiddenException} (client fault) + *

    The caller isn't authorized to make the request. Check permissions.

    + * + * @throws {@link InternalServerErrorException} (server fault) + *

    An internal error occurred while processing the request. Try again later.

    + * + * @throws {@link MethodNotAllowedException} (client fault) + *

    The request uses an HTTP method that isn't allowed for the specified resource.

    + * + * @throws {@link TooManyRequestsException} (client fault) + *

    You've exceeded throttling limits by making too many requests in a period of + * time.

    + * + * @throws {@link ResourceGroupsServiceException} + *

    Base exception class for all service exceptions from ResourceGroups service.

    + * + * @public + */ +export class ListGroupingStatusesCommand extends $Command + .classBuilder< + ListGroupingStatusesCommandInput, + ListGroupingStatusesCommandOutput, + ResourceGroupsClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: ResourceGroupsClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("Ardi", "ListGroupingStatuses", {}) + .n("ResourceGroupsClient", "ListGroupingStatusesCommand") + .f(void 0, void 0) + .ser(se_ListGroupingStatusesCommand) + .de(de_ListGroupingStatusesCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: ListGroupingStatusesInput; + output: ListGroupingStatusesOutput; + }; + sdk: { + input: ListGroupingStatusesCommandInput; + output: ListGroupingStatusesCommandOutput; + }; + }; +} diff --git a/clients/client-resource-groups/src/commands/ListGroupsCommand.ts b/clients/client-resource-groups/src/commands/ListGroupsCommand.ts index 47b92f4535d1..40fcdb299d85 100644 --- a/clients/client-resource-groups/src/commands/ListGroupsCommand.ts +++ b/clients/client-resource-groups/src/commands/ListGroupsCommand.ts @@ -49,7 +49,7 @@ export interface ListGroupsCommandOutput extends ListGroupsOutput, __MetadataBea * const input = { // ListGroupsInput * Filters: [ // GroupFilterList * { // GroupFilter - * Name: "resource-type" || "configuration-type", // required + * Name: "resource-type" || "configuration-type" || "owner" || "display-name" || "criticality", // required * Values: [ // GroupFilterValues // required * "STRING_VALUE", * ], @@ -65,6 +65,10 @@ export interface ListGroupsCommandOutput extends ListGroupsOutput, __MetadataBea * // { // GroupIdentifier * // GroupName: "STRING_VALUE", * // GroupArn: "STRING_VALUE", + * // Description: "STRING_VALUE", + * // Criticality: Number("int"), + * // Owner: "STRING_VALUE", + * // DisplayName: "STRING_VALUE", * // }, * // ], * // Groups: [ // GroupList @@ -72,6 +76,12 @@ export interface ListGroupsCommandOutput extends ListGroupsOutput, __MetadataBea * // GroupArn: "STRING_VALUE", // required * // Name: "STRING_VALUE", // required * // Description: "STRING_VALUE", + * // Criticality: Number("int"), + * // Owner: "STRING_VALUE", + * // DisplayName: "STRING_VALUE", + * // ApplicationTag: { // ApplicationTag + * // "": "STRING_VALUE", + * // }, * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-resource-groups/src/commands/ListTagSyncTasksCommand.ts b/clients/client-resource-groups/src/commands/ListTagSyncTasksCommand.ts new file mode 100644 index 000000000000..b15f8e381ba8 --- /dev/null +++ b/clients/client-resource-groups/src/commands/ListTagSyncTasksCommand.ts @@ -0,0 +1,143 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { ListTagSyncTasksInput, ListTagSyncTasksOutput } from "../models/models_0"; +import { de_ListTagSyncTasksCommand, se_ListTagSyncTasksCommand } from "../protocols/Aws_restJson1"; +import { ResourceGroupsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ResourceGroupsClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link ListTagSyncTasksCommand}. + */ +export interface ListTagSyncTasksCommandInput extends ListTagSyncTasksInput {} +/** + * @public + * + * The output of {@link ListTagSyncTasksCommand}. + */ +export interface ListTagSyncTasksCommandOutput extends ListTagSyncTasksOutput, __MetadataBearer {} + +/** + *

    Returns a list of tag-sync tasks.

    + *

    + * Minimum permissions + *

    + *

    To run this command, you must have the following permissions:

    + *
      + *
    • + *

      + * resource-groups:ListTagSyncTasks with the group passed in the filters as the resource + * or * if using no filters

      + *
    • + *
    + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ResourceGroupsClient, ListTagSyncTasksCommand } from "@aws-sdk/client-resource-groups"; // ES Modules import + * // const { ResourceGroupsClient, ListTagSyncTasksCommand } = require("@aws-sdk/client-resource-groups"); // CommonJS import + * const client = new ResourceGroupsClient(config); + * const input = { // ListTagSyncTasksInput + * Filters: [ // ListTagSyncTasksFilterList + * { // ListTagSyncTasksFilter + * GroupArn: "STRING_VALUE", + * GroupName: "STRING_VALUE", + * }, + * ], + * MaxResults: Number("int"), + * NextToken: "STRING_VALUE", + * }; + * const command = new ListTagSyncTasksCommand(input); + * const response = await client.send(command); + * // { // ListTagSyncTasksOutput + * // TagSyncTasks: [ // TagSyncTaskList + * // { // TagSyncTaskItem + * // GroupArn: "STRING_VALUE", + * // GroupName: "STRING_VALUE", + * // TaskArn: "STRING_VALUE", + * // TagKey: "STRING_VALUE", + * // TagValue: "STRING_VALUE", + * // RoleArn: "STRING_VALUE", + * // Status: "ACTIVE" || "ERROR", + * // ErrorMessage: "STRING_VALUE", + * // CreatedAt: new Date("TIMESTAMP"), + * // }, + * // ], + * // NextToken: "STRING_VALUE", + * // }; + * + * ``` + * + * @param ListTagSyncTasksCommandInput - {@link ListTagSyncTasksCommandInput} + * @returns {@link ListTagSyncTasksCommandOutput} + * @see {@link ListTagSyncTasksCommandInput} for command's `input` shape. + * @see {@link ListTagSyncTasksCommandOutput} for command's `response` shape. + * @see {@link ResourceGroupsClientResolvedConfig | config} for ResourceGroupsClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

    The request includes one or more parameters that violate validation rules.

    + * + * @throws {@link ForbiddenException} (client fault) + *

    The caller isn't authorized to make the request. Check permissions.

    + * + * @throws {@link InternalServerErrorException} (server fault) + *

    An internal error occurred while processing the request. Try again later.

    + * + * @throws {@link MethodNotAllowedException} (client fault) + *

    The request uses an HTTP method that isn't allowed for the specified resource.

    + * + * @throws {@link TooManyRequestsException} (client fault) + *

    You've exceeded throttling limits by making too many requests in a period of + * time.

    + * + * @throws {@link UnauthorizedException} (client fault) + *

    The request was rejected because it doesn't have valid credentials for the target + * resource.

    + * + * @throws {@link ResourceGroupsServiceException} + *

    Base exception class for all service exceptions from ResourceGroups service.

    + * + * @public + */ +export class ListTagSyncTasksCommand extends $Command + .classBuilder< + ListTagSyncTasksCommandInput, + ListTagSyncTasksCommandOutput, + ResourceGroupsClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: ResourceGroupsClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("Ardi", "ListTagSyncTasks", {}) + .n("ResourceGroupsClient", "ListTagSyncTasksCommand") + .f(void 0, void 0) + .ser(se_ListTagSyncTasksCommand) + .de(de_ListTagSyncTasksCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: ListTagSyncTasksInput; + output: ListTagSyncTasksOutput; + }; + sdk: { + input: ListTagSyncTasksCommandInput; + output: ListTagSyncTasksCommandOutput; + }; + }; +} diff --git a/clients/client-resource-groups/src/commands/StartTagSyncTaskCommand.ts b/clients/client-resource-groups/src/commands/StartTagSyncTaskCommand.ts new file mode 100644 index 000000000000..96be541b36f6 --- /dev/null +++ b/clients/client-resource-groups/src/commands/StartTagSyncTaskCommand.ts @@ -0,0 +1,143 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { StartTagSyncTaskInput, StartTagSyncTaskOutput } from "../models/models_0"; +import { de_StartTagSyncTaskCommand, se_StartTagSyncTaskCommand } from "../protocols/Aws_restJson1"; +import { ResourceGroupsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ResourceGroupsClient"; + +/** + * @public + */ +export type { __MetadataBearer }; +export { $Command }; +/** + * @public + * + * The input for {@link StartTagSyncTaskCommand}. + */ +export interface StartTagSyncTaskCommandInput extends StartTagSyncTaskInput {} +/** + * @public + * + * The output of {@link StartTagSyncTaskCommand}. + */ +export interface StartTagSyncTaskCommandOutput extends StartTagSyncTaskOutput, __MetadataBearer {} + +/** + *

    Creates a new tag-sync task to onboard and sync resources tagged with a specific tag key-value pair to an + * application.

    + *

    + * Minimum permissions + *

    + *

    To run this command, you must have the following permissions:

    + *
      + *
    • + *

      + * resource-groups:StartTagSyncTask on the application group

      + *
    • + *
    • + *

      + * resource-groups:CreateGroup + *

      + *
    • + *
    • + *

      + * iam:PassRole on the role provided in the request

      + *
    • + *
    + * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { ResourceGroupsClient, StartTagSyncTaskCommand } from "@aws-sdk/client-resource-groups"; // ES Modules import + * // const { ResourceGroupsClient, StartTagSyncTaskCommand } = require("@aws-sdk/client-resource-groups"); // CommonJS import + * const client = new ResourceGroupsClient(config); + * const input = { // StartTagSyncTaskInput + * Group: "STRING_VALUE", // required + * TagKey: "STRING_VALUE", // required + * TagValue: "STRING_VALUE", // required + * RoleArn: "STRING_VALUE", // required + * }; + * const command = new StartTagSyncTaskCommand(input); + * const response = await client.send(command); + * // { // StartTagSyncTaskOutput + * // GroupArn: "STRING_VALUE", + * // GroupName: "STRING_VALUE", + * // TaskArn: "STRING_VALUE", + * // TagKey: "STRING_VALUE", + * // TagValue: "STRING_VALUE", + * // RoleArn: "STRING_VALUE", + * // }; + * + * ``` + * + * @param StartTagSyncTaskCommandInput - {@link StartTagSyncTaskCommandInput} + * @returns {@link StartTagSyncTaskCommandOutput} + * @see {@link StartTagSyncTaskCommandInput} for command's `input` shape. + * @see {@link StartTagSyncTaskCommandOutput} for command's `response` shape. + * @see {@link ResourceGroupsClientResolvedConfig | config} for ResourceGroupsClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

    The request includes one or more parameters that violate validation rules.

    + * + * @throws {@link ForbiddenException} (client fault) + *

    The caller isn't authorized to make the request. Check permissions.

    + * + * @throws {@link InternalServerErrorException} (server fault) + *

    An internal error occurred while processing the request. Try again later.

    + * + * @throws {@link MethodNotAllowedException} (client fault) + *

    The request uses an HTTP method that isn't allowed for the specified resource.

    + * + * @throws {@link NotFoundException} (client fault) + *

    One or more of the specified resources don't exist.

    + * + * @throws {@link TooManyRequestsException} (client fault) + *

    You've exceeded throttling limits by making too many requests in a period of + * time.

    + * + * @throws {@link UnauthorizedException} (client fault) + *

    The request was rejected because it doesn't have valid credentials for the target + * resource.

    + * + * @throws {@link ResourceGroupsServiceException} + *

    Base exception class for all service exceptions from ResourceGroups service.

    + * + * @public + */ +export class StartTagSyncTaskCommand extends $Command + .classBuilder< + StartTagSyncTaskCommandInput, + StartTagSyncTaskCommandOutput, + ResourceGroupsClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep(commonParams) + .m(function (this: any, Command: any, cs: any, config: ResourceGroupsClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("Ardi", "StartTagSyncTask", {}) + .n("ResourceGroupsClient", "StartTagSyncTaskCommand") + .f(void 0, void 0) + .ser(se_StartTagSyncTaskCommand) + .de(de_StartTagSyncTaskCommand) + .build() { + /** @internal type navigation helper, not in runtime. */ + protected declare static __types: { + api: { + input: StartTagSyncTaskInput; + output: StartTagSyncTaskOutput; + }; + sdk: { + input: StartTagSyncTaskCommandInput; + output: StartTagSyncTaskCommandOutput; + }; + }; +} diff --git a/clients/client-resource-groups/src/commands/TagCommand.ts b/clients/client-resource-groups/src/commands/TagCommand.ts index d915c5918939..8f3a83ba05f3 100644 --- a/clients/client-resource-groups/src/commands/TagCommand.ts +++ b/clients/client-resource-groups/src/commands/TagCommand.ts @@ -28,7 +28,7 @@ export interface TagCommandInput extends TagInput {} export interface TagCommandOutput extends TagOutput, __MetadataBearer {} /** - *

    Adds tags to a resource group with the specified ARN. Existing tags on a resource + *

    Adds tags to a resource group with the specified Amazon resource name (ARN). Existing tags on a resource * group are not changed if they are not specified in the request parameters.

    * *

    Do not store personally identifiable information (PII) or other confidential or diff --git a/clients/client-resource-groups/src/commands/UpdateGroupCommand.ts b/clients/client-resource-groups/src/commands/UpdateGroupCommand.ts index 5791e72ae342..cb020b24b09f 100644 --- a/clients/client-resource-groups/src/commands/UpdateGroupCommand.ts +++ b/clients/client-resource-groups/src/commands/UpdateGroupCommand.ts @@ -51,6 +51,9 @@ export interface UpdateGroupCommandOutput extends UpdateGroupOutput, __MetadataB * GroupName: "STRING_VALUE", * Group: "STRING_VALUE", * Description: "STRING_VALUE", + * Criticality: Number("int"), + * Owner: "STRING_VALUE", + * DisplayName: "STRING_VALUE", * }; * const command = new UpdateGroupCommand(input); * const response = await client.send(command); @@ -59,6 +62,12 @@ export interface UpdateGroupCommandOutput extends UpdateGroupOutput, __MetadataB * // GroupArn: "STRING_VALUE", // required * // Name: "STRING_VALUE", // required * // Description: "STRING_VALUE", + * // Criticality: Number("int"), + * // Owner: "STRING_VALUE", + * // DisplayName: "STRING_VALUE", + * // ApplicationTag: { // ApplicationTag + * // "": "STRING_VALUE", + * // }, * // }, * // }; * diff --git a/clients/client-resource-groups/src/commands/index.ts b/clients/client-resource-groups/src/commands/index.ts index db0fc62a3f87..84b824744d26 100644 --- a/clients/client-resource-groups/src/commands/index.ts +++ b/clients/client-resource-groups/src/commands/index.ts @@ -1,16 +1,21 @@ // smithy-typescript generated code +export * from "./CancelTagSyncTaskCommand"; export * from "./CreateGroupCommand"; export * from "./DeleteGroupCommand"; export * from "./GetAccountSettingsCommand"; export * from "./GetGroupCommand"; export * from "./GetGroupConfigurationCommand"; export * from "./GetGroupQueryCommand"; +export * from "./GetTagSyncTaskCommand"; export * from "./GetTagsCommand"; export * from "./GroupResourcesCommand"; export * from "./ListGroupResourcesCommand"; +export * from "./ListGroupingStatusesCommand"; export * from "./ListGroupsCommand"; +export * from "./ListTagSyncTasksCommand"; export * from "./PutGroupConfigurationCommand"; export * from "./SearchResourcesCommand"; +export * from "./StartTagSyncTaskCommand"; export * from "./TagCommand"; export * from "./UngroupResourcesCommand"; export * from "./UntagCommand"; diff --git a/clients/client-resource-groups/src/index.ts b/clients/client-resource-groups/src/index.ts index 9b0ae67f0d3a..96a0c545569e 100644 --- a/clients/client-resource-groups/src/index.ts +++ b/clients/client-resource-groups/src/index.ts @@ -25,7 +25,7 @@ *

    Applying, editing, and removing tags from resource groups

    *
  • *
  • - *

    Resolving resource group member ARNs so they can be returned as search + *

    Resolving resource group member Amazon resource names (ARN)s so they can be returned as search * results

    *
  • *
  • diff --git a/clients/client-resource-groups/src/models/models_0.ts b/clients/client-resource-groups/src/models/models_0.ts index 6c0e1530abbd..27bde4415ef2 100644 --- a/clients/client-resource-groups/src/models/models_0.ts +++ b/clients/client-resource-groups/src/models/models_0.ts @@ -80,6 +80,129 @@ export class BadRequestException extends __BaseException { } } +/** + * @public + */ +export interface CancelTagSyncTaskInput { + /** + *

    The Amazon resource name (ARN) of the tag-sync task.

    + * @public + */ + TaskArn: string | undefined; +} + +/** + *

    The caller isn't authorized to make the request. Check permissions.

    + * @public + */ +export class ForbiddenException extends __BaseException { + readonly name: "ForbiddenException" = "ForbiddenException"; + readonly $fault: "client" = "client"; + Message?: string; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ForbiddenException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ForbiddenException.prototype); + this.Message = opts.Message; + } +} + +/** + *

    An internal error occurred while processing the request. Try again later.

    + * @public + */ +export class InternalServerErrorException extends __BaseException { + readonly name: "InternalServerErrorException" = "InternalServerErrorException"; + readonly $fault: "server" = "server"; + Message?: string; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "InternalServerErrorException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, InternalServerErrorException.prototype); + this.Message = opts.Message; + } +} + +/** + *

    The request uses an HTTP method that isn't allowed for the specified resource.

    + * @public + */ +export class MethodNotAllowedException extends __BaseException { + readonly name: "MethodNotAllowedException" = "MethodNotAllowedException"; + readonly $fault: "client" = "client"; + Message?: string; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "MethodNotAllowedException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, MethodNotAllowedException.prototype); + this.Message = opts.Message; + } +} + +/** + *

    You've exceeded throttling limits by making too many requests in a period of + * time.

    + * @public + */ +export class TooManyRequestsException extends __BaseException { + readonly name: "TooManyRequestsException" = "TooManyRequestsException"; + readonly $fault: "client" = "client"; + Message?: string; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "TooManyRequestsException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, TooManyRequestsException.prototype); + this.Message = opts.Message; + } +} + +/** + *

    The request was rejected because it doesn't have valid credentials for the target + * resource.

    + * @public + */ +export class UnauthorizedException extends __BaseException { + readonly name: "UnauthorizedException" = "UnauthorizedException"; + readonly $fault: "client" = "client"; + Message?: string; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "UnauthorizedException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, UnauthorizedException.prototype); + this.Message = opts.Message; + } +} + /** *

    A parameter for a group configuration item. For details about group service * configuration syntax, see Service configurations for resource @@ -183,7 +306,7 @@ export interface ResourceQuery { * CLOUDFORMATION_STACK_1_0: * Specifies that you * want the group to contain the members of an CloudFormation stack. The Query - * contains a StackIdentifier element with an ARN for a CloudFormation + * contains a StackIdentifier element with an Amazon resource name (ARN) for a CloudFormation * stack.

    *
  • *
  • @@ -351,6 +474,26 @@ export interface CreateGroupInput { * @public */ Configuration?: GroupConfigurationItem[]; + + /** + *

    The critical rank of the application group on a scale of 1 to 10, with a + * rank of 1 being the most critical, and a rank of 10 being least critical.

    + * @public + */ + Criticality?: number; + + /** + *

    A name, email address or other identifier for the person or group + * who is considered as the owner of this application group within your organization.

    + * @public + */ + Owner?: string; + + /** + *

    The name of the application group, which you can change at any time.

    + * @public + */ + DisplayName?: string; } /** @@ -375,7 +518,7 @@ export interface CreateGroupInput { */ export interface Group { /** - *

    The ARN of the resource group.

    + *

    The Amazon resource name (ARN) of the resource group.

    * @public */ GroupArn: string | undefined; @@ -391,6 +534,33 @@ export interface Group { * @public */ Description?: string; + + /** + *

    The critical rank of the application group on a scale of 1 to 10, with a + * rank of 1 being the most critical, and a rank of 10 being least critical.

    + * @public + */ + Criticality?: number; + + /** + *

    A name, email address or other identifier for the person or group + * who is considered as the owner of this application group within your organization.

    + * @public + */ + Owner?: string; + + /** + *

    The name of the application group, which you can change at any time.

    + * @public + */ + DisplayName?: string; + + /** + *

    A tag that defines the application group membership. This tag is only supported + * for application groups.

    + * @public + */ + ApplicationTag?: Record; } /** @@ -476,95 +646,6 @@ export interface CreateGroupOutput { GroupConfiguration?: GroupConfiguration; } -/** - *

    The caller isn't authorized to make the request. Check permissions.

    - * @public - */ -export class ForbiddenException extends __BaseException { - readonly name: "ForbiddenException" = "ForbiddenException"; - readonly $fault: "client" = "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "ForbiddenException", - $fault: "client", - ...opts, - }); - Object.setPrototypeOf(this, ForbiddenException.prototype); - this.Message = opts.Message; - } -} - -/** - *

    An internal error occurred while processing the request. Try again later.

    - * @public - */ -export class InternalServerErrorException extends __BaseException { - readonly name: "InternalServerErrorException" = "InternalServerErrorException"; - readonly $fault: "server" = "server"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "InternalServerErrorException", - $fault: "server", - ...opts, - }); - Object.setPrototypeOf(this, InternalServerErrorException.prototype); - this.Message = opts.Message; - } -} - -/** - *

    The request uses an HTTP method that isn't allowed for the specified resource.

    - * @public - */ -export class MethodNotAllowedException extends __BaseException { - readonly name: "MethodNotAllowedException" = "MethodNotAllowedException"; - readonly $fault: "client" = "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "MethodNotAllowedException", - $fault: "client", - ...opts, - }); - Object.setPrototypeOf(this, MethodNotAllowedException.prototype); - this.Message = opts.Message; - } -} - -/** - *

    You've exceeded throttling limits by making too many requests in a period of - * time.

    - * @public - */ -export class TooManyRequestsException extends __BaseException { - readonly name: "TooManyRequestsException" = "TooManyRequestsException"; - readonly $fault: "client" = "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "TooManyRequestsException", - $fault: "client", - ...opts, - }); - Object.setPrototypeOf(this, TooManyRequestsException.prototype); - this.Message = opts.Message; - } -} - /** * @public */ @@ -578,7 +659,7 @@ export interface DeleteGroupInput { GroupName?: string; /** - *

    The name or the ARN of the resource group to delete.

    + *

    The name or the Amazon resource name (ARN) of the resource group to delete.

    * @public */ Group?: string; @@ -641,7 +722,7 @@ export interface GetGroupInput { GroupName?: string; /** - *

    The name or the ARN of the resource group to retrieve.

    + *

    The name or the Amazon resource name (ARN) of the resource group to retrieve.

    * @public */ Group?: string; @@ -665,7 +746,7 @@ export interface GetGroupOutput { */ export interface GetGroupConfigurationInput { /** - *

    The name or the ARN of the resource group for which you want to retrive the service + *

    The name or the Amazon resource name (ARN) of the resource group for which you want to retrive the service * configuration.

    * @public */ @@ -698,7 +779,7 @@ export interface GetGroupQueryInput { GroupName?: string; /** - *

    The name or the ARN of the resource group to query.

    + *

    The name or the Amazon resource name (ARN) of the resource group to query.

    * @public */ Group?: string; @@ -743,7 +824,7 @@ export interface GetGroupQueryOutput { */ export interface GetTagsInput { /** - *

    The ARN of the resource group whose tags you want to retrieve.

    + *

    The Amazon resource name (ARN) of the resource group whose tags you want to retrieve.

    * @public */ Arn: string | undefined; @@ -752,103 +833,376 @@ export interface GetTagsInput { /** * @public */ -export interface GetTagsOutput { - /** - *

    The ARN of the tagged resource group.

    - * @public - */ - Arn?: string; - - /** - *

    The tags associated with the specified resource group.

    - * @public - */ - Tags?: Record; -} +export interface GetTagsOutput { + /** + *

    TheAmazon resource name (ARN) of the tagged resource group.

    + * @public + */ + Arn?: string; + + /** + *

    The tags associated with the specified resource group.

    + * @public + */ + Tags?: Record; +} + +/** + * @public + */ +export interface GetTagSyncTaskInput { + /** + *

    The Amazon resource name (ARN) of the tag-sync task.

    + * @public + */ + TaskArn: string | undefined; +} + +/** + * @public + * @enum + */ +export const TagSyncTaskStatus = { + ACTIVE: "ACTIVE", + ERROR: "ERROR", +} as const; + +/** + * @public + */ +export type TagSyncTaskStatus = (typeof TagSyncTaskStatus)[keyof typeof TagSyncTaskStatus]; + +/** + * @public + */ +export interface GetTagSyncTaskOutput { + /** + *

    The Amazon resource name (ARN) of the application group.

    + * @public + */ + GroupArn?: string; + + /** + *

    The name of the application group.

    + * @public + */ + GroupName?: string; + + /** + *

    The Amazon resource name (ARN) of the tag-sync task.

    + * @public + */ + TaskArn?: string; + + /** + *

    The tag key.

    + * @public + */ + TagKey?: string; + + /** + *

    The tag value.

    + * @public + */ + TagValue?: string; + + /** + *

    The Amazon resource name (ARN) of the role assumed by Resource Groups to tag and untag resources on your behalf.

    + *

    For more information about this role, review Tag-sync required permissions. + *

    + * @public + */ + RoleArn?: string; + + /** + *

    The status of the tag-sync task.

    + *

    Valid values include:

    + * + * @public + */ + Status?: TagSyncTaskStatus; + + /** + *

    The specific error message in cases where the tag-sync task status + * is ERROR.

    + * @public + */ + ErrorMessage?: string; + + /** + *

    The timestamp of when the tag-sync task was created.

    + * @public + */ + CreatedAt?: Date; +} + +/** + * @public + */ +export interface GroupResourcesInput { + /** + *

    The name or the Amazon resource name (ARN) of the resource group to add resources to.

    + * @public + */ + Group: string | undefined; + + /** + *

    The list of Amazon resource names (ARNs) of the resources to be added to the group.

    + * @public + */ + ResourceArns: string[] | undefined; +} + +/** + *

    A resource that failed to be added to or removed from a group.

    + * @public + */ +export interface FailedResource { + /** + *

    The Amazon resource name (ARN) of the resource that failed to be added or removed.

    + * @public + */ + ResourceArn?: string; + + /** + *

    The error message text associated with the failure.

    + * @public + */ + ErrorMessage?: string; + + /** + *

    The error code associated with the failure.

    + * @public + */ + ErrorCode?: string; +} + +/** + *

    A structure that identifies a resource that is currently pending addition to the group + * as a member. Adding a resource to a resource group happens asynchronously as a + * background task and this one isn't completed yet.

    + * @public + */ +export interface PendingResource { + /** + *

    The Amazon resource name (ARN) of the resource that's in a pending state.

    + * @public + */ + ResourceArn?: string; +} + +/** + * @public + */ +export interface GroupResourcesOutput { + /** + *

    A list of Amazon resource names (ARNs) of the resources that this operation successfully added to the + * group.

    + * @public + */ + Succeeded?: string[]; + + /** + *

    A list of Amazon resource names (ARNs) of any resources that this operation failed to add to the group.

    + * @public + */ + Failed?: FailedResource[]; + + /** + *

    A list of Amazon resource names (ARNs) of any resources that this operation is still in the process adding to + * the group. These pending additions continue asynchronously. You can check the status of + * pending additions by using the + * ListGroupResources + * + * operation, and checking the Resources array in the response and the + * Status field of each object in that array.

    + * @public + */ + Pending?: PendingResource[]; +} + +/** + * @public + * @enum + */ +export const ListGroupingStatusesFilterName = { + ResourceArn: "resource-arn", + Status: "status", +} as const; + +/** + * @public + */ +export type ListGroupingStatusesFilterName = + (typeof ListGroupingStatusesFilterName)[keyof typeof ListGroupingStatusesFilterName]; + +/** + *

    A filter name and value pair that is used to obtain more specific results from the list of grouping statuses.

    + * @public + */ +export interface ListGroupingStatusesFilter { + /** + *

    The name of the filter. Filter names are case-sensitive.

    + * @public + */ + Name: ListGroupingStatusesFilterName | undefined; + + /** + *

    One or more filter values. Allowed filter values vary by resource filter name, and are case-sensitive.

    + * @public + */ + Values: string[] | undefined; +} + +/** + * @public + */ +export interface ListGroupingStatusesInput { + /** + *

    The application group identifier, expressed as an Amazon resource name (ARN) or the application group name.

    + * @public + */ + Group: string | undefined; + + /** + *

    The maximum number of resources and their statuses returned in the + * response.

    + * @public + */ + MaxResults?: number; + + /** + *

    The filter name and value pair that is used to return more + * specific results from a list of resources.

    + * @public + */ + Filters?: ListGroupingStatusesFilter[]; + + /** + *

    The parameter for receiving additional results if you receive a + * NextToken response in a previous request. A NextToken + * response indicates that more output is available. Set this parameter to the + * value provided by a previous call's NextToken response to indicate + * where the output should continue from.

    + * @public + */ + NextToken?: string; +} + +/** + * @public + * @enum + */ +export const GroupingType = { + GROUP: "GROUP", + UNGROUP: "UNGROUP", +} as const; + +/** + * @public + */ +export type GroupingType = (typeof GroupingType)[keyof typeof GroupingType]; + +/** + * @public + * @enum + */ +export const GroupingStatus = { + FAILED: "FAILED", + IN_PROGRESS: "IN_PROGRESS", + SKIPPED: "SKIPPED", + SUCCESS: "SUCCESS", +} as const; + +/** + * @public + */ +export type GroupingStatus = (typeof GroupingStatus)[keyof typeof GroupingStatus]; /** + *

    The information about a grouping or ungrouping resource action.

    * @public */ -export interface GroupResourcesInput { +export interface GroupingStatusesItem { /** - *

    The name or the ARN of the resource group to add resources to.

    + *

    The Amazon resource name (ARN) of a resource.

    * @public */ - Group: string | undefined; + ResourceArn?: string; /** - *

    The list of ARNs of the resources to be added to the group.

    + *

    Describes the resource grouping action with values of + * GROUP or UNGROUP.

    * @public */ - ResourceArns: string[] | undefined; -} + Action?: GroupingType; -/** - *

    A resource that failed to be added to or removed from a group.

    - * @public - */ -export interface FailedResource { /** - *

    The ARN of the resource that failed to be added or removed.

    + *

    Describes the resource grouping status with values of + * SUCCESS, FAILED, IN_PROGRESS, + * or SKIPPED.

    * @public */ - ResourceArn?: string; + Status?: GroupingStatus; /** - *

    The error message text associated with the failure.

    + *

    A message that explains the ErrorCode.

    * @public */ ErrorMessage?: string; /** - *

    The error code associated with the failure.

    + *

    Specifies the error code that was raised.

    * @public */ ErrorCode?: string; -} -/** - *

    A structure that identifies a resource that is currently pending addition to the group - * as a member. Adding a resource to a resource group happens asynchronously as a - * background task and this one isn't completed yet.

    - * @public - */ -export interface PendingResource { /** - *

    The Amazon resource name (ARN) of the resource that's in a pending state.

    + *

    A timestamp of when the status was last updated.

    * @public */ - ResourceArn?: string; + UpdatedAt?: Date; } /** * @public */ -export interface GroupResourcesOutput { +export interface ListGroupingStatusesOutput { /** - *

    A list of ARNs of the resources that this operation successfully added to the - * group.

    + *

    The application group identifier, expressed as an Amazon resource name (ARN) or the application group name.

    * @public */ - Succeeded?: string[]; + Group?: string; /** - *

    A list of ARNs of any resources that this operation failed to add to the group.

    + *

    Returns details about the grouping or ungrouping status of the + * resources in the specified application group.

    * @public */ - Failed?: FailedResource[]; + GroupingStatuses?: GroupingStatusesItem[]; /** - *

    A list of ARNs of any resources that this operation is still in the process adding to - * the group. These pending additions continue asynchronously. You can check the status of - * pending additions by using the - * ListGroupResources - * - * operation, and checking the Resources array in the response and the - * Status field of each object in that array.

    + *

    If present, indicates that more output is available than is included in the current response. + * Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. + * You should repeat this until the NextToken response element comes back as null.

    * @public */ - Pending?: PendingResource[]; + NextToken?: string; } /** @@ -904,7 +1258,7 @@ export interface ListGroupResourcesInput { GroupName?: string; /** - *

    The name or the ARN of the resource group

    + *

    The name or the Amazon resource name (ARN) of the resource group.

    * @public */ Group?: string; @@ -1007,7 +1361,7 @@ export interface QueryError { */ export interface ResourceIdentifier { /** - *

    The ARN of a resource.

    + *

    The Amazon resource name (ARN) of a resource.

    * @public */ ResourceArn?: string; @@ -1118,35 +1472,15 @@ export interface ListGroupResourcesOutput { QueryErrors?: QueryError[]; } -/** - *

    The request was rejected because it doesn't have valid credentials for the target - * resource.

    - * @public - */ -export class UnauthorizedException extends __BaseException { - readonly name: "UnauthorizedException" = "UnauthorizedException"; - readonly $fault: "client" = "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "UnauthorizedException", - $fault: "client", - ...opts, - }); - Object.setPrototypeOf(this, UnauthorizedException.prototype); - this.Message = opts.Message; - } -} - /** * @public * @enum */ export const GroupFilterName = { ConfigurationType: "configuration-type", + Criticality: "criticality", + DisplayName: "display-name", + Owner: "owner", ResourceType: "resource-type", } as const; @@ -1198,6 +1532,11 @@ export interface ListGroupsInput { *