@aws-sdk/client-artifact 3.515.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 (115) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +253 -0
  3. package/dist-cjs/Artifact.js +23 -0
  4. package/dist-cjs/ArtifactClient.js +56 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/GetAccountSettingsCommand.js +28 -0
  8. package/dist-cjs/commands/GetReportCommand.js +28 -0
  9. package/dist-cjs/commands/GetReportMetadataCommand.js +28 -0
  10. package/dist-cjs/commands/GetTermForReportCommand.js +28 -0
  11. package/dist-cjs/commands/ListReportsCommand.js +28 -0
  12. package/dist-cjs/commands/PutAccountSettingsCommand.js +28 -0
  13. package/dist-cjs/commands/index.js +9 -0
  14. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  15. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  16. package/dist-cjs/endpoint/ruleset.js +7 -0
  17. package/dist-cjs/extensionConfiguration.js +2 -0
  18. package/dist-cjs/index.js +12 -0
  19. package/dist-cjs/models/ArtifactServiceException.js +12 -0
  20. package/dist-cjs/models/index.js +4 -0
  21. package/dist-cjs/models/models_0.js +138 -0
  22. package/dist-cjs/pagination/Interfaces.js +2 -0
  23. package/dist-cjs/pagination/ListReportsPaginator.js +7 -0
  24. package/dist-cjs/pagination/index.js +5 -0
  25. package/dist-cjs/protocols/Aws_restJson1.js +432 -0
  26. package/dist-cjs/runtimeConfig.browser.js +39 -0
  27. package/dist-cjs/runtimeConfig.js +49 -0
  28. package/dist-cjs/runtimeConfig.native.js +15 -0
  29. package/dist-cjs/runtimeConfig.shared.js +34 -0
  30. package/dist-cjs/runtimeExtensions.js +25 -0
  31. package/dist-es/Artifact.js +19 -0
  32. package/dist-es/ArtifactClient.js +52 -0
  33. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  34. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  35. package/dist-es/commands/GetAccountSettingsCommand.js +24 -0
  36. package/dist-es/commands/GetReportCommand.js +24 -0
  37. package/dist-es/commands/GetReportMetadataCommand.js +24 -0
  38. package/dist-es/commands/GetTermForReportCommand.js +24 -0
  39. package/dist-es/commands/ListReportsCommand.js +24 -0
  40. package/dist-es/commands/PutAccountSettingsCommand.js +24 -0
  41. package/dist-es/commands/index.js +6 -0
  42. package/dist-es/endpoint/EndpointParameters.js +14 -0
  43. package/dist-es/endpoint/endpointResolver.js +8 -0
  44. package/dist-es/endpoint/ruleset.js +4 -0
  45. package/dist-es/extensionConfiguration.js +1 -0
  46. package/dist-es/index.js +7 -0
  47. package/dist-es/models/ArtifactServiceException.js +8 -0
  48. package/dist-es/models/index.js +1 -0
  49. package/dist-es/models/models_0.js +128 -0
  50. package/dist-es/pagination/Interfaces.js +1 -0
  51. package/dist-es/pagination/ListReportsPaginator.js +4 -0
  52. package/dist-es/pagination/index.js +2 -0
  53. package/dist-es/protocols/Aws_restJson1.js +417 -0
  54. package/dist-es/runtimeConfig.browser.js +34 -0
  55. package/dist-es/runtimeConfig.js +44 -0
  56. package/dist-es/runtimeConfig.native.js +11 -0
  57. package/dist-es/runtimeConfig.shared.js +30 -0
  58. package/dist-es/runtimeExtensions.js +21 -0
  59. package/dist-types/Artifact.d.ts +52 -0
  60. package/dist-types/ArtifactClient.d.ts +177 -0
  61. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  62. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  63. package/dist-types/commands/GetAccountSettingsCommand.d.ts +79 -0
  64. package/dist-types/commands/GetReportCommand.d.ts +81 -0
  65. package/dist-types/commands/GetReportMetadataCommand.d.ts +98 -0
  66. package/dist-types/commands/GetTermForReportCommand.d.ts +81 -0
  67. package/dist-types/commands/ListReportsCommand.d.ts +95 -0
  68. package/dist-types/commands/PutAccountSettingsCommand.d.ts +81 -0
  69. package/dist-types/commands/index.d.ts +6 -0
  70. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  71. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  72. package/dist-types/endpoint/ruleset.d.ts +2 -0
  73. package/dist-types/extensionConfiguration.d.ts +9 -0
  74. package/dist-types/index.d.ts +15 -0
  75. package/dist-types/models/ArtifactServiceException.d.ts +13 -0
  76. package/dist-types/models/index.d.ts +1 -0
  77. package/dist-types/models/models_0.d.ts +605 -0
  78. package/dist-types/pagination/Interfaces.d.ts +8 -0
  79. package/dist-types/pagination/ListReportsPaginator.d.ts +7 -0
  80. package/dist-types/pagination/index.d.ts +2 -0
  81. package/dist-types/protocols/Aws_restJson1.d.ts +56 -0
  82. package/dist-types/runtimeConfig.browser.d.ts +48 -0
  83. package/dist-types/runtimeConfig.d.ts +48 -0
  84. package/dist-types/runtimeConfig.native.d.ts +47 -0
  85. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  86. package/dist-types/runtimeExtensions.d.ts +17 -0
  87. package/dist-types/ts3.4/Artifact.d.ts +107 -0
  88. package/dist-types/ts3.4/ArtifactClient.d.ts +156 -0
  89. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  90. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  91. package/dist-types/ts3.4/commands/GetAccountSettingsCommand.d.ts +30 -0
  92. package/dist-types/ts3.4/commands/GetReportCommand.d.ts +26 -0
  93. package/dist-types/ts3.4/commands/GetReportMetadataCommand.d.ts +30 -0
  94. package/dist-types/ts3.4/commands/GetTermForReportCommand.d.ts +29 -0
  95. package/dist-types/ts3.4/commands/ListReportsCommand.d.ts +26 -0
  96. package/dist-types/ts3.4/commands/PutAccountSettingsCommand.d.ts +30 -0
  97. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  98. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  99. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  100. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  101. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  102. package/dist-types/ts3.4/index.d.ts +10 -0
  103. package/dist-types/ts3.4/models/ArtifactServiceException.d.ts +8 -0
  104. package/dist-types/ts3.4/models/index.d.ts +1 -0
  105. package/dist-types/ts3.4/models/models_0.d.ts +187 -0
  106. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  107. package/dist-types/ts3.4/pagination/ListReportsPaginator.d.ts +11 -0
  108. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  109. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +77 -0
  110. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  111. package/dist-types/ts3.4/runtimeConfig.d.ts +101 -0
  112. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  113. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  114. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  115. package/package.json +101 -0
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetReportCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class GetReportCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Artifact", "GetReport", {})
22
+ .n("ArtifactClient", "GetReportCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetReportCommand)
25
+ .de(Aws_restJson1_1.de_GetReportCommand)
26
+ .build() {
27
+ }
28
+ exports.GetReportCommand = GetReportCommand;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetReportMetadataCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class GetReportMetadataCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Artifact", "GetReportMetadata", {})
22
+ .n("ArtifactClient", "GetReportMetadataCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetReportMetadataCommand)
25
+ .de(Aws_restJson1_1.de_GetReportMetadataCommand)
26
+ .build() {
27
+ }
28
+ exports.GetReportMetadataCommand = GetReportMetadataCommand;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetTermForReportCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class GetTermForReportCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Artifact", "GetTermForReport", {})
22
+ .n("ArtifactClient", "GetTermForReportCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetTermForReportCommand)
25
+ .de(Aws_restJson1_1.de_GetTermForReportCommand)
26
+ .build() {
27
+ }
28
+ exports.GetTermForReportCommand = GetTermForReportCommand;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListReportsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class ListReportsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Artifact", "ListReports", {})
22
+ .n("ArtifactClient", "ListReportsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListReportsCommand)
25
+ .de(Aws_restJson1_1.de_ListReportsCommand)
26
+ .build() {
27
+ }
28
+ exports.ListReportsCommand = ListReportsCommand;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PutAccountSettingsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class PutAccountSettingsCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("Artifact", "PutAccountSettings", {})
22
+ .n("ArtifactClient", "PutAccountSettingsCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_PutAccountSettingsCommand)
25
+ .de(Aws_restJson1_1.de_PutAccountSettingsCommand)
26
+ .build() {
27
+ }
28
+ exports.PutAccountSettingsCommand = PutAccountSettingsCommand;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./GetAccountSettingsCommand"), exports);
5
+ tslib_1.__exportStar(require("./GetReportCommand"), exports);
6
+ tslib_1.__exportStar(require("./GetReportMetadataCommand"), exports);
7
+ tslib_1.__exportStar(require("./GetTermForReportCommand"), exports);
8
+ tslib_1.__exportStar(require("./ListReportsCommand"), exports);
9
+ tslib_1.__exportStar(require("./PutAccountSettingsCommand"), exports);
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
+ const resolveClientEndpointParameters = (options) => {
5
+ return {
6
+ ...options,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
9
+ defaultSigningName: "artifact",
10
+ };
11
+ };
12
+ exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultEndpointResolver = void 0;
4
+ const util_endpoints_1 = require("@smithy/util-endpoints");
5
+ const ruleset_1 = require("./ruleset");
6
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
7
+ return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ endpointParams: endpointParams,
9
+ logger: context.logger,
10
+ });
11
+ };
12
+ exports.defaultEndpointResolver = defaultEndpointResolver;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ruleSet = void 0;
4
+ const s = "required", t = "fn", u = "argv", v = "ref";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://artifact-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://artifact-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://artifact.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://artifact.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
7
+ exports.ruleSet = _data;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ArtifactServiceException = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./ArtifactClient"), exports);
6
+ tslib_1.__exportStar(require("./Artifact"), exports);
7
+ tslib_1.__exportStar(require("./commands"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);
9
+ tslib_1.__exportStar(require("./models"), exports);
10
+ require("@aws-sdk/util-endpoints");
11
+ var ArtifactServiceException_1 = require("./models/ArtifactServiceException");
12
+ Object.defineProperty(exports, "ArtifactServiceException", { enumerable: true, get: function () { return ArtifactServiceException_1.ArtifactServiceException; } });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ArtifactServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class ArtifactServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, ArtifactServiceException.prototype);
10
+ }
11
+ }
12
+ exports.ArtifactServiceException = ArtifactServiceException;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./models_0"), exports);
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UploadState = exports.PublishedState = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.NotificationSubscriptionStatus = exports.AccessDeniedException = exports.AcceptanceType = void 0;
4
+ const ArtifactServiceException_1 = require("./ArtifactServiceException");
5
+ exports.AcceptanceType = {
6
+ EXPLICIT: "EXPLICIT",
7
+ PASSTHROUGH: "PASSTHROUGH",
8
+ };
9
+ class AccessDeniedException extends ArtifactServiceException_1.ArtifactServiceException {
10
+ constructor(opts) {
11
+ super({
12
+ name: "AccessDeniedException",
13
+ $fault: "client",
14
+ ...opts,
15
+ });
16
+ this.name = "AccessDeniedException";
17
+ this.$fault = "client";
18
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
19
+ }
20
+ }
21
+ exports.AccessDeniedException = AccessDeniedException;
22
+ exports.NotificationSubscriptionStatus = {
23
+ NOT_SUBSCRIBED: "NOT_SUBSCRIBED",
24
+ SUBSCRIBED: "SUBSCRIBED",
25
+ };
26
+ class ConflictException extends ArtifactServiceException_1.ArtifactServiceException {
27
+ constructor(opts) {
28
+ super({
29
+ name: "ConflictException",
30
+ $fault: "client",
31
+ ...opts,
32
+ });
33
+ this.name = "ConflictException";
34
+ this.$fault = "client";
35
+ Object.setPrototypeOf(this, ConflictException.prototype);
36
+ this.resourceId = opts.resourceId;
37
+ this.resourceType = opts.resourceType;
38
+ }
39
+ }
40
+ exports.ConflictException = ConflictException;
41
+ class InternalServerException extends ArtifactServiceException_1.ArtifactServiceException {
42
+ constructor(opts) {
43
+ super({
44
+ name: "InternalServerException",
45
+ $fault: "server",
46
+ ...opts,
47
+ });
48
+ this.name = "InternalServerException";
49
+ this.$fault = "server";
50
+ this.$retryable = {};
51
+ Object.setPrototypeOf(this, InternalServerException.prototype);
52
+ this.retryAfterSeconds = opts.retryAfterSeconds;
53
+ }
54
+ }
55
+ exports.InternalServerException = InternalServerException;
56
+ class ResourceNotFoundException extends ArtifactServiceException_1.ArtifactServiceException {
57
+ constructor(opts) {
58
+ super({
59
+ name: "ResourceNotFoundException",
60
+ $fault: "client",
61
+ ...opts,
62
+ });
63
+ this.name = "ResourceNotFoundException";
64
+ this.$fault = "client";
65
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
66
+ this.resourceId = opts.resourceId;
67
+ this.resourceType = opts.resourceType;
68
+ }
69
+ }
70
+ exports.ResourceNotFoundException = ResourceNotFoundException;
71
+ class ServiceQuotaExceededException extends ArtifactServiceException_1.ArtifactServiceException {
72
+ constructor(opts) {
73
+ super({
74
+ name: "ServiceQuotaExceededException",
75
+ $fault: "client",
76
+ ...opts,
77
+ });
78
+ this.name = "ServiceQuotaExceededException";
79
+ this.$fault = "client";
80
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
81
+ this.resourceId = opts.resourceId;
82
+ this.resourceType = opts.resourceType;
83
+ this.serviceCode = opts.serviceCode;
84
+ this.quotaCode = opts.quotaCode;
85
+ }
86
+ }
87
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
88
+ class ThrottlingException extends ArtifactServiceException_1.ArtifactServiceException {
89
+ constructor(opts) {
90
+ super({
91
+ name: "ThrottlingException",
92
+ $fault: "client",
93
+ ...opts,
94
+ });
95
+ this.name = "ThrottlingException";
96
+ this.$fault = "client";
97
+ this.$retryable = {
98
+ throttling: true,
99
+ };
100
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
101
+ this.serviceCode = opts.serviceCode;
102
+ this.quotaCode = opts.quotaCode;
103
+ this.retryAfterSeconds = opts.retryAfterSeconds;
104
+ }
105
+ }
106
+ exports.ThrottlingException = ThrottlingException;
107
+ exports.ValidationExceptionReason = {
108
+ CANNOT_PARSE: "cannotParse",
109
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
110
+ INVALID_TOKEN: "invalidToken",
111
+ OTHER: "other",
112
+ UNKNOWN_OPERATION: "unknownOperation",
113
+ };
114
+ class ValidationException extends ArtifactServiceException_1.ArtifactServiceException {
115
+ constructor(opts) {
116
+ super({
117
+ name: "ValidationException",
118
+ $fault: "client",
119
+ ...opts,
120
+ });
121
+ this.name = "ValidationException";
122
+ this.$fault = "client";
123
+ Object.setPrototypeOf(this, ValidationException.prototype);
124
+ this.reason = opts.reason;
125
+ this.fieldList = opts.fieldList;
126
+ }
127
+ }
128
+ exports.ValidationException = ValidationException;
129
+ exports.PublishedState = {
130
+ PUBLISHED: "PUBLISHED",
131
+ UNPUBLISHED: "UNPUBLISHED",
132
+ };
133
+ exports.UploadState = {
134
+ COMPLETE: "COMPLETE",
135
+ FAILED: "FAILED",
136
+ FAULT: "FAULT",
137
+ PROCESSING: "PROCESSING",
138
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListReports = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const ArtifactClient_1 = require("../ArtifactClient");
6
+ const ListReportsCommand_1 = require("../commands/ListReportsCommand");
7
+ exports.paginateListReports = (0, core_1.createPaginator)(ArtifactClient_1.ArtifactClient, ListReportsCommand_1.ListReportsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListReportsPaginator"), exports);