@aws-sdk/client-rbin 3.44.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.
Files changed (96) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +201 -0
  3. package/README.md +216 -0
  4. package/dist-cjs/Rbin.js +127 -0
  5. package/dist-cjs/RbinClient.js +35 -0
  6. package/dist-cjs/commands/CreateRuleCommand.js +36 -0
  7. package/dist-cjs/commands/DeleteRuleCommand.js +36 -0
  8. package/dist-cjs/commands/GetRuleCommand.js +36 -0
  9. package/dist-cjs/commands/ListRulesCommand.js +36 -0
  10. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  11. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  12. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  13. package/dist-cjs/commands/UpdateRuleCommand.js +36 -0
  14. package/dist-cjs/commands/index.js +11 -0
  15. package/dist-cjs/endpoints.js +130 -0
  16. package/dist-cjs/index.js +8 -0
  17. package/dist-cjs/models/index.js +4 -0
  18. package/dist-cjs/models/models_0.js +173 -0
  19. package/dist-cjs/pagination/Interfaces.js +2 -0
  20. package/dist-cjs/pagination/ListRulesPaginator.js +35 -0
  21. package/dist-cjs/pagination/index.js +5 -0
  22. package/dist-cjs/protocols/Aws_restJson1.js +1020 -0
  23. package/dist-cjs/runtimeConfig.browser.js +40 -0
  24. package/dist-cjs/runtimeConfig.js +44 -0
  25. package/dist-cjs/runtimeConfig.native.js +16 -0
  26. package/dist-cjs/runtimeConfig.shared.js +17 -0
  27. package/dist-es/Rbin.js +130 -0
  28. package/dist-es/RbinClient.js +37 -0
  29. package/dist-es/commands/CreateRuleCommand.js +39 -0
  30. package/dist-es/commands/DeleteRuleCommand.js +39 -0
  31. package/dist-es/commands/GetRuleCommand.js +39 -0
  32. package/dist-es/commands/ListRulesCommand.js +39 -0
  33. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  34. package/dist-es/commands/TagResourceCommand.js +39 -0
  35. package/dist-es/commands/UntagResourceCommand.js +39 -0
  36. package/dist-es/commands/UpdateRuleCommand.js +39 -0
  37. package/dist-es/commands/index.js +8 -0
  38. package/dist-es/endpoints.js +126 -0
  39. package/dist-es/index.js +5 -0
  40. package/dist-es/models/index.js +1 -0
  41. package/dist-es/models/models_0.js +123 -0
  42. package/dist-es/pagination/Interfaces.js +1 -0
  43. package/dist-es/pagination/ListRulesPaginator.js +74 -0
  44. package/dist-es/pagination/index.js +2 -0
  45. package/dist-es/protocols/Aws_restJson1.js +1154 -0
  46. package/dist-es/runtimeConfig.browser.js +17 -0
  47. package/dist-es/runtimeConfig.js +21 -0
  48. package/dist-es/runtimeConfig.native.js +8 -0
  49. package/dist-es/runtimeConfig.shared.js +13 -0
  50. package/dist-types/Rbin.d.ts +79 -0
  51. package/dist-types/RbinClient.d.ts +161 -0
  52. package/dist-types/commands/CreateRuleCommand.d.ts +36 -0
  53. package/dist-types/commands/DeleteRuleCommand.d.ts +36 -0
  54. package/dist-types/commands/GetRuleCommand.d.ts +35 -0
  55. package/dist-types/commands/ListRulesCommand.d.ts +35 -0
  56. package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
  57. package/dist-types/commands/TagResourceCommand.d.ts +35 -0
  58. package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
  59. package/dist-types/commands/UpdateRuleCommand.d.ts +36 -0
  60. package/dist-types/commands/index.d.ts +8 -0
  61. package/dist-types/endpoints.d.ts +2 -0
  62. package/dist-types/index.d.ts +5 -0
  63. package/dist-types/models/index.d.ts +1 -0
  64. package/dist-types/models/models_0.d.ts +485 -0
  65. package/dist-types/pagination/Interfaces.d.ts +6 -0
  66. package/dist-types/pagination/ListRulesPaginator.d.ts +4 -0
  67. package/dist-types/pagination/index.d.ts +2 -0
  68. package/dist-types/protocols/Aws_restJson1.d.ts +26 -0
  69. package/dist-types/runtimeConfig.browser.d.ts +39 -0
  70. package/dist-types/runtimeConfig.d.ts +39 -0
  71. package/dist-types/runtimeConfig.native.d.ts +38 -0
  72. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  73. package/dist-types/ts3.4/Rbin.d.ts +45 -0
  74. package/dist-types/ts3.4/RbinClient.d.ts +79 -0
  75. package/dist-types/ts3.4/commands/CreateRuleCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/DeleteRuleCommand.d.ts +17 -0
  77. package/dist-types/ts3.4/commands/GetRuleCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/ListRulesCommand.d.ts +17 -0
  79. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  80. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  81. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/UpdateRuleCommand.d.ts +17 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  84. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  85. package/dist-types/ts3.4/index.d.ts +5 -0
  86. package/dist-types/ts3.4/models/index.d.ts +1 -0
  87. package/dist-types/ts3.4/models/models_0.d.ts +295 -0
  88. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  89. package/dist-types/ts3.4/pagination/ListRulesPaginator.d.ts +4 -0
  90. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  91. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +26 -0
  92. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +37 -0
  93. package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
  94. package/dist-types/ts3.4/runtimeConfig.native.d.ts +36 -0
  95. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  96. package/package.json +94 -0
@@ -0,0 +1,126 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
+ import { getRegionInfo } from "@aws-sdk/config-resolver";
3
+ var regionHash = {};
4
+ var partitionHash = {
5
+ aws: {
6
+ regions: [
7
+ "af-south-1",
8
+ "ap-east-1",
9
+ "ap-northeast-1",
10
+ "ap-northeast-2",
11
+ "ap-northeast-3",
12
+ "ap-south-1",
13
+ "ap-southeast-1",
14
+ "ap-southeast-2",
15
+ "ca-central-1",
16
+ "eu-central-1",
17
+ "eu-north-1",
18
+ "eu-south-1",
19
+ "eu-west-1",
20
+ "eu-west-2",
21
+ "eu-west-3",
22
+ "me-south-1",
23
+ "sa-east-1",
24
+ "us-east-1",
25
+ "us-east-2",
26
+ "us-west-1",
27
+ "us-west-2",
28
+ ],
29
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
30
+ variants: [
31
+ {
32
+ hostname: "rbin.{region}.amazonaws.com",
33
+ tags: [],
34
+ },
35
+ {
36
+ hostname: "rbin-fips.{region}.amazonaws.com",
37
+ tags: ["fips"],
38
+ },
39
+ {
40
+ hostname: "rbin-fips.{region}.api.aws",
41
+ tags: ["dualstack", "fips"],
42
+ },
43
+ {
44
+ hostname: "rbin.{region}.api.aws",
45
+ tags: ["dualstack"],
46
+ },
47
+ ],
48
+ },
49
+ "aws-cn": {
50
+ regions: ["cn-north-1", "cn-northwest-1"],
51
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
52
+ variants: [
53
+ {
54
+ hostname: "rbin.{region}.amazonaws.com.cn",
55
+ tags: [],
56
+ },
57
+ {
58
+ hostname: "rbin-fips.{region}.amazonaws.com.cn",
59
+ tags: ["fips"],
60
+ },
61
+ {
62
+ hostname: "rbin-fips.{region}.api.amazonwebservices.com.cn",
63
+ tags: ["dualstack", "fips"],
64
+ },
65
+ {
66
+ hostname: "rbin.{region}.api.amazonwebservices.com.cn",
67
+ tags: ["dualstack"],
68
+ },
69
+ ],
70
+ },
71
+ "aws-iso": {
72
+ regions: ["us-iso-east-1", "us-iso-west-1"],
73
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
74
+ variants: [
75
+ {
76
+ hostname: "rbin.{region}.c2s.ic.gov",
77
+ tags: [],
78
+ },
79
+ {
80
+ hostname: "rbin-fips.{region}.c2s.ic.gov",
81
+ tags: ["fips"],
82
+ },
83
+ ],
84
+ },
85
+ "aws-iso-b": {
86
+ regions: ["us-isob-east-1"],
87
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
88
+ variants: [
89
+ {
90
+ hostname: "rbin.{region}.sc2s.sgov.gov",
91
+ tags: [],
92
+ },
93
+ {
94
+ hostname: "rbin-fips.{region}.sc2s.sgov.gov",
95
+ tags: ["fips"],
96
+ },
97
+ ],
98
+ },
99
+ "aws-us-gov": {
100
+ regions: ["us-gov-east-1", "us-gov-west-1"],
101
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
102
+ variants: [
103
+ {
104
+ hostname: "rbin.{region}.amazonaws.com",
105
+ tags: [],
106
+ },
107
+ {
108
+ hostname: "rbin-fips.{region}.amazonaws.com",
109
+ tags: ["fips"],
110
+ },
111
+ {
112
+ hostname: "rbin-fips.{region}.api.aws",
113
+ tags: ["dualstack", "fips"],
114
+ },
115
+ {
116
+ hostname: "rbin.{region}.api.aws",
117
+ tags: ["dualstack"],
118
+ },
119
+ ],
120
+ },
121
+ };
122
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
123
+ return __generator(this, function (_a) {
124
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "rbin", regionHash: regionHash, partitionHash: partitionHash }))];
125
+ });
126
+ }); };
@@ -0,0 +1,5 @@
1
+ export * from "./Rbin";
2
+ export * from "./RbinClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,123 @@
1
+ import { __assign } from "tslib";
2
+ export var ResourceTag;
3
+ (function (ResourceTag) {
4
+ ResourceTag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
+ })(ResourceTag || (ResourceTag = {}));
6
+ export var ResourceType;
7
+ (function (ResourceType) {
8
+ ResourceType["EBS_SNAPSHOT"] = "EBS_SNAPSHOT";
9
+ })(ResourceType || (ResourceType = {}));
10
+ export var RetentionPeriodUnit;
11
+ (function (RetentionPeriodUnit) {
12
+ RetentionPeriodUnit["DAYS"] = "DAYS";
13
+ })(RetentionPeriodUnit || (RetentionPeriodUnit = {}));
14
+ export var RetentionPeriod;
15
+ (function (RetentionPeriod) {
16
+ RetentionPeriod.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
+ })(RetentionPeriod || (RetentionPeriod = {}));
18
+ export var Tag;
19
+ (function (Tag) {
20
+ Tag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
21
+ })(Tag || (Tag = {}));
22
+ export var CreateRuleRequest;
23
+ (function (CreateRuleRequest) {
24
+ CreateRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
25
+ })(CreateRuleRequest || (CreateRuleRequest = {}));
26
+ export var RuleStatus;
27
+ (function (RuleStatus) {
28
+ RuleStatus["AVAILABLE"] = "available";
29
+ RuleStatus["PENDING"] = "pending";
30
+ })(RuleStatus || (RuleStatus = {}));
31
+ export var CreateRuleResponse;
32
+ (function (CreateRuleResponse) {
33
+ CreateRuleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
34
+ })(CreateRuleResponse || (CreateRuleResponse = {}));
35
+ export var InternalServerException;
36
+ (function (InternalServerException) {
37
+ InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
38
+ })(InternalServerException || (InternalServerException = {}));
39
+ export var ServiceQuotaExceededExceptionReason;
40
+ (function (ServiceQuotaExceededExceptionReason) {
41
+ ServiceQuotaExceededExceptionReason["SERVICE_QUOTA_EXCEEDED"] = "SERVICE_QUOTA_EXCEEDED";
42
+ })(ServiceQuotaExceededExceptionReason || (ServiceQuotaExceededExceptionReason = {}));
43
+ export var ServiceQuotaExceededException;
44
+ (function (ServiceQuotaExceededException) {
45
+ ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
46
+ })(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
47
+ export var ValidationExceptionReason;
48
+ (function (ValidationExceptionReason) {
49
+ ValidationExceptionReason["INVALID_PAGE_TOKEN"] = "INVALID_PAGE_TOKEN";
50
+ ValidationExceptionReason["INVALID_PARAMETER_VALUE"] = "INVALID_PARAMETER_VALUE";
51
+ })(ValidationExceptionReason || (ValidationExceptionReason = {}));
52
+ export var ValidationException;
53
+ (function (ValidationException) {
54
+ ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
55
+ })(ValidationException || (ValidationException = {}));
56
+ export var DeleteRuleRequest;
57
+ (function (DeleteRuleRequest) {
58
+ DeleteRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
59
+ })(DeleteRuleRequest || (DeleteRuleRequest = {}));
60
+ export var DeleteRuleResponse;
61
+ (function (DeleteRuleResponse) {
62
+ DeleteRuleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
63
+ })(DeleteRuleResponse || (DeleteRuleResponse = {}));
64
+ export var ResourceNotFoundExceptionReason;
65
+ (function (ResourceNotFoundExceptionReason) {
66
+ ResourceNotFoundExceptionReason["RULE_NOT_FOUND"] = "RULE_NOT_FOUND";
67
+ })(ResourceNotFoundExceptionReason || (ResourceNotFoundExceptionReason = {}));
68
+ export var ResourceNotFoundException;
69
+ (function (ResourceNotFoundException) {
70
+ ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
71
+ })(ResourceNotFoundException || (ResourceNotFoundException = {}));
72
+ export var GetRuleRequest;
73
+ (function (GetRuleRequest) {
74
+ GetRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
75
+ })(GetRuleRequest || (GetRuleRequest = {}));
76
+ export var GetRuleResponse;
77
+ (function (GetRuleResponse) {
78
+ GetRuleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
79
+ })(GetRuleResponse || (GetRuleResponse = {}));
80
+ export var ListRulesRequest;
81
+ (function (ListRulesRequest) {
82
+ ListRulesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
83
+ })(ListRulesRequest || (ListRulesRequest = {}));
84
+ export var RuleSummary;
85
+ (function (RuleSummary) {
86
+ RuleSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
87
+ })(RuleSummary || (RuleSummary = {}));
88
+ export var ListRulesResponse;
89
+ (function (ListRulesResponse) {
90
+ ListRulesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
91
+ })(ListRulesResponse || (ListRulesResponse = {}));
92
+ export var ListTagsForResourceRequest;
93
+ (function (ListTagsForResourceRequest) {
94
+ ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
95
+ })(ListTagsForResourceRequest || (ListTagsForResourceRequest = {}));
96
+ export var ListTagsForResourceResponse;
97
+ (function (ListTagsForResourceResponse) {
98
+ ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
99
+ })(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
100
+ export var TagResourceRequest;
101
+ (function (TagResourceRequest) {
102
+ TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
103
+ })(TagResourceRequest || (TagResourceRequest = {}));
104
+ export var TagResourceResponse;
105
+ (function (TagResourceResponse) {
106
+ TagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
107
+ })(TagResourceResponse || (TagResourceResponse = {}));
108
+ export var UntagResourceRequest;
109
+ (function (UntagResourceRequest) {
110
+ UntagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
111
+ })(UntagResourceRequest || (UntagResourceRequest = {}));
112
+ export var UntagResourceResponse;
113
+ (function (UntagResourceResponse) {
114
+ UntagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
115
+ })(UntagResourceResponse || (UntagResourceResponse = {}));
116
+ export var UpdateRuleRequest;
117
+ (function (UpdateRuleRequest) {
118
+ UpdateRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
119
+ })(UpdateRuleRequest || (UpdateRuleRequest = {}));
120
+ export var UpdateRuleResponse;
121
+ (function (UpdateRuleResponse) {
122
+ UpdateRuleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
123
+ })(UpdateRuleResponse || (UpdateRuleResponse = {}));
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListRulesCommand } from "../commands/ListRulesCommand";
3
+ import { Rbin } from "../Rbin";
4
+ import { RbinClient } from "../RbinClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListRulesCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listRules.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListRules(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListRules_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
50
+ if (!(config.client instanceof Rbin)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof RbinClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected Rbin | RbinClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.NextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListRulesPaginator";