diff --git a/clients/client-resource-groups/src/commands/ListGroupResourcesCommand.ts b/clients/client-resource-groups/src/commands/ListGroupResourcesCommand.ts index fa71fb0c87a0..9cfdcc486f09 100644 --- a/clients/client-resource-groups/src/commands/ListGroupResourcesCommand.ts +++ b/clients/client-resource-groups/src/commands/ListGroupResourcesCommand.ts @@ -98,7 +98,7 @@ export interface ListGroupResourcesCommandOutput extends ListGroupResourcesOutpu * // NextToken: "STRING_VALUE", * // QueryErrors: [ // QueryErrorList * // { // QueryError - * // ErrorCode: "CLOUDFORMATION_STACK_INACTIVE" || "CLOUDFORMATION_STACK_NOT_EXISTING" || "CLOUDFORMATION_STACK_UNASSUMABLE_ROLE", + * // ErrorCode: "CLOUDFORMATION_STACK_INACTIVE" || "CLOUDFORMATION_STACK_NOT_EXISTING" || "CLOUDFORMATION_STACK_UNASSUMABLE_ROLE" || "RESOURCE_TYPE_NOT_SUPPORTED", * // Message: "STRING_VALUE", * // }, * // ], diff --git a/clients/client-resource-groups/src/commands/SearchResourcesCommand.ts b/clients/client-resource-groups/src/commands/SearchResourcesCommand.ts index 6d50f0ab9981..7fedf2e5611d 100644 --- a/clients/client-resource-groups/src/commands/SearchResourcesCommand.ts +++ b/clients/client-resource-groups/src/commands/SearchResourcesCommand.ts @@ -82,7 +82,7 @@ export interface SearchResourcesCommandOutput extends SearchResourcesOutput, __M * // NextToken: "STRING_VALUE", * // QueryErrors: [ // QueryErrorList * // { // QueryError - * // ErrorCode: "CLOUDFORMATION_STACK_INACTIVE" || "CLOUDFORMATION_STACK_NOT_EXISTING" || "CLOUDFORMATION_STACK_UNASSUMABLE_ROLE", + * // ErrorCode: "CLOUDFORMATION_STACK_INACTIVE" || "CLOUDFORMATION_STACK_NOT_EXISTING" || "CLOUDFORMATION_STACK_UNASSUMABLE_ROLE" || "RESOURCE_TYPE_NOT_SUPPORTED", * // Message: "STRING_VALUE", * // }, * // ], diff --git a/clients/client-resource-groups/src/models/models_0.ts b/clients/client-resource-groups/src/models/models_0.ts index 70d511e50db0..6c0e1530abbd 100644 --- a/clients/client-resource-groups/src/models/models_0.ts +++ b/clients/client-resource-groups/src/models/models_0.ts @@ -307,8 +307,9 @@ export interface CreateGroupInput { *

The name of the group, which is the identifier of the group in other operations. You * can't change the name of a resource group after you create it. A resource group name can * consist of letters, numbers, hyphens, periods, and underscores. The name cannot start - * with AWS or aws; these are reserved. A resource group name - * must be unique within each Amazon Web Services Region in your Amazon Web Services account.

+ * with AWS, aws, or any other possible capitalization; these are + * reserved. A resource group name must be unique within each Amazon Web Services Region in your Amazon Web Services + * account.

* @public */ Name: string | undefined; @@ -973,6 +974,7 @@ export const QueryErrorCode = { CLOUDFORMATION_STACK_INACTIVE: "CLOUDFORMATION_STACK_INACTIVE", CLOUDFORMATION_STACK_NOT_EXISTING: "CLOUDFORMATION_STACK_NOT_EXISTING", CLOUDFORMATION_STACK_UNASSUMABLE_ROLE: "CLOUDFORMATION_STACK_UNASSUMABLE_ROLE", + RESOURCE_TYPE_NOT_SUPPORTED: "RESOURCE_TYPE_NOT_SUPPORTED", } as const; /** @@ -982,11 +984,7 @@ export type QueryErrorCode = (typeof QueryErrorCode)[keyof typeof QueryErrorCode /** *

A two-part error structure that can occur in ListGroupResources or - * SearchResources operations on CloudFront stack-based queries. The error - * occurs if the CloudFront stack on which the query is based either does not exist, or has a - * status that renders the stack inactive. A QueryError occurrence does not - * necessarily mean that Resource Groups could not complete the operation, but the resulting - * group might have no member resources.

+ * SearchResources.

* @public */ export interface QueryError { @@ -997,11 +995,7 @@ export interface QueryError { ErrorCode?: QueryErrorCode; /** - *

A message that explains the ErrorCode value. Messages might state that - * the specified CloudFront stack does not exist (or no longer exists). For - * CLOUDFORMATION_STACK_INACTIVE, the message typically states that the - * CloudFront stack has a status that is not (or no longer) active, such as - * CREATE_FAILED.

+ *

A message that explains the ErrorCode.

* @public */ Message?: string; @@ -1115,10 +1109,10 @@ export interface ListGroupResourcesOutput { NextToken?: string; /** - *

A list of QueryError objects. Each error is an object that contains - * ErrorCode and Message structures. Possible values for - * ErrorCode are CLOUDFORMATION_STACK_INACTIVE and - * CLOUDFORMATION_STACK_NOT_EXISTING.

+ *

A list of QueryError objects. Each error contains an + * ErrorCode and Message. Possible values for + * ErrorCode are CLOUDFORMATION_STACK_INACTIVE, CLOUDFORMATION_STACK_NOT_EXISTING, + * CLOUDFORMATION_STACK_UNASSUMABLE_ROLE and RESOURCE_TYPE_NOT_SUPPORTED.

* @public */ QueryErrors?: QueryError[]; @@ -1191,12 +1185,10 @@ export interface ListGroupsInput { * @@ -1385,8 +1397,8 @@ export interface SearchResourcesOutput { NextToken?: string; /** - *

A list of QueryError objects. Each error is an object that contains - * ErrorCode and Message structures.

+ *

A list of QueryError objects. Each error contains an + * ErrorCode and Message.

*

Possible values for ErrorCode:

* * @public */ diff --git a/codegen/sdk-codegen/aws-models/resource-groups.json b/codegen/sdk-codegen/aws-models/resource-groups.json index b514d83ad94d..abdaf1682dea 100644 --- a/codegen/sdk-codegen/aws-models/resource-groups.json +++ b/codegen/sdk-codegen/aws-models/resource-groups.json @@ -1187,7 +1187,7 @@ "Name": { "target": "com.amazonaws.resourcegroups#GroupName", "traits": { - "smithy.api#documentation": "

The name of the group, which is the identifier of the group in other operations. You\n can't change the name of a resource group after you create it. A resource group name can\n consist of letters, numbers, hyphens, periods, and underscores. The name cannot start\n with AWS or aws; these are reserved. A resource group name\n must be unique within each Amazon Web Services Region in your Amazon Web Services account.

", + "smithy.api#documentation": "

The name of the group, which is the identifier of the group in other operations. You\n can't change the name of a resource group after you create it. A resource group name can\n consist of letters, numbers, hyphens, periods, and underscores. The name cannot start\n with AWS, aws, or any other possible capitalization; these are\n reserved. A resource group name must be unique within each Amazon Web Services Region in your Amazon Web Services\n account.

", "smithy.api#required": {} } }, @@ -2356,7 +2356,7 @@ "QueryErrors": { "target": "com.amazonaws.resourcegroups#QueryErrorList", "traits": { - "smithy.api#documentation": "

A list of QueryError objects. Each error is an object that contains\n ErrorCode and Message structures. Possible values for\n ErrorCode are CLOUDFORMATION_STACK_INACTIVE and\n CLOUDFORMATION_STACK_NOT_EXISTING.

" + "smithy.api#documentation": "

A list of QueryError objects. Each error contains an\n ErrorCode and Message. Possible values for \n ErrorCode are CLOUDFORMATION_STACK_INACTIVE, CLOUDFORMATION_STACK_NOT_EXISTING, \n CLOUDFORMATION_STACK_UNASSUMABLE_ROLE and RESOURCE_TYPE_NOT_SUPPORTED.

" } } }, @@ -2410,7 +2410,7 @@ "Filters": { "target": "com.amazonaws.resourcegroups#GroupFilterList", "traits": { - "smithy.api#documentation": "

Filters, formatted as GroupFilter objects, that you want to apply to\n a ListGroups operation.

\n " + "smithy.api#documentation": "

Filters, formatted as GroupFilter objects, that you want to apply to\n a ListGroups operation.

\n " } }, "MaxResults": { @@ -2612,12 +2612,12 @@ "Message": { "target": "com.amazonaws.resourcegroups#QueryErrorMessage", "traits": { - "smithy.api#documentation": "

A message that explains the ErrorCode value. Messages might state that\n the specified CloudFront stack does not exist (or no longer exists). For\n CLOUDFORMATION_STACK_INACTIVE, the message typically states that the\n CloudFront stack has a status that is not (or no longer) active, such as\n CREATE_FAILED.

" + "smithy.api#documentation": "

A message that explains the ErrorCode.

" } } }, "traits": { - "smithy.api#documentation": "

A two-part error structure that can occur in ListGroupResources or\n SearchResources operations on CloudFront stack-based queries. The error\n occurs if the CloudFront stack on which the query is based either does not exist, or has a\n status that renders the stack inactive. A QueryError occurrence does not\n necessarily mean that Resource Groups could not complete the operation, but the resulting\n group might have no member resources.

" + "smithy.api#documentation": "

A two-part error structure that can occur in ListGroupResources or\n SearchResources.

" } }, "com.amazonaws.resourcegroups#QueryErrorCode": { @@ -2640,6 +2640,12 @@ "traits": { "smithy.api#enumValue": "CLOUDFORMATION_STACK_UNASSUMABLE_ROLE" } + }, + "RESOURCE_TYPE_NOT_SUPPORTED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RESOURCE_TYPE_NOT_SUPPORTED" + } } } }, @@ -2922,7 +2928,7 @@ "QueryErrors": { "target": "com.amazonaws.resourcegroups#QueryErrorList", "traits": { - "smithy.api#documentation": "

A list of QueryError objects. Each error is an object that contains\n ErrorCode and Message structures.

\n

Possible values for ErrorCode:

\n " + "smithy.api#documentation": "

A list of QueryError objects. Each error contains an \n ErrorCode and Message.

\n

Possible values for ErrorCode:

\n " } } },