@aws-sdk/client-resource-groups 3.782.0 → 3.790.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -707,6 +707,7 @@ var se_StartTagSyncTaskCommand = /* @__PURE__ */ __name(async (input, context) =
707
707
  body = JSON.stringify(
708
708
  (0, import_smithy_client.take)(input, {
709
709
  Group: [],
710
+ ResourceQuery: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ResourceQuery"),
710
711
  RoleArn: [],
711
712
  TagKey: [],
712
713
  TagValue: []
@@ -940,6 +941,7 @@ var de_GetTagSyncTaskCommand = /* @__PURE__ */ __name(async (output, context) =>
940
941
  ErrorMessage: import_smithy_client.expectString,
941
942
  GroupArn: import_smithy_client.expectString,
942
943
  GroupName: import_smithy_client.expectString,
944
+ ResourceQuery: import_smithy_client._json,
943
945
  RoleArn: import_smithy_client.expectString,
944
946
  Status: import_smithy_client.expectString,
945
947
  TagKey: import_smithy_client.expectString,
@@ -1066,6 +1068,7 @@ var de_StartTagSyncTaskCommand = /* @__PURE__ */ __name(async (output, context)
1066
1068
  const doc = (0, import_smithy_client.take)(data, {
1067
1069
  GroupArn: import_smithy_client.expectString,
1068
1070
  GroupName: import_smithy_client.expectString,
1071
+ ResourceQuery: import_smithy_client._json,
1069
1072
  RoleArn: import_smithy_client.expectString,
1070
1073
  TagKey: import_smithy_client.expectString,
1071
1074
  TagValue: import_smithy_client.expectString,
@@ -1313,6 +1316,7 @@ var de_TagSyncTaskItem = /* @__PURE__ */ __name((output, context) => {
1313
1316
  ErrorMessage: import_smithy_client.expectString,
1314
1317
  GroupArn: import_smithy_client.expectString,
1315
1318
  GroupName: import_smithy_client.expectString,
1319
+ ResourceQuery: import_smithy_client._json,
1316
1320
  RoleArn: import_smithy_client.expectString,
1317
1321
  Status: import_smithy_client.expectString,
1318
1322
  TagKey: import_smithy_client.expectString,
@@ -238,6 +238,7 @@ export const se_StartTagSyncTaskCommand = async (input, context) => {
238
238
  let body;
239
239
  body = JSON.stringify(take(input, {
240
240
  Group: [],
241
+ ResourceQuery: (_) => _json(_),
241
242
  RoleArn: [],
242
243
  TagKey: [],
243
244
  TagValue: [],
@@ -458,6 +459,7 @@ export const de_GetTagSyncTaskCommand = async (output, context) => {
458
459
  ErrorMessage: __expectString,
459
460
  GroupArn: __expectString,
460
461
  GroupName: __expectString,
462
+ ResourceQuery: _json,
461
463
  RoleArn: __expectString,
462
464
  Status: __expectString,
463
465
  TagKey: __expectString,
@@ -584,6 +586,7 @@ export const de_StartTagSyncTaskCommand = async (output, context) => {
584
586
  const doc = take(data, {
585
587
  GroupArn: __expectString,
586
588
  GroupName: __expectString,
589
+ ResourceQuery: _json,
587
590
  RoleArn: __expectString,
588
591
  TagKey: __expectString,
589
592
  TagValue: __expectString,
@@ -833,6 +836,7 @@ const de_TagSyncTaskItem = (output, context) => {
833
836
  ErrorMessage: __expectString,
834
837
  GroupArn: __expectString,
835
838
  GroupName: __expectString,
839
+ ResourceQuery: _json,
836
840
  RoleArn: __expectString,
837
841
  Status: __expectString,
838
842
  TagKey: __expectString,
@@ -55,6 +55,10 @@ declare const GetTagSyncTaskCommand_base: {
55
55
  * // TaskArn: "STRING_VALUE",
56
56
  * // TagKey: "STRING_VALUE",
57
57
  * // TagValue: "STRING_VALUE",
58
+ * // ResourceQuery: { // ResourceQuery
59
+ * // Type: "TAG_FILTERS_1_0" || "CLOUDFORMATION_STACK_1_0", // required
60
+ * // Query: "STRING_VALUE", // required
61
+ * // },
58
62
  * // RoleArn: "STRING_VALUE",
59
63
  * // Status: "ACTIVE" || "ERROR",
60
64
  * // ErrorMessage: "STRING_VALUE",
@@ -65,6 +65,10 @@ declare const ListTagSyncTasksCommand_base: {
65
65
  * // TaskArn: "STRING_VALUE",
66
66
  * // TagKey: "STRING_VALUE",
67
67
  * // TagValue: "STRING_VALUE",
68
+ * // ResourceQuery: { // ResourceQuery
69
+ * // Type: "TAG_FILTERS_1_0" || "CLOUDFORMATION_STACK_1_0", // required
70
+ * // Query: "STRING_VALUE", // required
71
+ * // },
68
72
  * // RoleArn: "STRING_VALUE",
69
73
  * // Status: "ACTIVE" || "ERROR",
70
74
  * // ErrorMessage: "STRING_VALUE",
@@ -28,7 +28,11 @@ declare const StartTagSyncTaskCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Creates a new tag-sync task to onboard and sync resources tagged with a specific tag key-value pair to an
31
- * application. </p>
31
+ * application. To start a tag-sync task, you need a <a href="https://docs.aws.amazon.com/servicecatalog/latest/arguide/app-tag-sync.html#tag-sync-role">resource tagging role</a>.
32
+ * The resource tagging role grants permissions to tag and untag applications resources and must include a
33
+ * trust policy that allows Resource Groups to assume the role and perform resource tagging tasks on your behalf. </p>
34
+ * <p>For instructions on creating a tag-sync task, see <a href="https://docs.aws.amazon.com/servicecatalog/latest/arguide/app-tag-sync.html#create-tag-sync">Create a tag-sync
35
+ * using the Resource Groups API</a> in the <i>Amazon Web Services Service Catalog AppRegistry Administrator Guide</i>. </p>
32
36
  * <p>
33
37
  * <b>Minimum permissions</b>
34
38
  * </p>
@@ -56,8 +60,12 @@ declare const StartTagSyncTaskCommand_base: {
56
60
  * const client = new ResourceGroupsClient(config);
57
61
  * const input = { // StartTagSyncTaskInput
58
62
  * Group: "STRING_VALUE", // required
59
- * TagKey: "STRING_VALUE", // required
60
- * TagValue: "STRING_VALUE", // required
63
+ * TagKey: "STRING_VALUE",
64
+ * TagValue: "STRING_VALUE",
65
+ * ResourceQuery: { // ResourceQuery
66
+ * Type: "TAG_FILTERS_1_0" || "CLOUDFORMATION_STACK_1_0", // required
67
+ * Query: "STRING_VALUE", // required
68
+ * },
61
69
  * RoleArn: "STRING_VALUE", // required
62
70
  * };
63
71
  * const command = new StartTagSyncTaskCommand(input);
@@ -68,6 +76,10 @@ declare const StartTagSyncTaskCommand_base: {
68
76
  * // TaskArn: "STRING_VALUE",
69
77
  * // TagKey: "STRING_VALUE",
70
78
  * // TagValue: "STRING_VALUE",
79
+ * // ResourceQuery: { // ResourceQuery
80
+ * // Type: "TAG_FILTERS_1_0" || "CLOUDFORMATION_STACK_1_0", // required
81
+ * // Query: "STRING_VALUE", // required
82
+ * // },
71
83
  * // RoleArn: "STRING_VALUE",
72
84
  * // };
73
85
  *
@@ -773,6 +773,37 @@ export interface GetTagSyncTaskOutput {
773
773
  * @public
774
774
  */
775
775
  TagValue?: string | undefined;
776
+ /**
777
+ * <p>The query you can use to define a resource group or a search for resources. A
778
+ * <code>ResourceQuery</code> specifies both a query <code>Type</code> and a
779
+ * <code>Query</code> string as JSON string objects. See the examples section for
780
+ * example JSON strings. For more information about creating a resource group with a
781
+ * resource query, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html">Build queries and groups in
782
+ * Resource Groups</a> in the <i>Resource Groups User Guide</i>
783
+ * </p>
784
+ * <p>When you combine all of the elements together into a single string, any double quotes
785
+ * that are embedded inside another double quote pair must be escaped by preceding the
786
+ * embedded double quote with a backslash character (\). For example, a complete
787
+ * <code>ResourceQuery</code> parameter must be formatted like the following CLI
788
+ * parameter example:</p>
789
+ * <p>
790
+ * <code>--resource-query
791
+ * '\{"Type":"TAG_FILTERS_1_0","Query":"\{\"ResourceTypeFilters\":[\"AWS::AllSupported\"],\"TagFilters\":[\{\"Key\":\"Stage\",\"Values\":[\"Test\"]\}]\}"\}'</code>
792
+ * </p>
793
+ * <p>In the preceding example, all of the double quote characters in the value part of the
794
+ * <code>Query</code> element must be escaped because the value itself is surrounded by
795
+ * double quotes. For more information, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html">Quoting
796
+ * strings</a> in the <i>Command Line Interface User Guide</i>.</p>
797
+ * <p>For the complete list of resource types that you can use in the array value for
798
+ * <code>ResourceTypeFilters</code>, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html">Resources
799
+ * you can use with Resource Groups and Tag Editor</a> in the
800
+ * <i>Resource Groups User Guide</i>. For example:</p>
801
+ * <p>
802
+ * <code>"ResourceTypeFilters":["AWS::S3::Bucket", "AWS::EC2::Instance"]</code>
803
+ * </p>
804
+ * @public
805
+ */
806
+ ResourceQuery?: ResourceQuery | undefined;
776
807
  /**
777
808
  * <p>The Amazon resource name (ARN) of the role assumed by Resource Groups to tag and untag resources on your behalf. </p>
778
809
  * <p>For more information about this role, review <a href="https://docs.aws.amazon.com/servicecatalog/latest/arguide/app-tag-sync.html#tag-sync-role">Tag-sync required permissions</a>.
@@ -1346,7 +1377,7 @@ export interface ListGroupsInput {
1346
1377
  * </li>
1347
1378
  * <li>
1348
1379
  * <p>
1349
- * <code>AWS::AppRegistry::ApplicationResourceGroups</code>
1380
+ * <code>AWS::AppRegistry::ApplicationResourceGroup</code>
1350
1381
  * </p>
1351
1382
  * </li>
1352
1383
  * <li>
@@ -1540,6 +1571,37 @@ export interface TagSyncTaskItem {
1540
1571
  * @public
1541
1572
  */
1542
1573
  TagValue?: string | undefined;
1574
+ /**
1575
+ * <p>The query you can use to define a resource group or a search for resources. A
1576
+ * <code>ResourceQuery</code> specifies both a query <code>Type</code> and a
1577
+ * <code>Query</code> string as JSON string objects. See the examples section for
1578
+ * example JSON strings. For more information about creating a resource group with a
1579
+ * resource query, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html">Build queries and groups in
1580
+ * Resource Groups</a> in the <i>Resource Groups User Guide</i>
1581
+ * </p>
1582
+ * <p>When you combine all of the elements together into a single string, any double quotes
1583
+ * that are embedded inside another double quote pair must be escaped by preceding the
1584
+ * embedded double quote with a backslash character (\). For example, a complete
1585
+ * <code>ResourceQuery</code> parameter must be formatted like the following CLI
1586
+ * parameter example:</p>
1587
+ * <p>
1588
+ * <code>--resource-query
1589
+ * '\{"Type":"TAG_FILTERS_1_0","Query":"\{\"ResourceTypeFilters\":[\"AWS::AllSupported\"],\"TagFilters\":[\{\"Key\":\"Stage\",\"Values\":[\"Test\"]\}]\}"\}'</code>
1590
+ * </p>
1591
+ * <p>In the preceding example, all of the double quote characters in the value part of the
1592
+ * <code>Query</code> element must be escaped because the value itself is surrounded by
1593
+ * double quotes. For more information, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html">Quoting
1594
+ * strings</a> in the <i>Command Line Interface User Guide</i>.</p>
1595
+ * <p>For the complete list of resource types that you can use in the array value for
1596
+ * <code>ResourceTypeFilters</code>, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html">Resources
1597
+ * you can use with Resource Groups and Tag Editor</a> in the
1598
+ * <i>Resource Groups User Guide</i>. For example:</p>
1599
+ * <p>
1600
+ * <code>"ResourceTypeFilters":["AWS::S3::Bucket", "AWS::EC2::Instance"]</code>
1601
+ * </p>
1602
+ * @public
1603
+ */
1604
+ ResourceQuery?: ResourceQuery | undefined;
1543
1605
  /**
1544
1606
  * <p>The Amazon resource name (ARN) of the role assumed by the service to tag and untag resources on your behalf.</p>
1545
1607
  * @public
@@ -1712,16 +1774,51 @@ export interface StartTagSyncTaskInput {
1712
1774
  * <p>The tag key. Resources tagged with this tag key-value pair will be added to
1713
1775
  * the application. If a resource with this tag is later untagged, the tag-sync task removes
1714
1776
  * the resource from the application. </p>
1777
+ * <p>When using the <code>TagKey</code> parameter, you must also specify the <code>TagValue</code> parameter. If you specify a tag key-value pair,
1778
+ * you can't use the <code>ResourceQuery</code> parameter. </p>
1715
1779
  * @public
1716
1780
  */
1717
- TagKey: string | undefined;
1781
+ TagKey?: string | undefined;
1718
1782
  /**
1719
1783
  * <p>The tag value. Resources tagged with this tag key-value pair will be added to
1720
1784
  * the application. If a resource with this tag is later untagged, the tag-sync task removes
1721
1785
  * the resource from the application. </p>
1786
+ * <p>When using the <code>TagValue</code> parameter, you must also specify the <code>TagKey</code> parameter. If you specify a tag key-value pair,
1787
+ * you can't use the <code>ResourceQuery</code> parameter. </p>
1722
1788
  * @public
1723
1789
  */
1724
- TagValue: string | undefined;
1790
+ TagValue?: string | undefined;
1791
+ /**
1792
+ * <p>The query you can use to create the tag-sync task. With this method, all resources matching the query
1793
+ * are added to the specified application group. A
1794
+ * <code>ResourceQuery</code> specifies both a query <code>Type</code> and a
1795
+ * <code>Query</code> string as JSON string objects. For more information on defining a resource query for a
1796
+ * tag-sync task, see the tag-based query type in <a href="https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#getting_started-query_types">
1797
+ * Types of resource group queries</a> in <i>Resource Groups User Guide</i>. </p>
1798
+ * <p>When using the <code>ResourceQuery</code> parameter, you cannot use the <code>TagKey</code> and <code>TagValue</code> parameters. </p>
1799
+ * <p>When you combine all of the elements together into a single string, any double quotes
1800
+ * that are embedded inside another double quote pair must be escaped by preceding the
1801
+ * embedded double quote with a backslash character (\). For example, a complete
1802
+ * <code>ResourceQuery</code> parameter must be formatted like the following CLI
1803
+ * parameter example:</p>
1804
+ * <p>
1805
+ * <code>--resource-query
1806
+ * '\{"Type":"TAG_FILTERS_1_0","Query":"\{\"ResourceTypeFilters\":[\"AWS::AllSupported\"],\"TagFilters\":[\{\"Key\":\"Stage\",\"Values\":[\"Test\"]\}]\}"\}'</code>
1807
+ * </p>
1808
+ * <p>In the preceding example, all of the double quote characters in the value part of the
1809
+ * <code>Query</code> element must be escaped because the value itself is surrounded by
1810
+ * double quotes. For more information, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html">Quoting
1811
+ * strings</a> in the <i>Command Line Interface User Guide</i>.</p>
1812
+ * <p>For the complete list of resource types that you can use in the array value for
1813
+ * <code>ResourceTypeFilters</code>, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html">Resources
1814
+ * you can use with Resource Groups and Tag Editor</a> in the
1815
+ * <i>Resource Groups User Guide</i>. For example:</p>
1816
+ * <p>
1817
+ * <code>"ResourceTypeFilters":["AWS::S3::Bucket", "AWS::EC2::Instance"]</code>
1818
+ * </p>
1819
+ * @public
1820
+ */
1821
+ ResourceQuery?: ResourceQuery | undefined;
1725
1822
  /**
1726
1823
  * <p>The Amazon resource name (ARN) of the role assumed by the service to tag and untag resources on your behalf.</p>
1727
1824
  * @public
@@ -1757,6 +1854,37 @@ export interface StartTagSyncTaskOutput {
1757
1854
  * @public
1758
1855
  */
1759
1856
  TagValue?: string | undefined;
1857
+ /**
1858
+ * <p>The query you can use to define a resource group or a search for resources. A
1859
+ * <code>ResourceQuery</code> specifies both a query <code>Type</code> and a
1860
+ * <code>Query</code> string as JSON string objects. See the examples section for
1861
+ * example JSON strings. For more information about creating a resource group with a
1862
+ * resource query, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html">Build queries and groups in
1863
+ * Resource Groups</a> in the <i>Resource Groups User Guide</i>
1864
+ * </p>
1865
+ * <p>When you combine all of the elements together into a single string, any double quotes
1866
+ * that are embedded inside another double quote pair must be escaped by preceding the
1867
+ * embedded double quote with a backslash character (\). For example, a complete
1868
+ * <code>ResourceQuery</code> parameter must be formatted like the following CLI
1869
+ * parameter example:</p>
1870
+ * <p>
1871
+ * <code>--resource-query
1872
+ * '\{"Type":"TAG_FILTERS_1_0","Query":"\{\"ResourceTypeFilters\":[\"AWS::AllSupported\"],\"TagFilters\":[\{\"Key\":\"Stage\",\"Values\":[\"Test\"]\}]\}"\}'</code>
1873
+ * </p>
1874
+ * <p>In the preceding example, all of the double quote characters in the value part of the
1875
+ * <code>Query</code> element must be escaped because the value itself is surrounded by
1876
+ * double quotes. For more information, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html">Quoting
1877
+ * strings</a> in the <i>Command Line Interface User Guide</i>.</p>
1878
+ * <p>For the complete list of resource types that you can use in the array value for
1879
+ * <code>ResourceTypeFilters</code>, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html">Resources
1880
+ * you can use with Resource Groups and Tag Editor</a> in the
1881
+ * <i>Resource Groups User Guide</i>. For example:</p>
1882
+ * <p>
1883
+ * <code>"ResourceTypeFilters":["AWS::S3::Bucket", "AWS::EC2::Instance"]</code>
1884
+ * </p>
1885
+ * @public
1886
+ */
1887
+ ResourceQuery?: ResourceQuery | undefined;
1760
1888
  /**
1761
1889
  * <p>The Amazon resource name (ARN) of the role assumed by the service to tag and untag resources on your behalf.</p>
1762
1890
  * @public
@@ -187,6 +187,7 @@ export interface GetTagSyncTaskOutput {
187
187
  TaskArn?: string | undefined;
188
188
  TagKey?: string | undefined;
189
189
  TagValue?: string | undefined;
190
+ ResourceQuery?: ResourceQuery | undefined;
190
191
  RoleArn?: string | undefined;
191
192
  Status?: TagSyncTaskStatus | undefined;
192
193
  ErrorMessage?: string | undefined;
@@ -347,6 +348,7 @@ export interface TagSyncTaskItem {
347
348
  TaskArn?: string | undefined;
348
349
  TagKey?: string | undefined;
349
350
  TagValue?: string | undefined;
351
+ ResourceQuery?: ResourceQuery | undefined;
350
352
  RoleArn?: string | undefined;
351
353
  Status?: TagSyncTaskStatus | undefined;
352
354
  ErrorMessage?: string | undefined;
@@ -373,8 +375,9 @@ export interface SearchResourcesOutput {
373
375
  }
374
376
  export interface StartTagSyncTaskInput {
375
377
  Group: string | undefined;
376
- TagKey: string | undefined;
377
- TagValue: string | undefined;
378
+ TagKey?: string | undefined;
379
+ TagValue?: string | undefined;
380
+ ResourceQuery?: ResourceQuery | undefined;
378
381
  RoleArn: string | undefined;
379
382
  }
380
383
  export interface StartTagSyncTaskOutput {
@@ -383,6 +386,7 @@ export interface StartTagSyncTaskOutput {
383
386
  TaskArn?: string | undefined;
384
387
  TagKey?: string | undefined;
385
388
  TagValue?: string | undefined;
389
+ ResourceQuery?: ResourceQuery | undefined;
386
390
  RoleArn?: string | undefined;
387
391
  }
388
392
  export interface TagInput {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-resource-groups",
3
3
  "description": "AWS SDK for JavaScript Resource Groups Client for Node.js, Browser and React Native",
4
- "version": "3.782.0",
4
+ "version": "3.790.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-resource-groups",
@@ -21,16 +21,16 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.775.0",
24
- "@aws-sdk/credential-provider-node": "3.782.0",
24
+ "@aws-sdk/credential-provider-node": "3.787.0",
25
25
  "@aws-sdk/middleware-host-header": "3.775.0",
26
26
  "@aws-sdk/middleware-logger": "3.775.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.775.0",
28
- "@aws-sdk/middleware-user-agent": "3.782.0",
28
+ "@aws-sdk/middleware-user-agent": "3.787.0",
29
29
  "@aws-sdk/region-config-resolver": "3.775.0",
30
30
  "@aws-sdk/types": "3.775.0",
31
- "@aws-sdk/util-endpoints": "3.782.0",
31
+ "@aws-sdk/util-endpoints": "3.787.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.775.0",
33
- "@aws-sdk/util-user-agent-node": "3.782.0",
33
+ "@aws-sdk/util-user-agent-node": "3.787.0",
34
34
  "@smithy/config-resolver": "^4.1.0",
35
35
  "@smithy/core": "^3.2.0",
36
36
  "@smithy/fetch-http-handler": "^5.0.2",