You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* <p>Creates a new tag-sync task to onboard and sync resources tagged with a specific tag key-value pair to an
32
-
* application. </p>
32
+
* 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>.
33
+
* The resource tagging role grants permissions to tag and untag applications resources and must include a
34
+
* trust policy that allows Resource Groups to assume the role and perform resource tagging tasks on your behalf. </p>
35
+
* <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
36
+
* using the Resource Groups API</a> in the <i>Amazon Web Services Service Catalog AppRegistry Administrator Guide</i>. </p>
* <p>In the preceding example, all of the double quote characters in the value part of the
927
+
* <code>Query</code> element must be escaped because the value itself is surrounded by
928
+
* double quotes. For more information, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html">Quoting
929
+
* strings</a> in the <i>Command Line Interface User Guide</i>.</p>
930
+
* <p>For the complete list of resource types that you can use in the array value for
931
+
* <code>ResourceTypeFilters</code>, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html">Resources
932
+
* you can use with Resource Groups and Tag Editor</a> in the
933
+
* <i>Resource Groups User Guide</i>. For example:</p>
* <p>The Amazon resource name (ARN) of the role assumed by Resource Groups to tag and untag resources on your behalf. </p>
911
943
* <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>.
* <p>In the preceding example, all of the double quote characters in the value part of the
1811
+
* <code>Query</code> element must be escaped because the value itself is surrounded by
1812
+
* double quotes. For more information, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html">Quoting
1813
+
* strings</a> in the <i>Command Line Interface User Guide</i>.</p>
1814
+
* <p>For the complete list of resource types that you can use in the array value for
1815
+
* <code>ResourceTypeFilters</code>, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html">Resources
1816
+
* you can use with Resource Groups and Tag Editor</a> in the
1817
+
* <i>Resource Groups User Guide</i>. For example:</p>
* <p>The tag key. Resources tagged with this tag key-value pair will be added to
1946
2010
* the application. If a resource with this tag is later untagged, the tag-sync task removes
1947
2011
* the resource from the application. </p>
2012
+
* <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,
2013
+
* you can't use the <code>ResourceQuery</code> parameter. </p>
1948
2014
* @public
1949
2015
*/
1950
-
TagKey: string|undefined;
2016
+
TagKey?: string|undefined;
1951
2017
1952
2018
/**
1953
2019
* <p>The tag value. Resources tagged with this tag key-value pair will be added to
1954
2020
* the application. If a resource with this tag is later untagged, the tag-sync task removes
1955
2021
* the resource from the application. </p>
2022
+
* <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,
2023
+
* you can't use the <code>ResourceQuery</code> parameter. </p>
1956
2024
* @public
1957
2025
*/
1958
-
TagValue: string|undefined;
2026
+
TagValue?: string|undefined;
2027
+
2028
+
/**
2029
+
* <p>The query you can use to create the tag-sync task. With this method, all resources matching the query
2030
+
* are added to the specified application group. A
2031
+
* <code>ResourceQuery</code> specifies both a query <code>Type</code> and a
2032
+
* <code>Query</code> string as JSON string objects. For more information on defining a resource query for a
2033
+
* 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">
2034
+
* Types of resource group queries</a> in <i>Resource Groups User Guide</i>. </p>
2035
+
* <p>When using the <code>ResourceQuery</code> parameter, you cannot use the <code>TagKey</code> and <code>TagValue</code> parameters. </p>
2036
+
* <p>When you combine all of the elements together into a single string, any double quotes
2037
+
* that are embedded inside another double quote pair must be escaped by preceding the
2038
+
* embedded double quote with a backslash character (\). For example, a complete
2039
+
* <code>ResourceQuery</code> parameter must be formatted like the following CLI
* <p>In the preceding example, all of the double quote characters in the value part of the
2046
+
* <code>Query</code> element must be escaped because the value itself is surrounded by
2047
+
* double quotes. For more information, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html">Quoting
2048
+
* strings</a> in the <i>Command Line Interface User Guide</i>.</p>
2049
+
* <p>For the complete list of resource types that you can use in the array value for
2050
+
* <code>ResourceTypeFilters</code>, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html">Resources
2051
+
* you can use with Resource Groups and Tag Editor</a> in the
2052
+
* <i>Resource Groups User Guide</i>. For example:</p>
* <p>In the preceding example, all of the double quote characters in the value part of the
2119
+
* <code>Query</code> element must be escaped because the value itself is surrounded by
2120
+
* double quotes. For more information, see <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html">Quoting
2121
+
* strings</a> in the <i>Command Line Interface User Guide</i>.</p>
2122
+
* <p>For the complete list of resource types that you can use in the array value for
2123
+
* <code>ResourceTypeFilters</code>, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html">Resources
2124
+
* you can use with Resource Groups and Tag Editor</a> in the
2125
+
* <i>Resource Groups User Guide</i>. For example:</p>
0 commit comments