@aws-sdk/client-resource-groups-tagging-api 3.32.0 → 3.36.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/CHANGELOG.md +44 -0
- package/{dist/cjs → dist-cjs}/ResourceGroupsTaggingAPI.js +1 -2
- package/{dist/cjs → dist-cjs}/ResourceGroupsTaggingAPIClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/DescribeReportCreationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetComplianceSummaryCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetResourcesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetTagKeysCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetTagValuesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StartReportCreationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagResourcesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagResourcesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/GetComplianceSummaryPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/GetResourcesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/GetTagKeysPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/GetTagValuesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/ResourceGroupsTaggingAPI.js +2 -6
- package/{dist/es → dist-es}/ResourceGroupsTaggingAPIClient.js +2 -11
- package/{dist/es → dist-es}/commands/DescribeReportCreationCommand.js +4 -32
- package/dist-es/commands/GetComplianceSummaryCommand.js +39 -0
- package/dist-es/commands/GetResourcesCommand.js +39 -0
- package/dist-es/commands/GetTagKeysCommand.js +39 -0
- package/dist-es/commands/GetTagValuesCommand.js +39 -0
- package/{dist/es → dist-es}/commands/StartReportCreationCommand.js +4 -38
- package/dist-es/commands/TagResourcesCommand.js +39 -0
- package/dist-es/commands/UntagResourcesCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -85
- package/{dist/es → dist-es}/pagination/GetComplianceSummaryPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/GetResourcesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/GetTagKeysPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/GetTagValuesPaginator.js +17 -30
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +188 -194
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/ResourceGroupsTaggingAPI.d.ts +2 -2
- package/{dist/types → dist-types}/ResourceGroupsTaggingAPIClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/DescribeReportCreationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetComplianceSummaryCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetTagKeysCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetTagValuesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/StartReportCreationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/TagResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UntagResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/GetComplianceSummaryPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetTagKeysPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetTagValuesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/ResourceGroupsTaggingAPI.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/ResourceGroupsTaggingAPIClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/DescribeReportCreationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetComplianceSummaryCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetTagKeysCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetTagValuesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/StartReportCreationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/TagResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourcesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/GetComplianceSummaryPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetResourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetTagKeysPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetTagValuesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/ResourceGroupsTaggingAPI.ts +0 -385
- package/ResourceGroupsTaggingAPIClient.ts +0 -269
- package/commands/DescribeReportCreationCommand.ts +0 -100
- package/commands/GetComplianceSummaryCommand.ts +0 -110
- package/commands/GetResourcesCommand.ts +0 -121
- package/commands/GetTagKeysCommand.ts +0 -105
- package/commands/GetTagValuesCommand.ts +0 -105
- package/commands/StartReportCreationCommand.ts +0 -106
- package/commands/TagResourcesCommand.ts +0 -125
- package/commands/UntagResourcesCommand.ts +0 -113
- package/dist/cjs/ResourceGroupsTaggingAPI.js.map +0 -1
- package/dist/cjs/ResourceGroupsTaggingAPIClient.js.map +0 -1
- package/dist/cjs/commands/DescribeReportCreationCommand.js.map +0 -1
- package/dist/cjs/commands/GetComplianceSummaryCommand.js.map +0 -1
- package/dist/cjs/commands/GetResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/GetTagKeysCommand.js.map +0 -1
- package/dist/cjs/commands/GetTagValuesCommand.js.map +0 -1
- package/dist/cjs/commands/StartReportCreationCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourcesCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourcesCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/GetComplianceSummaryPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetResourcesPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetTagKeysPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetTagValuesPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/ResourceGroupsTaggingAPI.js.map +0 -1
- package/dist/es/ResourceGroupsTaggingAPIClient.js.map +0 -1
- package/dist/es/commands/DescribeReportCreationCommand.js.map +0 -1
- package/dist/es/commands/GetComplianceSummaryCommand.js +0 -77
- package/dist/es/commands/GetComplianceSummaryCommand.js.map +0 -1
- package/dist/es/commands/GetResourcesCommand.js +0 -88
- package/dist/es/commands/GetResourcesCommand.js.map +0 -1
- package/dist/es/commands/GetTagKeysCommand.js +0 -72
- package/dist/es/commands/GetTagKeysCommand.js.map +0 -1
- package/dist/es/commands/GetTagValuesCommand.js +0 -72
- package/dist/es/commands/GetTagValuesCommand.js.map +0 -1
- package/dist/es/commands/StartReportCreationCommand.js.map +0 -1
- package/dist/es/commands/TagResourcesCommand.js +0 -92
- package/dist/es/commands/TagResourcesCommand.js.map +0 -1
- package/dist/es/commands/UntagResourcesCommand.js +0 -80
- package/dist/es/commands/UntagResourcesCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -17
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/GetComplianceSummaryPaginator.js.map +0 -1
- package/dist/es/pagination/GetResourcesPaginator.js.map +0 -1
- package/dist/es/pagination/GetTagKeysPaginator.js.map +0 -1
- package/dist/es/pagination/GetTagValuesPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -947
- package/pagination/GetComplianceSummaryPaginator.ts +0 -58
- package/pagination/GetResourcesPaginator.ts +0 -58
- package/pagination/GetTagKeysPaginator.ts +0 -53
- package/pagination/GetTagValuesPaginator.ts +0 -57
- package/pagination/Interfaces.ts +0 -7
- package/protocols/Aws_json1_1.ts +0 -1448
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetTagKeysInput, GetTagKeysOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetTagKeysCommand, serializeAws_json1_1GetTagKeysCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var GetTagKeysCommand = (function (_super) {
|
|
7
|
+
__extends(GetTagKeysCommand, _super);
|
|
8
|
+
function GetTagKeysCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetTagKeysCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ResourceGroupsTaggingAPIClient";
|
|
18
|
+
var commandName = "GetTagKeysCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetTagKeysInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetTagKeysOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetTagKeysCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1GetTagKeysCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetTagKeysCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1GetTagKeysCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetTagKeysCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetTagKeysCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetTagValuesInput, GetTagValuesOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetTagValuesCommand, serializeAws_json1_1GetTagValuesCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var GetTagValuesCommand = (function (_super) {
|
|
7
|
+
__extends(GetTagValuesCommand, _super);
|
|
8
|
+
function GetTagValuesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetTagValuesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ResourceGroupsTaggingAPIClient";
|
|
18
|
+
var commandName = "GetTagValuesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetTagValuesInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetTagValuesOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetTagValuesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1GetTagValuesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetTagValuesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1GetTagValuesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetTagValuesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetTagValuesCommand };
|
|
@@ -1,48 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { StartReportCreationInput, StartReportCreationOutput } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1StartReportCreationCommand, serializeAws_json1_1StartReportCreationCommand, } from "../protocols/Aws_json1_1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* Compliance data is refreshed daily. The report is generated asynchronously.</p>
|
|
10
|
-
* <p>The generated report is saved to the following location:</p>
|
|
11
|
-
* <p>
|
|
12
|
-
* <code>s3://example-bucket/AwsTagPolicies/o-exampleorgid/YYYY-MM-ddTHH:mm:ssZ/report.csv</code>
|
|
13
|
-
* </p>
|
|
14
|
-
* <p>You can call this operation only from the organization's
|
|
15
|
-
* management account and from the us-east-1 Region.</p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { ResourceGroupsTaggingAPIClient, StartReportCreationCommand } from "@aws-sdk/client-resource-groups-tagging-api"; // ES Modules import
|
|
20
|
-
* // const { ResourceGroupsTaggingAPIClient, StartReportCreationCommand } = require("@aws-sdk/client-resource-groups-tagging-api"); // CommonJS import
|
|
21
|
-
* const client = new ResourceGroupsTaggingAPIClient(config);
|
|
22
|
-
* const command = new StartReportCreationCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link StartReportCreationCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link StartReportCreationCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link ResourceGroupsTaggingAPIClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
var StartReportCreationCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { StartReportCreationInput, StartReportCreationOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1StartReportCreationCommand, serializeAws_json1_1StartReportCreationCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var StartReportCreationCommand = (function (_super) {
|
|
32
7
|
__extends(StartReportCreationCommand, _super);
|
|
33
|
-
// Start section: command_properties
|
|
34
|
-
// End section: command_properties
|
|
35
8
|
function StartReportCreationCommand(input) {
|
|
36
|
-
var _this =
|
|
37
|
-
// Start section: command_constructor
|
|
38
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
39
10
|
_this.input = input;
|
|
40
11
|
return _this;
|
|
41
|
-
// End section: command_constructor
|
|
42
12
|
}
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
46
13
|
StartReportCreationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
47
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
48
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -70,4 +37,3 @@ var StartReportCreationCommand = /** @class */ (function (_super) {
|
|
|
70
37
|
return StartReportCreationCommand;
|
|
71
38
|
}($Command));
|
|
72
39
|
export { StartReportCreationCommand };
|
|
73
|
-
//# sourceMappingURL=StartReportCreationCommand.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { TagResourcesInput, TagResourcesOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1TagResourcesCommand, serializeAws_json1_1TagResourcesCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var TagResourcesCommand = (function (_super) {
|
|
7
|
+
__extends(TagResourcesCommand, _super);
|
|
8
|
+
function TagResourcesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
TagResourcesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ResourceGroupsTaggingAPIClient";
|
|
18
|
+
var commandName = "TagResourcesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: TagResourcesInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: TagResourcesOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
TagResourcesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1TagResourcesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
TagResourcesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1TagResourcesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return TagResourcesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { TagResourcesCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UntagResourcesInput, UntagResourcesOutput } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1UntagResourcesCommand, serializeAws_json1_1UntagResourcesCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var UntagResourcesCommand = (function (_super) {
|
|
7
|
+
__extends(UntagResourcesCommand, _super);
|
|
8
|
+
function UntagResourcesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UntagResourcesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ResourceGroupsTaggingAPIClient";
|
|
18
|
+
var commandName = "UntagResourcesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UntagResourcesInput.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UntagResourcesOutput.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UntagResourcesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1UntagResourcesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UntagResourcesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1UntagResourcesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UntagResourcesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UntagResourcesCommand };
|
|
@@ -47,7 +47,6 @@ var partitionHash = {
|
|
|
47
47
|
};
|
|
48
48
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
|
-
return [2
|
|
50
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "tagging", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
51
51
|
});
|
|
52
52
|
}); };
|
|
53
|
-
//# sourceMappingURL=endpoints.js.map
|
|
File without changes
|
|
File without changes
|
|
@@ -1,58 +1,34 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
export var ComplianceDetails;
|
|
3
3
|
(function (ComplianceDetails) {
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
4
|
ComplianceDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
8
5
|
})(ComplianceDetails || (ComplianceDetails = {}));
|
|
9
6
|
export var ConcurrentModificationException;
|
|
10
7
|
(function (ConcurrentModificationException) {
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
8
|
ConcurrentModificationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
15
9
|
})(ConcurrentModificationException || (ConcurrentModificationException = {}));
|
|
16
10
|
export var ConstraintViolationException;
|
|
17
11
|
(function (ConstraintViolationException) {
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
12
|
ConstraintViolationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
22
13
|
})(ConstraintViolationException || (ConstraintViolationException = {}));
|
|
23
14
|
export var DescribeReportCreationInput;
|
|
24
15
|
(function (DescribeReportCreationInput) {
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
16
|
DescribeReportCreationInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
17
|
})(DescribeReportCreationInput || (DescribeReportCreationInput = {}));
|
|
30
18
|
export var DescribeReportCreationOutput;
|
|
31
19
|
(function (DescribeReportCreationOutput) {
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
20
|
DescribeReportCreationOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
36
21
|
})(DescribeReportCreationOutput || (DescribeReportCreationOutput = {}));
|
|
37
22
|
export var InternalServiceException;
|
|
38
23
|
(function (InternalServiceException) {
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
24
|
InternalServiceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
43
25
|
})(InternalServiceException || (InternalServiceException = {}));
|
|
44
26
|
export var InvalidParameterException;
|
|
45
27
|
(function (InvalidParameterException) {
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
28
|
InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
50
29
|
})(InvalidParameterException || (InvalidParameterException = {}));
|
|
51
30
|
export var ThrottledException;
|
|
52
31
|
(function (ThrottledException) {
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
32
|
ThrottledException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
57
33
|
})(ThrottledException || (ThrottledException = {}));
|
|
58
34
|
export var ErrorCode;
|
|
@@ -62,9 +38,6 @@ export var ErrorCode;
|
|
|
62
38
|
})(ErrorCode || (ErrorCode = {}));
|
|
63
39
|
export var FailureInfo;
|
|
64
40
|
(function (FailureInfo) {
|
|
65
|
-
/**
|
|
66
|
-
* @internal
|
|
67
|
-
*/
|
|
68
41
|
FailureInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
69
42
|
})(FailureInfo || (FailureInfo = {}));
|
|
70
43
|
export var GroupByAttribute;
|
|
@@ -75,9 +48,6 @@ export var GroupByAttribute;
|
|
|
75
48
|
})(GroupByAttribute || (GroupByAttribute = {}));
|
|
76
49
|
export var GetComplianceSummaryInput;
|
|
77
50
|
(function (GetComplianceSummaryInput) {
|
|
78
|
-
/**
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
81
51
|
GetComplianceSummaryInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
82
52
|
})(GetComplianceSummaryInput || (GetComplianceSummaryInput = {}));
|
|
83
53
|
export var TargetIdType;
|
|
@@ -88,128 +58,73 @@ export var TargetIdType;
|
|
|
88
58
|
})(TargetIdType || (TargetIdType = {}));
|
|
89
59
|
export var Summary;
|
|
90
60
|
(function (Summary) {
|
|
91
|
-
/**
|
|
92
|
-
* @internal
|
|
93
|
-
*/
|
|
94
61
|
Summary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
95
62
|
})(Summary || (Summary = {}));
|
|
96
63
|
export var GetComplianceSummaryOutput;
|
|
97
64
|
(function (GetComplianceSummaryOutput) {
|
|
98
|
-
/**
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
65
|
GetComplianceSummaryOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
102
66
|
})(GetComplianceSummaryOutput || (GetComplianceSummaryOutput = {}));
|
|
103
67
|
export var TagFilter;
|
|
104
68
|
(function (TagFilter) {
|
|
105
|
-
/**
|
|
106
|
-
* @internal
|
|
107
|
-
*/
|
|
108
69
|
TagFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
109
70
|
})(TagFilter || (TagFilter = {}));
|
|
110
71
|
export var GetResourcesInput;
|
|
111
72
|
(function (GetResourcesInput) {
|
|
112
|
-
/**
|
|
113
|
-
* @internal
|
|
114
|
-
*/
|
|
115
73
|
GetResourcesInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
116
74
|
})(GetResourcesInput || (GetResourcesInput = {}));
|
|
117
75
|
export var Tag;
|
|
118
76
|
(function (Tag) {
|
|
119
|
-
/**
|
|
120
|
-
* @internal
|
|
121
|
-
*/
|
|
122
77
|
Tag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
123
78
|
})(Tag || (Tag = {}));
|
|
124
79
|
export var ResourceTagMapping;
|
|
125
80
|
(function (ResourceTagMapping) {
|
|
126
|
-
/**
|
|
127
|
-
* @internal
|
|
128
|
-
*/
|
|
129
81
|
ResourceTagMapping.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
130
82
|
})(ResourceTagMapping || (ResourceTagMapping = {}));
|
|
131
83
|
export var GetResourcesOutput;
|
|
132
84
|
(function (GetResourcesOutput) {
|
|
133
|
-
/**
|
|
134
|
-
* @internal
|
|
135
|
-
*/
|
|
136
85
|
GetResourcesOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
137
86
|
})(GetResourcesOutput || (GetResourcesOutput = {}));
|
|
138
87
|
export var PaginationTokenExpiredException;
|
|
139
88
|
(function (PaginationTokenExpiredException) {
|
|
140
|
-
/**
|
|
141
|
-
* @internal
|
|
142
|
-
*/
|
|
143
89
|
PaginationTokenExpiredException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
144
90
|
})(PaginationTokenExpiredException || (PaginationTokenExpiredException = {}));
|
|
145
91
|
export var GetTagKeysInput;
|
|
146
92
|
(function (GetTagKeysInput) {
|
|
147
|
-
/**
|
|
148
|
-
* @internal
|
|
149
|
-
*/
|
|
150
93
|
GetTagKeysInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
151
94
|
})(GetTagKeysInput || (GetTagKeysInput = {}));
|
|
152
95
|
export var GetTagKeysOutput;
|
|
153
96
|
(function (GetTagKeysOutput) {
|
|
154
|
-
/**
|
|
155
|
-
* @internal
|
|
156
|
-
*/
|
|
157
97
|
GetTagKeysOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
158
98
|
})(GetTagKeysOutput || (GetTagKeysOutput = {}));
|
|
159
99
|
export var GetTagValuesInput;
|
|
160
100
|
(function (GetTagValuesInput) {
|
|
161
|
-
/**
|
|
162
|
-
* @internal
|
|
163
|
-
*/
|
|
164
101
|
GetTagValuesInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
165
102
|
})(GetTagValuesInput || (GetTagValuesInput = {}));
|
|
166
103
|
export var GetTagValuesOutput;
|
|
167
104
|
(function (GetTagValuesOutput) {
|
|
168
|
-
/**
|
|
169
|
-
* @internal
|
|
170
|
-
*/
|
|
171
105
|
GetTagValuesOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
172
106
|
})(GetTagValuesOutput || (GetTagValuesOutput = {}));
|
|
173
107
|
export var StartReportCreationInput;
|
|
174
108
|
(function (StartReportCreationInput) {
|
|
175
|
-
/**
|
|
176
|
-
* @internal
|
|
177
|
-
*/
|
|
178
109
|
StartReportCreationInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
179
110
|
})(StartReportCreationInput || (StartReportCreationInput = {}));
|
|
180
111
|
export var StartReportCreationOutput;
|
|
181
112
|
(function (StartReportCreationOutput) {
|
|
182
|
-
/**
|
|
183
|
-
* @internal
|
|
184
|
-
*/
|
|
185
113
|
StartReportCreationOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
186
114
|
})(StartReportCreationOutput || (StartReportCreationOutput = {}));
|
|
187
115
|
export var TagResourcesInput;
|
|
188
116
|
(function (TagResourcesInput) {
|
|
189
|
-
/**
|
|
190
|
-
* @internal
|
|
191
|
-
*/
|
|
192
117
|
TagResourcesInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
193
118
|
})(TagResourcesInput || (TagResourcesInput = {}));
|
|
194
119
|
export var TagResourcesOutput;
|
|
195
120
|
(function (TagResourcesOutput) {
|
|
196
|
-
/**
|
|
197
|
-
* @internal
|
|
198
|
-
*/
|
|
199
121
|
TagResourcesOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
200
122
|
})(TagResourcesOutput || (TagResourcesOutput = {}));
|
|
201
123
|
export var UntagResourcesInput;
|
|
202
124
|
(function (UntagResourcesInput) {
|
|
203
|
-
/**
|
|
204
|
-
* @internal
|
|
205
|
-
*/
|
|
206
125
|
UntagResourcesInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
207
126
|
})(UntagResourcesInput || (UntagResourcesInput = {}));
|
|
208
127
|
export var UntagResourcesOutput;
|
|
209
128
|
(function (UntagResourcesOutput) {
|
|
210
|
-
/**
|
|
211
|
-
* @internal
|
|
212
|
-
*/
|
|
213
129
|
UntagResourcesOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
214
130
|
})(UntagResourcesOutput || (UntagResourcesOutput = {}));
|
|
215
|
-
//# sourceMappingURL=models_0.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { GetComplianceSummaryCommand, } from "../commands/GetComplianceSummaryCommand";
|
|
2
3
|
import { ResourceGroupsTaggingAPI } from "../ResourceGroupsTaggingAPI";
|
|
3
4
|
import { ResourceGroupsTaggingAPIClient } from "../ResourceGroupsTaggingAPIClient";
|
|
4
|
-
import { GetComplianceSummaryCommand, } from "../commands/GetComplianceSummaryCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetComplianceSummaryCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.getComplianceSummary.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,34 +44,31 @@ export function paginateGetComplianceSummary(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.PaginationToken = token;
|
|
59
49
|
input["MaxResults"] = config.pageSize;
|
|
60
|
-
if (!(config.client instanceof ResourceGroupsTaggingAPI)) return [3
|
|
61
|
-
return [4
|
|
50
|
+
if (!(config.client instanceof ResourceGroupsTaggingAPI)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
62
52
|
case 2:
|
|
63
53
|
page = _a.sent();
|
|
64
|
-
return [3
|
|
54
|
+
return [3, 6];
|
|
65
55
|
case 3:
|
|
66
|
-
if (!(config.client instanceof ResourceGroupsTaggingAPIClient)) return [3
|
|
67
|
-
return [4
|
|
56
|
+
if (!(config.client instanceof ResourceGroupsTaggingAPIClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
68
58
|
case 4:
|
|
69
59
|
page = _a.sent();
|
|
70
|
-
return [3
|
|
60
|
+
return [3, 6];
|
|
71
61
|
case 5: throw new Error("Invalid client, expected ResourceGroupsTaggingAPI | ResourceGroupsTaggingAPIClient");
|
|
72
|
-
case 6: return [4
|
|
73
|
-
case 7: return [4
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
74
64
|
case 8:
|
|
75
65
|
_a.sent();
|
|
76
66
|
token = page.PaginationToken;
|
|
77
67
|
hasNext = !!token;
|
|
78
|
-
return [3
|
|
79
|
-
case 9: return [4
|
|
80
|
-
case 10:
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return [2 /*return*/, _a.sent()];
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
83
71
|
}
|
|
84
72
|
});
|
|
85
73
|
});
|
|
86
74
|
}
|
|
87
|
-
//# sourceMappingURL=GetComplianceSummaryPaginator.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { GetResourcesCommand, } from "../commands/GetResourcesCommand";
|
|
2
3
|
import { ResourceGroupsTaggingAPI } from "../ResourceGroupsTaggingAPI";
|
|
3
4
|
import { ResourceGroupsTaggingAPIClient } from "../ResourceGroupsTaggingAPIClient";
|
|
4
|
-
import { GetResourcesCommand, } from "../commands/GetResourcesCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetResourcesCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.getResources.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,34 +44,31 @@ export function paginateGetResources(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.PaginationToken = token;
|
|
59
49
|
input["ResourcesPerPage"] = config.pageSize;
|
|
60
|
-
if (!(config.client instanceof ResourceGroupsTaggingAPI)) return [3
|
|
61
|
-
return [4
|
|
50
|
+
if (!(config.client instanceof ResourceGroupsTaggingAPI)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
62
52
|
case 2:
|
|
63
53
|
page = _a.sent();
|
|
64
|
-
return [3
|
|
54
|
+
return [3, 6];
|
|
65
55
|
case 3:
|
|
66
|
-
if (!(config.client instanceof ResourceGroupsTaggingAPIClient)) return [3
|
|
67
|
-
return [4
|
|
56
|
+
if (!(config.client instanceof ResourceGroupsTaggingAPIClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
68
58
|
case 4:
|
|
69
59
|
page = _a.sent();
|
|
70
|
-
return [3
|
|
60
|
+
return [3, 6];
|
|
71
61
|
case 5: throw new Error("Invalid client, expected ResourceGroupsTaggingAPI | ResourceGroupsTaggingAPIClient");
|
|
72
|
-
case 6: return [4
|
|
73
|
-
case 7: return [4
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
74
64
|
case 8:
|
|
75
65
|
_a.sent();
|
|
76
66
|
token = page.PaginationToken;
|
|
77
67
|
hasNext = !!token;
|
|
78
|
-
return [3
|
|
79
|
-
case 9: return [4
|
|
80
|
-
case 10:
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return [2 /*return*/, _a.sent()];
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
83
71
|
}
|
|
84
72
|
});
|
|
85
73
|
});
|
|
86
74
|
}
|
|
87
|
-
//# sourceMappingURL=GetResourcesPaginator.js.map
|