@aws-sdk/client-service-catalog-appregistry 3.449.0 → 3.450.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/README.md CHANGED
@@ -165,7 +165,7 @@ try {
165
165
  const data = await client.send(command);
166
166
  // process data.
167
167
  } catch (error) {
168
- const { requestId, cfId, extendedRequestId } = error.$$metadata;
168
+ const { requestId, cfId, extendedRequestId } = error.$metadata;
169
169
  console.log({ requestId, cfId, extendedRequestId });
170
170
  /**
171
171
  * The keys within exceptions are also parsed.
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SyncAction = exports.ResourceGroupState = exports.ThrottlingException = exports.ResourceType = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = void 0;
3
+ exports.SyncAction = exports.ResourceItemStatus = exports.ResourceGroupState = exports.ThrottlingException = exports.ResourceType = exports.AssociationOption = exports.ValidationException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.ApplicationTagStatus = void 0;
4
4
  const ServiceCatalogAppRegistryServiceException_1 = require("./ServiceCatalogAppRegistryServiceException");
5
+ exports.ApplicationTagStatus = {
6
+ FAILURE: "FAILURE",
7
+ IN_PROGRESS: "IN_PROGRESS",
8
+ SUCCESS: "SUCCESS",
9
+ };
5
10
  class ConflictException extends ServiceCatalogAppRegistryServiceException_1.ServiceCatalogAppRegistryServiceException {
6
11
  constructor(opts) {
7
12
  super({
@@ -67,6 +72,10 @@ class ValidationException extends ServiceCatalogAppRegistryServiceException_1.Se
67
72
  }
68
73
  }
69
74
  exports.ValidationException = ValidationException;
75
+ exports.AssociationOption = {
76
+ APPLY_APPLICATION_TAG: "APPLY_APPLICATION_TAG",
77
+ SKIP_APPLICATION_TAG: "SKIP_APPLICATION_TAG",
78
+ };
70
79
  exports.ResourceType = {
71
80
  CFN_STACK: "CFN_STACK",
72
81
  RESOURCE_TAG_VALUE: "RESOURCE_TAG_VALUE",
@@ -93,6 +102,12 @@ exports.ResourceGroupState = {
93
102
  UPDATE_FAILED: "UPDATE_FAILED",
94
103
  UPDATING: "UPDATING",
95
104
  };
105
+ exports.ResourceItemStatus = {
106
+ FAILED: "FAILED",
107
+ IN_PROGRESS: "IN_PROGRESS",
108
+ SKIPPED: "SKIPPED",
109
+ SUCCESS: "SUCCESS",
110
+ };
96
111
  exports.SyncAction = {
97
112
  NO_ACTION: "NO_ACTION",
98
113
  START_SYNC: "START_SYNC",
@@ -27,13 +27,18 @@ const se_AssociateAttributeGroupCommand = async (input, context) => {
27
27
  exports.se_AssociateAttributeGroupCommand = se_AssociateAttributeGroupCommand;
28
28
  const se_AssociateResourceCommand = async (input, context) => {
29
29
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
30
- const headers = {};
30
+ const headers = {
31
+ "content-type": "application/json",
32
+ };
31
33
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
32
34
  "/applications/{application}/resources/{resourceType}/{resource}";
33
35
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
34
36
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceType", () => input.resourceType, "{resourceType}", false);
35
37
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resource", () => input.resource, "{resource}", false);
36
38
  let body;
39
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
40
+ options: (_) => (0, smithy_client_1._json)(_),
41
+ }));
37
42
  return new protocol_http_1.HttpRequest({
38
43
  protocol,
39
44
  hostname,
@@ -192,6 +197,14 @@ const se_GetAssociatedResourceCommand = async (input, context) => {
192
197
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "application", () => input.application, "{application}", false);
193
198
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceType", () => input.resourceType, "{resourceType}", false);
194
199
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resource", () => input.resource, "{resource}", false);
200
+ const query = (0, smithy_client_1.map)({
201
+ nextToken: [, input.nextToken],
202
+ resourceTagStatus: [
203
+ () => input.resourceTagStatus !== void 0,
204
+ () => (input.resourceTagStatus || []).map((_entry) => _entry),
205
+ ],
206
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
207
+ });
195
208
  let body;
196
209
  return new protocol_http_1.HttpRequest({
197
210
  protocol,
@@ -200,6 +213,7 @@ const se_GetAssociatedResourceCommand = async (input, context) => {
200
213
  method: "GET",
201
214
  headers,
202
215
  path: resolvedPath,
216
+ query,
203
217
  body,
204
218
  });
205
219
  };
@@ -556,6 +570,7 @@ const de_AssociateResourceCommand = async (output, context) => {
556
570
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
557
571
  const doc = (0, smithy_client_1.take)(data, {
558
572
  applicationArn: smithy_client_1.expectString,
573
+ options: smithy_client_1._json,
559
574
  resourceArn: smithy_client_1.expectString,
560
575
  });
561
576
  Object.assign(contents, doc);
@@ -859,6 +874,7 @@ const de_GetApplicationCommand = async (output, context) => {
859
874
  });
860
875
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
861
876
  const doc = (0, smithy_client_1.take)(data, {
877
+ applicationTag: smithy_client_1._json,
862
878
  arn: smithy_client_1.expectString,
863
879
  associatedResourceCount: smithy_client_1.expectInt32,
864
880
  creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
@@ -910,6 +926,8 @@ const de_GetAssociatedResourceCommand = async (output, context) => {
910
926
  });
911
927
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
912
928
  const doc = (0, smithy_client_1.take)(data, {
929
+ applicationTagResult: smithy_client_1._json,
930
+ options: smithy_client_1._json,
913
931
  resource: (_) => de_Resource(_, context),
914
932
  });
915
933
  Object.assign(contents, doc);
@@ -1592,6 +1610,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1592
1610
  };
1593
1611
  const de_Application = (output, context) => {
1594
1612
  return (0, smithy_client_1.take)(output, {
1613
+ applicationTag: smithy_client_1._json,
1595
1614
  arn: smithy_client_1.expectString,
1596
1615
  creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1597
1616
  description: smithy_client_1.expectString,
@@ -1,4 +1,9 @@
1
1
  import { ServiceCatalogAppRegistryServiceException as __BaseException } from "./ServiceCatalogAppRegistryServiceException";
2
+ export const ApplicationTagStatus = {
3
+ FAILURE: "FAILURE",
4
+ IN_PROGRESS: "IN_PROGRESS",
5
+ SUCCESS: "SUCCESS",
6
+ };
2
7
  export class ConflictException extends __BaseException {
3
8
  constructor(opts) {
4
9
  super({
@@ -59,6 +64,10 @@ export class ValidationException extends __BaseException {
59
64
  Object.setPrototypeOf(this, ValidationException.prototype);
60
65
  }
61
66
  }
67
+ export const AssociationOption = {
68
+ APPLY_APPLICATION_TAG: "APPLY_APPLICATION_TAG",
69
+ SKIP_APPLICATION_TAG: "SKIP_APPLICATION_TAG",
70
+ };
62
71
  export const ResourceType = {
63
72
  CFN_STACK: "CFN_STACK",
64
73
  RESOURCE_TAG_VALUE: "RESOURCE_TAG_VALUE",
@@ -84,6 +93,12 @@ export const ResourceGroupState = {
84
93
  UPDATE_FAILED: "UPDATE_FAILED",
85
94
  UPDATING: "UPDATING",
86
95
  };
96
+ export const ResourceItemStatus = {
97
+ FAILED: "FAILED",
98
+ IN_PROGRESS: "IN_PROGRESS",
99
+ SKIPPED: "SKIPPED",
100
+ SUCCESS: "SUCCESS",
101
+ };
87
102
  export const SyncAction = {
88
103
  NO_ACTION: "NO_ACTION",
89
104
  START_SYNC: "START_SYNC",
@@ -23,13 +23,18 @@ export const se_AssociateAttributeGroupCommand = async (input, context) => {
23
23
  };
24
24
  export const se_AssociateResourceCommand = async (input, context) => {
25
25
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
26
- const headers = {};
26
+ const headers = {
27
+ "content-type": "application/json",
28
+ };
27
29
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
28
30
  "/applications/{application}/resources/{resourceType}/{resource}";
29
31
  resolvedPath = __resolvedPath(resolvedPath, input, "application", () => input.application, "{application}", false);
30
32
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceType", () => input.resourceType, "{resourceType}", false);
31
33
  resolvedPath = __resolvedPath(resolvedPath, input, "resource", () => input.resource, "{resource}", false);
32
34
  let body;
35
+ body = JSON.stringify(take(input, {
36
+ options: (_) => _json(_),
37
+ }));
33
38
  return new __HttpRequest({
34
39
  protocol,
35
40
  hostname,
@@ -180,6 +185,14 @@ export const se_GetAssociatedResourceCommand = async (input, context) => {
180
185
  resolvedPath = __resolvedPath(resolvedPath, input, "application", () => input.application, "{application}", false);
181
186
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceType", () => input.resourceType, "{resourceType}", false);
182
187
  resolvedPath = __resolvedPath(resolvedPath, input, "resource", () => input.resource, "{resource}", false);
188
+ const query = map({
189
+ nextToken: [, input.nextToken],
190
+ resourceTagStatus: [
191
+ () => input.resourceTagStatus !== void 0,
192
+ () => (input.resourceTagStatus || []).map((_entry) => _entry),
193
+ ],
194
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
195
+ });
183
196
  let body;
184
197
  return new __HttpRequest({
185
198
  protocol,
@@ -188,6 +201,7 @@ export const se_GetAssociatedResourceCommand = async (input, context) => {
188
201
  method: "GET",
189
202
  headers,
190
203
  path: resolvedPath,
204
+ query,
191
205
  body,
192
206
  });
193
207
  };
@@ -528,6 +542,7 @@ export const de_AssociateResourceCommand = async (output, context) => {
528
542
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
529
543
  const doc = take(data, {
530
544
  applicationArn: __expectString,
545
+ options: _json,
531
546
  resourceArn: __expectString,
532
547
  });
533
548
  Object.assign(contents, doc);
@@ -824,6 +839,7 @@ export const de_GetApplicationCommand = async (output, context) => {
824
839
  });
825
840
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
826
841
  const doc = take(data, {
842
+ applicationTag: _json,
827
843
  arn: __expectString,
828
844
  associatedResourceCount: __expectInt32,
829
845
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
@@ -874,6 +890,8 @@ export const de_GetAssociatedResourceCommand = async (output, context) => {
874
890
  });
875
891
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
876
892
  const doc = take(data, {
893
+ applicationTagResult: _json,
894
+ options: _json,
877
895
  resource: (_) => de_Resource(_, context),
878
896
  });
879
897
  Object.assign(contents, doc);
@@ -1541,6 +1559,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1541
1559
  };
1542
1560
  const de_Application = (output, context) => {
1543
1561
  return take(output, {
1562
+ applicationTag: _json,
1544
1563
  arn: __expectString,
1545
1564
  creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1546
1565
  description: __expectString,
@@ -24,13 +24,55 @@ export interface AssociateResourceCommandOutput extends AssociateResourceRespons
24
24
  /**
25
25
  * @public
26
26
  * <p>
27
- * Associates a resource
28
- * with an application.
29
- * The resource can be specified
30
- * by its ARN or name.
31
- * The application can be specified
32
- * by ARN, ID, or name.
27
+ * Associates a resource with an application.
28
+ * The resource can be specified by its ARN or name.
29
+ * The application can be specified by ARN, ID, or name.
33
30
  * </p>
31
+ * <p>
32
+ * <b>Minimum permissions</b>
33
+ * </p>
34
+ * <p>
35
+ * You must have the following permissions to associate a resource using the <code>OPTIONS</code> parameter set to <code>APPLY_APPLICATION_TAG</code>.
36
+ * </p>
37
+ * <ul>
38
+ * <li>
39
+ * <p>
40
+ * <code>tag:GetResources</code>
41
+ * </p>
42
+ * </li>
43
+ * <li>
44
+ * <p>
45
+ * <code>tag:TagResources</code>
46
+ * </p>
47
+ * </li>
48
+ * </ul>
49
+ * <p>
50
+ * You must also have these additional permissions if you don't use the <code>AWSServiceCatalogAppRegistryFullAccess</code> policy.
51
+ * For more information, see <a href="https://docs.aws.amazon.com/servicecatalog/latest/arguide/full.html">AWSServiceCatalogAppRegistryFullAccess</a> in the AppRegistry Administrator Guide.
52
+ * </p>
53
+ * <ul>
54
+ * <li>
55
+ * <p>
56
+ * <code>resource-groups:DisassociateResource</code>
57
+ * </p>
58
+ * </li>
59
+ * <li>
60
+ * <p>
61
+ * <code>cloudformation:UpdateStack</code>
62
+ * </p>
63
+ * </li>
64
+ * <li>
65
+ * <p>
66
+ * <code>cloudformation:DescribeStacks</code>
67
+ * </p>
68
+ * </li>
69
+ * </ul>
70
+ * <note>
71
+ * <p>
72
+ * In addition, you must have the tagging permission defined by the Amazon Web Services service that creates the resource.
73
+ * For more information, see <a href="https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_TagResources.html">TagResources</a> in the <i>Resource Groups Tagging API Reference</i>.
74
+ * </p>
75
+ * </note>
34
76
  * @example
35
77
  * Use a bare-bones client and the command you need to make an API call.
36
78
  * ```javascript
@@ -41,12 +83,18 @@ export interface AssociateResourceCommandOutput extends AssociateResourceRespons
41
83
  * application: "STRING_VALUE", // required
42
84
  * resourceType: "CFN_STACK" || "RESOURCE_TAG_VALUE", // required
43
85
  * resource: "STRING_VALUE", // required
86
+ * options: [ // Options
87
+ * "APPLY_APPLICATION_TAG" || "SKIP_APPLICATION_TAG",
88
+ * ],
44
89
  * };
45
90
  * const command = new AssociateResourceCommand(input);
46
91
  * const response = await client.send(command);
47
92
  * // { // AssociateResourceResponse
48
93
  * // applicationArn: "STRING_VALUE",
49
94
  * // resourceArn: "STRING_VALUE",
95
+ * // options: [ // Options
96
+ * // "APPLY_APPLICATION_TAG" || "SKIP_APPLICATION_TAG",
97
+ * // ],
50
98
  * // };
51
99
  *
52
100
  * ```
@@ -51,6 +51,9 @@ export interface CreateApplicationCommandOutput extends CreateApplicationRespons
51
51
  * // tags: { // Tags
52
52
  * // "<keys>": "STRING_VALUE",
53
53
  * // },
54
+ * // applicationTag: { // ApplicationTagDefinition
55
+ * // "<keys>": "STRING_VALUE",
56
+ * // },
54
57
  * // },
55
58
  * // };
56
59
  *
@@ -23,7 +23,55 @@ export interface DisassociateResourceCommandOutput extends DisassociateResourceR
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Disassociates a resource from application. Both the resource and the application can be specified either by ID or name.</p>
26
+ * <p>
27
+ * Disassociates a resource from application.
28
+ * Both the resource and the application can be specified either by ID or name.
29
+ * </p>
30
+ * <p>
31
+ * <b>Minimum permissions</b>
32
+ * </p>
33
+ * <p>
34
+ * You must have the following permissions to remove a resource that's been associated with an application using the <code>APPLY_APPLICATION_TAG</code> option for <a href="https://docs.aws.amazon.com/servicecatalog/latest/dg/API_app-registry_AssociateResource.html">AssociateResource</a>.
35
+ * </p>
36
+ * <ul>
37
+ * <li>
38
+ * <p>
39
+ * <code>tag:GetResources</code>
40
+ * </p>
41
+ * </li>
42
+ * <li>
43
+ * <p>
44
+ * <code>tag:UntagResources</code>
45
+ * </p>
46
+ * </li>
47
+ * </ul>
48
+ * <p>
49
+ * You must also have the following permissions if you don't use the <code>AWSServiceCatalogAppRegistryFullAccess</code> policy.
50
+ * For more information, see <a href="https://docs.aws.amazon.com/servicecatalog/latest/arguide/full.html">AWSServiceCatalogAppRegistryFullAccess</a> in the AppRegistry Administrator Guide.
51
+ * </p>
52
+ * <ul>
53
+ * <li>
54
+ * <p>
55
+ * <code>resource-groups:DisassociateResource</code>
56
+ * </p>
57
+ * </li>
58
+ * <li>
59
+ * <p>
60
+ * <code>cloudformation:UpdateStack</code>
61
+ * </p>
62
+ * </li>
63
+ * <li>
64
+ * <p>
65
+ * <code>cloudformation:DescribeStacks</code>
66
+ * </p>
67
+ * </li>
68
+ * </ul>
69
+ * <note>
70
+ * <p>
71
+ * In addition, you must have the tagging permission defined by the Amazon Web Services service that creates the resource.
72
+ * For more information, see <a href="https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_UntTagResources.html">UntagResources</a> in the <i>Resource Groups Tagging API Reference</i>.
73
+ * </p>
74
+ * </note>
27
75
  * @example
28
76
  * Use a bare-bones client and the command you need to make an API call.
29
77
  * ```javascript
@@ -70,6 +70,14 @@ export interface GetApplicationCommandOutput extends GetApplicationResponse, __M
70
70
  * // arn: "STRING_VALUE",
71
71
  * // errorMessage: "STRING_VALUE",
72
72
  * // },
73
+ * // applicationTagResourceGroup: {
74
+ * // state: "CREATING" || "CREATE_COMPLETE" || "CREATE_FAILED" || "UPDATING" || "UPDATE_COMPLETE" || "UPDATE_FAILED",
75
+ * // arn: "STRING_VALUE",
76
+ * // errorMessage: "STRING_VALUE",
77
+ * // },
78
+ * // },
79
+ * // applicationTag: { // ApplicationTagDefinition
80
+ * // "<keys>": "STRING_VALUE",
73
81
  * // },
74
82
  * // };
75
83
  *
@@ -34,6 +34,11 @@ export interface GetAssociatedResourceCommandOutput extends GetAssociatedResourc
34
34
  * application: "STRING_VALUE", // required
35
35
  * resourceType: "CFN_STACK" || "RESOURCE_TAG_VALUE", // required
36
36
  * resource: "STRING_VALUE", // required
37
+ * nextToken: "STRING_VALUE",
38
+ * resourceTagStatus: [ // GetAssociatedResourceFilter
39
+ * "SUCCESS" || "FAILED" || "IN_PROGRESS" || "SKIPPED",
40
+ * ],
41
+ * maxResults: Number("int"),
37
42
  * };
38
43
  * const command = new GetAssociatedResourceCommand(input);
39
44
  * const response = await client.send(command);
@@ -50,6 +55,22 @@ export interface GetAssociatedResourceCommandOutput extends GetAssociatedResourc
50
55
  * // },
51
56
  * // },
52
57
  * // },
58
+ * // options: [ // Options
59
+ * // "APPLY_APPLICATION_TAG" || "SKIP_APPLICATION_TAG",
60
+ * // ],
61
+ * // applicationTagResult: { // ApplicationTagResult
62
+ * // applicationTagStatus: "IN_PROGRESS" || "SUCCESS" || "FAILURE",
63
+ * // errorMessage: "STRING_VALUE",
64
+ * // resources: [ // ResourcesList
65
+ * // { // ResourcesListItem
66
+ * // resourceArn: "STRING_VALUE",
67
+ * // errorMessage: "STRING_VALUE",
68
+ * // status: "STRING_VALUE",
69
+ * // resourceType: "STRING_VALUE",
70
+ * // },
71
+ * // ],
72
+ * // nextToken: "STRING_VALUE",
73
+ * // },
53
74
  * // };
54
75
  *
55
76
  * ```
@@ -66,6 +66,9 @@ export interface ListAssociatedResourcesCommandOutput extends ListAssociatedReso
66
66
  * // resourceDetails: { // ResourceDetails
67
67
  * // tagValue: "STRING_VALUE",
68
68
  * // },
69
+ * // options: [ // Options
70
+ * // "APPLY_APPLICATION_TAG" || "SKIP_APPLICATION_TAG",
71
+ * // ],
69
72
  * // },
70
73
  * // ],
71
74
  * // nextToken: "STRING_VALUE",
@@ -48,6 +48,9 @@ export interface UpdateApplicationCommandOutput extends UpdateApplicationRespons
48
48
  * // tags: { // Tags
49
49
  * // "<keys>": "STRING_VALUE",
50
50
  * // },
51
+ * // applicationTag: { // ApplicationTagDefinition
52
+ * // "<keys>": "STRING_VALUE",
53
+ * // },
51
54
  * // },
52
55
  * // };
53
56
  *
@@ -41,6 +41,13 @@ export interface Application {
41
41
  * <p>Key-value pairs you can use to associate with the application.</p>
42
42
  */
43
43
  tags?: Record<string, string>;
44
+ /**
45
+ * @public
46
+ * <p>
47
+ * A key-value pair that identifies an associated resource.
48
+ * </p>
49
+ */
50
+ applicationTag?: Record<string, string>;
44
51
  }
45
52
  /**
46
53
  * @public
@@ -78,6 +85,91 @@ export interface ApplicationSummary {
78
85
  */
79
86
  lastUpdateTime?: Date;
80
87
  }
88
+ /**
89
+ * @public
90
+ * @enum
91
+ */
92
+ export declare const ApplicationTagStatus: {
93
+ readonly FAILURE: "FAILURE";
94
+ readonly IN_PROGRESS: "IN_PROGRESS";
95
+ readonly SUCCESS: "SUCCESS";
96
+ };
97
+ /**
98
+ * @public
99
+ */
100
+ export type ApplicationTagStatus = (typeof ApplicationTagStatus)[keyof typeof ApplicationTagStatus];
101
+ /**
102
+ * @public
103
+ * <p>
104
+ * The resource in a list of resources.
105
+ * </p>
106
+ */
107
+ export interface ResourcesListItem {
108
+ /**
109
+ * @public
110
+ * <p>
111
+ * The Amazon resource name (ARN) of the resource.
112
+ * </p>
113
+ */
114
+ resourceArn?: string;
115
+ /**
116
+ * @public
117
+ * <p>
118
+ * The message returned if the call fails.
119
+ * </p>
120
+ */
121
+ errorMessage?: string;
122
+ /**
123
+ * @public
124
+ * <p>
125
+ * The status of the list item.
126
+ * </p>
127
+ */
128
+ status?: string;
129
+ /**
130
+ * @public
131
+ * <p>
132
+ * Provides information about the AppRegistry resource type.
133
+ * </p>
134
+ */
135
+ resourceType?: string;
136
+ }
137
+ /**
138
+ * @public
139
+ * <p>
140
+ * The result of the application tag that's applied to a resource.
141
+ * </p>
142
+ */
143
+ export interface ApplicationTagResult {
144
+ /**
145
+ * @public
146
+ * <p>
147
+ * The application tag is in the process of being applied to a resource, was successfully applied to a resource, or failed to apply to a resource.
148
+ * </p>
149
+ */
150
+ applicationTagStatus?: ApplicationTagStatus;
151
+ /**
152
+ * @public
153
+ * <p>
154
+ * The message returned if the call fails.
155
+ * </p>
156
+ */
157
+ errorMessage?: string;
158
+ /**
159
+ * @public
160
+ * <p>
161
+ * The resources associated with an application
162
+ * </p>
163
+ */
164
+ resources?: ResourcesListItem[];
165
+ /**
166
+ * @public
167
+ * <p>
168
+ * A unique pagination token for each page of results. Make the call again with the returned token to retrieve the next page of results.
169
+ * </p>
170
+ */
171
+ nextToken?: string;
172
+ }
81
173
  /**
82
174
  * @public
83
175
  * <p>
@@ -219,6 +311,18 @@ export declare class ValidationException extends __BaseException {
219
311
  */
220
312
  constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
221
313
  }
314
+ /**
315
+ * @public
316
+ * @enum
317
+ */
318
+ export declare const AssociationOption: {
319
+ readonly APPLY_APPLICATION_TAG: "APPLY_APPLICATION_TAG";
320
+ readonly SKIP_APPLICATION_TAG: "SKIP_APPLICATION_TAG";
321
+ };
322
+ /**
323
+ * @public
324
+ */
325
+ export type AssociationOption = (typeof AssociationOption)[keyof typeof AssociationOption];
222
326
  /**
223
327
  * @public
224
328
  * @enum
@@ -253,6 +357,13 @@ export interface AssociateResourceRequest {
253
357
  * <p>The name or ID of the resource of which the application will be associated.</p>
254
358
  */
255
359
  resource: string | undefined;
360
+ /**
361
+ * @public
362
+ * <p>
363
+ * Determines whether an application tag is applied or skipped.
364
+ * </p>
365
+ */
366
+ options?: AssociationOption[];
256
367
  }
257
368
  /**
258
369
  * @public
@@ -268,6 +379,13 @@ export interface AssociateResourceResponse {
268
379
  * <p>The Amazon resource name (ARN) that specifies the resource.</p>
269
380
  */
270
381
  resourceArn?: string;
382
+ /**
383
+ * @public
384
+ * <p>
385
+ * Determines whether an application tag is applied or skipped.
386
+ * </p>
387
+ */
388
+ options?: AssociationOption[];
271
389
  }
272
390
  /**
273
391
  * @public
@@ -350,8 +468,6 @@ export interface AttributeGroupDetails {
350
468
  arn?: string;
351
469
  /**
352
470
  * @public
353
- * @deprecated
354
- *
355
471
  * <important>
356
472
  * <p>
357
473
  * This field is no longer supported.
@@ -685,6 +801,11 @@ export interface Integrations {
685
801
  * <p> The information about the resource group integration.</p>
686
802
  */
687
803
  resourceGroup?: ResourceGroup;
804
+ /**
805
+ * @public
806
+ * <p>The information about the resource group integration.</p>
807
+ */
808
+ applicationTagResourceGroup?: ResourceGroup;
688
809
  }
689
810
  /**
690
811
  * @public
@@ -742,7 +863,28 @@ export interface GetApplicationResponse {
742
863
  * </p>
743
864
  */
744
865
  integrations?: Integrations;
866
+ /**
867
+ * @public
868
+ * <p>
869
+ * A key-value pair that identifies an associated resource.
870
+ * </p>
871
+ */
872
+ applicationTag?: Record<string, string>;
745
873
  }
874
+ /**
875
+ * @public
876
+ * @enum
877
+ */
878
+ export declare const ResourceItemStatus: {
879
+ readonly FAILED: "FAILED";
880
+ readonly IN_PROGRESS: "IN_PROGRESS";
881
+ readonly SKIPPED: "SKIPPED";
882
+ readonly SUCCESS: "SUCCESS";
883
+ };
884
+ /**
885
+ * @public
886
+ */
887
+ export type ResourceItemStatus = (typeof ResourceItemStatus)[keyof typeof ResourceItemStatus];
746
888
  /**
747
889
  * @public
748
890
  */
@@ -765,6 +907,28 @@ export interface GetAssociatedResourceRequest {
765
907
  * <p>The name or ID of the resource associated with the application.</p>
766
908
  */
767
909
  resource: string | undefined;
910
+ /**
911
+ * @public
912
+ * <p>
913
+ * A unique pagination token for each page of results.
914
+ * Make the call again with the returned token to retrieve the next page of results.
915
+ * </p>
916
+ */
917
+ nextToken?: string;
918
+ /**
919
+ * @public
920
+ * <p>
921
+ * States whether an application tag is applied, not applied, in the process of being applied, or skipped.
922
+ * </p>
923
+ */
924
+ resourceTagStatus?: ResourceItemStatus[];
925
+ /**
926
+ * @public
927
+ * <p>
928
+ * The maximum number of results to return. If the parameter is omitted, it defaults to 25. The value is optional.
929
+ * </p>
930
+ */
931
+ maxResults?: number;
768
932
  }
769
933
  /**
770
934
  * @public
@@ -813,6 +977,20 @@ export interface GetAssociatedResourceResponse {
813
977
  * <p>The resource associated with the application.</p>
814
978
  */
815
979
  resource?: Resource;
980
+ /**
981
+ * @public
982
+ * <p>
983
+ * Determines whether an application tag is applied or skipped.
984
+ * </p>
985
+ */
986
+ options?: AssociationOption[];
987
+ /**
988
+ * @public
989
+ * <p>
990
+ * The result of the application that's tag applied to a resource.
991
+ * </p>
992
+ */
993
+ applicationTagResult?: ApplicationTagResult;
816
994
  }
817
995
  /**
818
996
  * @public
@@ -1028,6 +1206,13 @@ export interface ResourceInfo {
1028
1206
  * </p>
1029
1207
  */
1030
1208
  resourceDetails?: ResourceDetails;
1209
+ /**
1210
+ * @public
1211
+ * <p>
1212
+ * Determines whether an application tag is applied or skipped.
1213
+ * </p>
1214
+ */
1215
+ options?: AssociationOption[];
1031
1216
  }
1032
1217
  /**
1033
1218
  * @public
@@ -8,6 +8,7 @@ export interface Application {
8
8
  creationTime?: Date;
9
9
  lastUpdateTime?: Date;
10
10
  tags?: Record<string, string>;
11
+ applicationTag?: Record<string, string>;
11
12
  }
12
13
  export interface ApplicationSummary {
13
14
  id?: string;
@@ -17,6 +18,25 @@ export interface ApplicationSummary {
17
18
  creationTime?: Date;
18
19
  lastUpdateTime?: Date;
19
20
  }
21
+ export declare const ApplicationTagStatus: {
22
+ readonly FAILURE: "FAILURE";
23
+ readonly IN_PROGRESS: "IN_PROGRESS";
24
+ readonly SUCCESS: "SUCCESS";
25
+ };
26
+ export type ApplicationTagStatus =
27
+ (typeof ApplicationTagStatus)[keyof typeof ApplicationTagStatus];
28
+ export interface ResourcesListItem {
29
+ resourceArn?: string;
30
+ errorMessage?: string;
31
+ status?: string;
32
+ resourceType?: string;
33
+ }
34
+ export interface ApplicationTagResult {
35
+ applicationTagStatus?: ApplicationTagStatus;
36
+ errorMessage?: string;
37
+ resources?: ResourcesListItem[];
38
+ nextToken?: string;
39
+ }
20
40
  export interface TagQueryConfiguration {
21
41
  tagKey?: string;
22
42
  }
@@ -64,6 +84,12 @@ export declare class ValidationException extends __BaseException {
64
84
  opts: __ExceptionOptionType<ValidationException, __BaseException>
65
85
  );
66
86
  }
87
+ export declare const AssociationOption: {
88
+ readonly APPLY_APPLICATION_TAG: "APPLY_APPLICATION_TAG";
89
+ readonly SKIP_APPLICATION_TAG: "SKIP_APPLICATION_TAG";
90
+ };
91
+ export type AssociationOption =
92
+ (typeof AssociationOption)[keyof typeof AssociationOption];
67
93
  export declare const ResourceType: {
68
94
  readonly CFN_STACK: "CFN_STACK";
69
95
  readonly RESOURCE_TAG_VALUE: "RESOURCE_TAG_VALUE";
@@ -73,10 +99,12 @@ export interface AssociateResourceRequest {
73
99
  application: string | undefined;
74
100
  resourceType: ResourceType | undefined;
75
101
  resource: string | undefined;
102
+ options?: AssociationOption[];
76
103
  }
77
104
  export interface AssociateResourceResponse {
78
105
  applicationArn?: string;
79
106
  resourceArn?: string;
107
+ options?: AssociationOption[];
80
108
  }
81
109
  export declare class ThrottlingException extends __BaseException {
82
110
  readonly name: "ThrottlingException";
@@ -178,6 +206,7 @@ export interface ResourceGroup {
178
206
  }
179
207
  export interface Integrations {
180
208
  resourceGroup?: ResourceGroup;
209
+ applicationTagResourceGroup?: ResourceGroup;
181
210
  }
182
211
  export interface GetApplicationResponse {
183
212
  id?: string;
@@ -189,11 +218,23 @@ export interface GetApplicationResponse {
189
218
  associatedResourceCount?: number;
190
219
  tags?: Record<string, string>;
191
220
  integrations?: Integrations;
221
+ applicationTag?: Record<string, string>;
192
222
  }
223
+ export declare const ResourceItemStatus: {
224
+ readonly FAILED: "FAILED";
225
+ readonly IN_PROGRESS: "IN_PROGRESS";
226
+ readonly SKIPPED: "SKIPPED";
227
+ readonly SUCCESS: "SUCCESS";
228
+ };
229
+ export type ResourceItemStatus =
230
+ (typeof ResourceItemStatus)[keyof typeof ResourceItemStatus];
193
231
  export interface GetAssociatedResourceRequest {
194
232
  application: string | undefined;
195
233
  resourceType: ResourceType | undefined;
196
234
  resource: string | undefined;
235
+ nextToken?: string;
236
+ resourceTagStatus?: ResourceItemStatus[];
237
+ maxResults?: number;
197
238
  }
198
239
  export interface ResourceIntegrations {
199
240
  resourceGroup?: ResourceGroup;
@@ -206,6 +247,8 @@ export interface Resource {
206
247
  }
207
248
  export interface GetAssociatedResourceResponse {
208
249
  resource?: Resource;
250
+ options?: AssociationOption[];
251
+ applicationTagResult?: ApplicationTagResult;
209
252
  }
210
253
  export interface GetAttributeGroupRequest {
211
254
  attributeGroup: string | undefined;
@@ -254,6 +297,7 @@ export interface ResourceInfo {
254
297
  arn?: string;
255
298
  resourceType?: ResourceType;
256
299
  resourceDetails?: ResourceDetails;
300
+ options?: AssociationOption[];
257
301
  }
258
302
  export interface ListAssociatedResourcesResponse {
259
303
  resources?: ResourceInfo[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-service-catalog-appregistry",
3
3
  "description": "AWS SDK for JavaScript Service Catalog Appregistry Client for Node.js, Browser and React Native",
4
- "version": "3.449.0",
4
+ "version": "3.450.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.449.0",
24
+ "@aws-sdk/client-sts": "3.450.0",
25
25
  "@aws-sdk/core": "3.445.0",
26
- "@aws-sdk/credential-provider-node": "3.449.0",
26
+ "@aws-sdk/credential-provider-node": "3.450.0",
27
27
  "@aws-sdk/middleware-host-header": "3.449.0",
28
28
  "@aws-sdk/middleware-logger": "3.449.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.449.0",