@aws-sdk/client-codedeploy 3.36.0 → 3.39.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 (137) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/CodeDeploy.js +0 -102
  3. package/dist-cjs/CodeDeployClient.js +0 -107
  4. package/dist-cjs/commands/AddTagsToOnPremisesInstancesCommand.js +0 -24
  5. package/dist-cjs/commands/BatchGetApplicationRevisionsCommand.js +0 -25
  6. package/dist-cjs/commands/BatchGetApplicationsCommand.js +0 -25
  7. package/dist-cjs/commands/BatchGetDeploymentGroupsCommand.js +0 -24
  8. package/dist-cjs/commands/BatchGetDeploymentInstancesCommand.js +0 -33
  9. package/dist-cjs/commands/BatchGetDeploymentTargetsCommand.js +0 -51
  10. package/dist-cjs/commands/BatchGetDeploymentsCommand.js +0 -25
  11. package/dist-cjs/commands/BatchGetOnPremisesInstancesCommand.js +0 -25
  12. package/dist-cjs/commands/ContinueDeploymentCommand.js +0 -28
  13. package/dist-cjs/commands/CreateApplicationCommand.js +0 -24
  14. package/dist-cjs/commands/CreateDeploymentCommand.js +0 -24
  15. package/dist-cjs/commands/CreateDeploymentConfigCommand.js +0 -24
  16. package/dist-cjs/commands/CreateDeploymentGroupCommand.js +0 -24
  17. package/dist-cjs/commands/DeleteApplicationCommand.js +0 -24
  18. package/dist-cjs/commands/DeleteDeploymentConfigCommand.js +0 -28
  19. package/dist-cjs/commands/DeleteDeploymentGroupCommand.js +0 -24
  20. package/dist-cjs/commands/DeleteGitHubAccountTokenCommand.js +0 -24
  21. package/dist-cjs/commands/DeleteResourcesByExternalIdCommand.js +0 -24
  22. package/dist-cjs/commands/DeregisterOnPremisesInstanceCommand.js +0 -24
  23. package/dist-cjs/commands/GetApplicationCommand.js +0 -24
  24. package/dist-cjs/commands/GetApplicationRevisionCommand.js +0 -24
  25. package/dist-cjs/commands/GetDeploymentCommand.js +0 -30
  26. package/dist-cjs/commands/GetDeploymentConfigCommand.js +0 -24
  27. package/dist-cjs/commands/GetDeploymentGroupCommand.js +0 -24
  28. package/dist-cjs/commands/GetDeploymentInstanceCommand.js +0 -26
  29. package/dist-cjs/commands/GetDeploymentTargetCommand.js +0 -24
  30. package/dist-cjs/commands/GetOnPremisesInstanceCommand.js +0 -24
  31. package/dist-cjs/commands/ListApplicationRevisionsCommand.js +0 -24
  32. package/dist-cjs/commands/ListApplicationsCommand.js +0 -24
  33. package/dist-cjs/commands/ListDeploymentConfigsCommand.js +0 -24
  34. package/dist-cjs/commands/ListDeploymentGroupsCommand.js +0 -25
  35. package/dist-cjs/commands/ListDeploymentInstancesCommand.js +0 -32
  36. package/dist-cjs/commands/ListDeploymentTargetsCommand.js +0 -24
  37. package/dist-cjs/commands/ListDeploymentsCommand.js +0 -25
  38. package/dist-cjs/commands/ListGitHubAccountTokenNamesCommand.js +0 -24
  39. package/dist-cjs/commands/ListOnPremisesInstancesCommand.js +0 -27
  40. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
  41. package/dist-cjs/commands/PutLifecycleEventHookExecutionStatusCommand.js +0 -32
  42. package/dist-cjs/commands/RegisterApplicationRevisionCommand.js +0 -24
  43. package/dist-cjs/commands/RegisterOnPremisesInstanceCommand.js +0 -28
  44. package/dist-cjs/commands/RemoveTagsFromOnPremisesInstancesCommand.js +0 -24
  45. package/dist-cjs/commands/SkipWaitTimeForInstanceTerminationCommand.js +0 -27
  46. package/dist-cjs/commands/StopDeploymentCommand.js +0 -24
  47. package/dist-cjs/commands/TagResourceCommand.js +0 -25
  48. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  49. package/dist-cjs/commands/UpdateApplicationCommand.js +0 -24
  50. package/dist-cjs/commands/UpdateDeploymentGroupCommand.js +0 -24
  51. package/dist-cjs/commands/index.js +50 -0
  52. package/dist-cjs/endpoints.js +6 -1
  53. package/dist-cjs/index.js +5 -57
  54. package/dist-cjs/models/models_0.js +0 -741
  55. package/dist-cjs/pagination/ListApplicationRevisionsPaginator.js +0 -10
  56. package/dist-cjs/pagination/ListApplicationsPaginator.js +0 -10
  57. package/dist-cjs/pagination/ListDeploymentConfigsPaginator.js +0 -10
  58. package/dist-cjs/pagination/ListDeploymentGroupsPaginator.js +0 -10
  59. package/dist-cjs/pagination/ListDeploymentInstancesPaginator.js +0 -10
  60. package/dist-cjs/pagination/ListDeploymentsPaginator.js +0 -10
  61. package/dist-cjs/pagination/index.js +10 -0
  62. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  63. package/dist-cjs/runtimeConfig.browser.js +1 -5
  64. package/dist-cjs/runtimeConfig.js +1 -5
  65. package/dist-cjs/runtimeConfig.native.js +0 -3
  66. package/dist-cjs/runtimeConfig.shared.js +0 -3
  67. package/dist-cjs/waiters/index.js +4 -0
  68. package/dist-cjs/waiters/waitForDeploymentSuccessful.js +0 -9
  69. package/dist-es/commands/index.js +47 -0
  70. package/dist-es/endpoints.js +6 -1
  71. package/dist-es/index.js +5 -57
  72. package/dist-es/pagination/index.js +7 -0
  73. package/dist-es/waiters/index.js +1 -0
  74. package/dist-types/commands/index.d.ts +47 -0
  75. package/dist-types/index.d.ts +5 -57
  76. package/dist-types/pagination/index.d.ts +7 -0
  77. package/dist-types/ts3.4/CodeDeploy.d.ts +48 -331
  78. package/dist-types/ts3.4/CodeDeployClient.d.ts +24 -188
  79. package/dist-types/ts3.4/commands/AddTagsToOnPremisesInstancesCommand.d.ts +2 -20
  80. package/dist-types/ts3.4/commands/BatchGetApplicationRevisionsCommand.d.ts +2 -21
  81. package/dist-types/ts3.4/commands/BatchGetApplicationsCommand.d.ts +2 -21
  82. package/dist-types/ts3.4/commands/BatchGetDeploymentGroupsCommand.d.ts +2 -20
  83. package/dist-types/ts3.4/commands/BatchGetDeploymentInstancesCommand.d.ts +2 -29
  84. package/dist-types/ts3.4/commands/BatchGetDeploymentTargetsCommand.d.ts +2 -47
  85. package/dist-types/ts3.4/commands/BatchGetDeploymentsCommand.d.ts +2 -21
  86. package/dist-types/ts3.4/commands/BatchGetOnPremisesInstancesCommand.d.ts +2 -21
  87. package/dist-types/ts3.4/commands/ContinueDeploymentCommand.d.ts +2 -24
  88. package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +2 -20
  89. package/dist-types/ts3.4/commands/CreateDeploymentCommand.d.ts +2 -20
  90. package/dist-types/ts3.4/commands/CreateDeploymentConfigCommand.d.ts +2 -20
  91. package/dist-types/ts3.4/commands/CreateDeploymentGroupCommand.d.ts +2 -20
  92. package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +2 -20
  93. package/dist-types/ts3.4/commands/DeleteDeploymentConfigCommand.d.ts +2 -24
  94. package/dist-types/ts3.4/commands/DeleteDeploymentGroupCommand.d.ts +2 -20
  95. package/dist-types/ts3.4/commands/DeleteGitHubAccountTokenCommand.d.ts +2 -20
  96. package/dist-types/ts3.4/commands/DeleteResourcesByExternalIdCommand.d.ts +2 -20
  97. package/dist-types/ts3.4/commands/DeregisterOnPremisesInstanceCommand.d.ts +2 -20
  98. package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +2 -20
  99. package/dist-types/ts3.4/commands/GetApplicationRevisionCommand.d.ts +2 -20
  100. package/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +2 -26
  101. package/dist-types/ts3.4/commands/GetDeploymentConfigCommand.d.ts +2 -20
  102. package/dist-types/ts3.4/commands/GetDeploymentGroupCommand.d.ts +2 -20
  103. package/dist-types/ts3.4/commands/GetDeploymentInstanceCommand.d.ts +2 -22
  104. package/dist-types/ts3.4/commands/GetDeploymentTargetCommand.d.ts +2 -20
  105. package/dist-types/ts3.4/commands/GetOnPremisesInstanceCommand.d.ts +2 -20
  106. package/dist-types/ts3.4/commands/ListApplicationRevisionsCommand.d.ts +2 -20
  107. package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +2 -20
  108. package/dist-types/ts3.4/commands/ListDeploymentConfigsCommand.d.ts +2 -20
  109. package/dist-types/ts3.4/commands/ListDeploymentGroupsCommand.d.ts +2 -21
  110. package/dist-types/ts3.4/commands/ListDeploymentInstancesCommand.d.ts +2 -28
  111. package/dist-types/ts3.4/commands/ListDeploymentTargetsCommand.d.ts +2 -20
  112. package/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +2 -21
  113. package/dist-types/ts3.4/commands/ListGitHubAccountTokenNamesCommand.d.ts +2 -20
  114. package/dist-types/ts3.4/commands/ListOnPremisesInstancesCommand.d.ts +2 -23
  115. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -21
  116. package/dist-types/ts3.4/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +2 -28
  117. package/dist-types/ts3.4/commands/RegisterApplicationRevisionCommand.d.ts +2 -20
  118. package/dist-types/ts3.4/commands/RegisterOnPremisesInstanceCommand.d.ts +2 -24
  119. package/dist-types/ts3.4/commands/RemoveTagsFromOnPremisesInstancesCommand.d.ts +2 -20
  120. package/dist-types/ts3.4/commands/SkipWaitTimeForInstanceTerminationCommand.d.ts +2 -23
  121. package/dist-types/ts3.4/commands/StopDeploymentCommand.d.ts +2 -20
  122. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -21
  123. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -22
  124. package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +2 -20
  125. package/dist-types/ts3.4/commands/UpdateDeploymentGroupCommand.d.ts +2 -20
  126. package/dist-types/ts3.4/commands/index.d.ts +47 -0
  127. package/dist-types/ts3.4/index.d.ts +5 -57
  128. package/dist-types/ts3.4/models/models_0.d.ts +1001 -4081
  129. package/dist-types/ts3.4/pagination/index.d.ts +7 -0
  130. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  131. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  132. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  133. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  134. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  135. package/dist-types/ts3.4/waiters/waitForDeploymentSuccessful.d.ts +2 -9
  136. package/dist-types/waiters/index.d.ts +1 -0
  137. package/package.json +33 -33
@@ -4,22 +4,13 @@ exports.paginateListApplicationRevisions = void 0;
4
4
  const CodeDeploy_1 = require("../CodeDeploy");
5
5
  const CodeDeployClient_1 = require("../CodeDeployClient");
6
6
  const ListApplicationRevisionsCommand_1 = require("../commands/ListApplicationRevisionsCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListApplicationRevisionsCommand_1.ListApplicationRevisionsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listApplicationRevisions(input, ...args);
20
12
  };
21
13
  async function* paginateListApplicationRevisions(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -38,7 +29,6 @@ async function* paginateListApplicationRevisions(config, input, ...additionalArg
38
29
  token = page.nextToken;
39
30
  hasNext = !!token;
40
31
  }
41
- // @ts-ignore
42
32
  return undefined;
43
33
  }
44
34
  exports.paginateListApplicationRevisions = paginateListApplicationRevisions;
@@ -4,22 +4,13 @@ exports.paginateListApplications = void 0;
4
4
  const CodeDeploy_1 = require("../CodeDeploy");
5
5
  const CodeDeployClient_1 = require("../CodeDeployClient");
6
6
  const ListApplicationsCommand_1 = require("../commands/ListApplicationsCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListApplicationsCommand_1.ListApplicationsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listApplications(input, ...args);
20
12
  };
21
13
  async function* paginateListApplications(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -38,7 +29,6 @@ async function* paginateListApplications(config, input, ...additionalArguments)
38
29
  token = page.nextToken;
39
30
  hasNext = !!token;
40
31
  }
41
- // @ts-ignore
42
32
  return undefined;
43
33
  }
44
34
  exports.paginateListApplications = paginateListApplications;
@@ -4,22 +4,13 @@ exports.paginateListDeploymentConfigs = void 0;
4
4
  const CodeDeploy_1 = require("../CodeDeploy");
5
5
  const CodeDeployClient_1 = require("../CodeDeployClient");
6
6
  const ListDeploymentConfigsCommand_1 = require("../commands/ListDeploymentConfigsCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListDeploymentConfigsCommand_1.ListDeploymentConfigsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listDeploymentConfigs(input, ...args);
20
12
  };
21
13
  async function* paginateListDeploymentConfigs(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -38,7 +29,6 @@ async function* paginateListDeploymentConfigs(config, input, ...additionalArgume
38
29
  token = page.nextToken;
39
30
  hasNext = !!token;
40
31
  }
41
- // @ts-ignore
42
32
  return undefined;
43
33
  }
44
34
  exports.paginateListDeploymentConfigs = paginateListDeploymentConfigs;
@@ -4,22 +4,13 @@ exports.paginateListDeploymentGroups = void 0;
4
4
  const CodeDeploy_1 = require("../CodeDeploy");
5
5
  const CodeDeployClient_1 = require("../CodeDeployClient");
6
6
  const ListDeploymentGroupsCommand_1 = require("../commands/ListDeploymentGroupsCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListDeploymentGroupsCommand_1.ListDeploymentGroupsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listDeploymentGroups(input, ...args);
20
12
  };
21
13
  async function* paginateListDeploymentGroups(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -38,7 +29,6 @@ async function* paginateListDeploymentGroups(config, input, ...additionalArgumen
38
29
  token = page.nextToken;
39
30
  hasNext = !!token;
40
31
  }
41
- // @ts-ignore
42
32
  return undefined;
43
33
  }
44
34
  exports.paginateListDeploymentGroups = paginateListDeploymentGroups;
@@ -4,22 +4,13 @@ exports.paginateListDeploymentInstances = void 0;
4
4
  const CodeDeploy_1 = require("../CodeDeploy");
5
5
  const CodeDeployClient_1 = require("../CodeDeployClient");
6
6
  const ListDeploymentInstancesCommand_1 = require("../commands/ListDeploymentInstancesCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListDeploymentInstancesCommand_1.ListDeploymentInstancesCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listDeploymentInstances(input, ...args);
20
12
  };
21
13
  async function* paginateListDeploymentInstances(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -38,7 +29,6 @@ async function* paginateListDeploymentInstances(config, input, ...additionalArgu
38
29
  token = page.nextToken;
39
30
  hasNext = !!token;
40
31
  }
41
- // @ts-ignore
42
32
  return undefined;
43
33
  }
44
34
  exports.paginateListDeploymentInstances = paginateListDeploymentInstances;
@@ -4,22 +4,13 @@ exports.paginateListDeployments = void 0;
4
4
  const CodeDeploy_1 = require("../CodeDeploy");
5
5
  const CodeDeployClient_1 = require("../CodeDeployClient");
6
6
  const ListDeploymentsCommand_1 = require("../commands/ListDeploymentsCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListDeploymentsCommand_1.ListDeploymentsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listDeployments(input, ...args);
20
12
  };
21
13
  async function* paginateListDeployments(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.nextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -38,7 +29,6 @@ async function* paginateListDeployments(config, input, ...additionalArguments) {
38
29
  token = page.nextToken;
39
30
  hasNext = !!token;
40
31
  }
41
- // @ts-ignore
42
32
  return undefined;
43
33
  }
44
34
  exports.paginateListDeployments = paginateListDeployments;
@@ -0,0 +1,10 @@
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("./ListApplicationRevisionsPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListApplicationsPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListDeploymentConfigsPaginator"), exports);
8
+ tslib_1.__exportStar(require("./ListDeploymentGroupsPaginator"), exports);
9
+ tslib_1.__exportStar(require("./ListDeploymentInstancesPaginator"), exports);
10
+ tslib_1.__exportStar(require("./ListDeploymentsPaginator"), exports);
@@ -8935,14 +8935,12 @@ const deserializeMetadata = (output) => {
8935
8935
  cfId: output.headers["x-amz-cf-id"],
8936
8936
  });
8937
8937
  };
8938
- // Collect low-level response body stream to Uint8Array.
8939
8938
  const collectBody = (streamBody = new Uint8Array(), context) => {
8940
8939
  if (streamBody instanceof Uint8Array) {
8941
8940
  return Promise.resolve(streamBody);
8942
8941
  }
8943
8942
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
8944
8943
  };
8945
- // Encode Uint8Array data into string with utf-8.
8946
8944
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
8947
8945
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
8948
8946
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -8968,9 +8966,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
8968
8966
  }
8969
8967
  return {};
8970
8968
  });
8971
- /**
8972
- * Load an error code for the aws.rest-json-1.1 protocol.
8973
- */
8974
8969
  const loadRestJsonErrorCode = (output, data) => {
8975
8970
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
8976
8971
  const sanitizeErrorCode = (rawValue) => {
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
8
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- /**
17
- * @internal
18
- */
19
15
  const getRuntimeConfig = (config) => {
20
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
21
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const client_sts_1 = require("@aws-sdk/client-sts");
8
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
9
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -17,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
17
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
20
- /**
21
- * @internal
22
- */
23
19
  const getRuntimeConfig = (config) => {
24
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
25
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -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("./waitForDeploymentSuccessful"), exports);
@@ -41,20 +41,11 @@ const checkState = async (client, input) => {
41
41
  }
42
42
  return { state: util_waiter_1.WaiterState.RETRY, reason };
43
43
  };
44
- /**
45
- *
46
- * @deprecated Use waitUntilDeploymentSuccessful instead. waitForDeploymentSuccessful does not throw error in non-success cases.
47
- */
48
44
  const waitForDeploymentSuccessful = async (params, input) => {
49
45
  const serviceDefaults = { minDelay: 15, maxDelay: 120 };
50
46
  return util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
51
47
  };
52
48
  exports.waitForDeploymentSuccessful = waitForDeploymentSuccessful;
53
- /**
54
- *
55
- * @param params - Waiter configuration options.
56
- * @param input - The input to GetDeploymentCommand for polling.
57
- */
58
49
  const waitUntilDeploymentSuccessful = async (params, input) => {
59
50
  const serviceDefaults = { minDelay: 15, maxDelay: 120 };
60
51
  const result = await util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
@@ -0,0 +1,47 @@
1
+ export * from "./AddTagsToOnPremisesInstancesCommand";
2
+ export * from "./BatchGetApplicationRevisionsCommand";
3
+ export * from "./BatchGetApplicationsCommand";
4
+ export * from "./BatchGetDeploymentGroupsCommand";
5
+ export * from "./BatchGetDeploymentInstancesCommand";
6
+ export * from "./BatchGetDeploymentTargetsCommand";
7
+ export * from "./BatchGetDeploymentsCommand";
8
+ export * from "./BatchGetOnPremisesInstancesCommand";
9
+ export * from "./ContinueDeploymentCommand";
10
+ export * from "./CreateApplicationCommand";
11
+ export * from "./CreateDeploymentCommand";
12
+ export * from "./CreateDeploymentConfigCommand";
13
+ export * from "./CreateDeploymentGroupCommand";
14
+ export * from "./DeleteApplicationCommand";
15
+ export * from "./DeleteDeploymentConfigCommand";
16
+ export * from "./DeleteDeploymentGroupCommand";
17
+ export * from "./DeleteGitHubAccountTokenCommand";
18
+ export * from "./DeleteResourcesByExternalIdCommand";
19
+ export * from "./DeregisterOnPremisesInstanceCommand";
20
+ export * from "./GetApplicationCommand";
21
+ export * from "./GetApplicationRevisionCommand";
22
+ export * from "./GetDeploymentCommand";
23
+ export * from "./GetDeploymentConfigCommand";
24
+ export * from "./GetDeploymentGroupCommand";
25
+ export * from "./GetDeploymentInstanceCommand";
26
+ export * from "./GetDeploymentTargetCommand";
27
+ export * from "./GetOnPremisesInstanceCommand";
28
+ export * from "./ListApplicationRevisionsCommand";
29
+ export * from "./ListApplicationsCommand";
30
+ export * from "./ListDeploymentConfigsCommand";
31
+ export * from "./ListDeploymentGroupsCommand";
32
+ export * from "./ListDeploymentInstancesCommand";
33
+ export * from "./ListDeploymentTargetsCommand";
34
+ export * from "./ListDeploymentsCommand";
35
+ export * from "./ListGitHubAccountTokenNamesCommand";
36
+ export * from "./ListOnPremisesInstancesCommand";
37
+ export * from "./ListTagsForResourceCommand";
38
+ export * from "./PutLifecycleEventHookExecutionStatusCommand";
39
+ export * from "./RegisterApplicationRevisionCommand";
40
+ export * from "./RegisterOnPremisesInstanceCommand";
41
+ export * from "./RemoveTagsFromOnPremisesInstancesCommand";
42
+ export * from "./SkipWaitTimeForInstanceTerminationCommand";
43
+ export * from "./StopDeploymentCommand";
44
+ export * from "./TagResourceCommand";
45
+ export * from "./UntagResourceCommand";
46
+ export * from "./UpdateApplicationCommand";
47
+ export * from "./UpdateDeploymentGroupCommand";
@@ -55,22 +55,27 @@ var partitionHash = {
55
55
  "us-west-2",
56
56
  "us-west-2-fips",
57
57
  ],
58
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
58
59
  hostname: "codedeploy.{region}.amazonaws.com",
59
60
  },
60
61
  "aws-cn": {
61
62
  regions: ["cn-north-1", "cn-northwest-1"],
63
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
62
64
  hostname: "codedeploy.{region}.amazonaws.com.cn",
63
65
  },
64
66
  "aws-iso": {
65
- regions: ["us-iso-east-1"],
67
+ regions: ["us-iso-east-1", "us-iso-west-1"],
68
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
66
69
  hostname: "codedeploy.{region}.c2s.ic.gov",
67
70
  },
68
71
  "aws-iso-b": {
69
72
  regions: ["us-isob-east-1"],
73
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
70
74
  hostname: "codedeploy.{region}.sc2s.sgov.gov",
71
75
  },
72
76
  "aws-us-gov": {
73
77
  regions: ["us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"],
78
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
74
79
  hostname: "codedeploy.{region}.amazonaws.com",
75
80
  },
76
81
  };
package/dist-es/index.js CHANGED
@@ -1,58 +1,6 @@
1
- export * from "./CodeDeployClient";
2
1
  export * from "./CodeDeploy";
3
- export * from "./commands/AddTagsToOnPremisesInstancesCommand";
4
- export * from "./commands/BatchGetApplicationRevisionsCommand";
5
- export * from "./commands/BatchGetApplicationsCommand";
6
- export * from "./commands/BatchGetDeploymentGroupsCommand";
7
- export * from "./commands/BatchGetDeploymentInstancesCommand";
8
- export * from "./commands/BatchGetDeploymentsCommand";
9
- export * from "./commands/BatchGetDeploymentTargetsCommand";
10
- export * from "./commands/BatchGetOnPremisesInstancesCommand";
11
- export * from "./commands/ContinueDeploymentCommand";
12
- export * from "./commands/CreateApplicationCommand";
13
- export * from "./commands/CreateDeploymentCommand";
14
- export * from "./commands/CreateDeploymentConfigCommand";
15
- export * from "./commands/CreateDeploymentGroupCommand";
16
- export * from "./commands/DeleteApplicationCommand";
17
- export * from "./commands/DeleteDeploymentConfigCommand";
18
- export * from "./commands/DeleteDeploymentGroupCommand";
19
- export * from "./commands/DeleteGitHubAccountTokenCommand";
20
- export * from "./commands/DeleteResourcesByExternalIdCommand";
21
- export * from "./commands/DeregisterOnPremisesInstanceCommand";
22
- export * from "./commands/GetApplicationCommand";
23
- export * from "./commands/GetApplicationRevisionCommand";
24
- export * from "./commands/GetDeploymentCommand";
25
- export * from "./waiters/waitForDeploymentSuccessful";
26
- export * from "./commands/GetDeploymentConfigCommand";
27
- export * from "./commands/GetDeploymentGroupCommand";
28
- export * from "./commands/GetDeploymentInstanceCommand";
29
- export * from "./commands/GetDeploymentTargetCommand";
30
- export * from "./commands/GetOnPremisesInstanceCommand";
31
- export * from "./commands/ListApplicationRevisionsCommand";
32
- export * from "./pagination/ListApplicationRevisionsPaginator";
33
- export * from "./commands/ListApplicationsCommand";
34
- export * from "./pagination/ListApplicationsPaginator";
35
- export * from "./commands/ListDeploymentConfigsCommand";
36
- export * from "./pagination/ListDeploymentConfigsPaginator";
37
- export * from "./commands/ListDeploymentGroupsCommand";
38
- export * from "./pagination/ListDeploymentGroupsPaginator";
39
- export * from "./commands/ListDeploymentInstancesCommand";
40
- export * from "./pagination/ListDeploymentInstancesPaginator";
41
- export * from "./commands/ListDeploymentsCommand";
42
- export * from "./pagination/ListDeploymentsPaginator";
43
- export * from "./commands/ListDeploymentTargetsCommand";
44
- export * from "./commands/ListGitHubAccountTokenNamesCommand";
45
- export * from "./commands/ListOnPremisesInstancesCommand";
46
- export * from "./commands/ListTagsForResourceCommand";
47
- export * from "./commands/PutLifecycleEventHookExecutionStatusCommand";
48
- export * from "./commands/RegisterApplicationRevisionCommand";
49
- export * from "./commands/RegisterOnPremisesInstanceCommand";
50
- export * from "./commands/RemoveTagsFromOnPremisesInstancesCommand";
51
- export * from "./commands/SkipWaitTimeForInstanceTerminationCommand";
52
- export * from "./commands/StopDeploymentCommand";
53
- export * from "./commands/TagResourceCommand";
54
- export * from "./commands/UntagResourceCommand";
55
- export * from "./commands/UpdateApplicationCommand";
56
- export * from "./commands/UpdateDeploymentGroupCommand";
57
- export * from "./pagination/Interfaces";
58
- export * from "./models/index";
2
+ export * from "./CodeDeployClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
@@ -0,0 +1,7 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListApplicationRevisionsPaginator";
3
+ export * from "./ListApplicationsPaginator";
4
+ export * from "./ListDeploymentConfigsPaginator";
5
+ export * from "./ListDeploymentGroupsPaginator";
6
+ export * from "./ListDeploymentInstancesPaginator";
7
+ export * from "./ListDeploymentsPaginator";
@@ -0,0 +1 @@
1
+ export * from "./waitForDeploymentSuccessful";
@@ -0,0 +1,47 @@
1
+ export * from "./AddTagsToOnPremisesInstancesCommand";
2
+ export * from "./BatchGetApplicationRevisionsCommand";
3
+ export * from "./BatchGetApplicationsCommand";
4
+ export * from "./BatchGetDeploymentGroupsCommand";
5
+ export * from "./BatchGetDeploymentInstancesCommand";
6
+ export * from "./BatchGetDeploymentTargetsCommand";
7
+ export * from "./BatchGetDeploymentsCommand";
8
+ export * from "./BatchGetOnPremisesInstancesCommand";
9
+ export * from "./ContinueDeploymentCommand";
10
+ export * from "./CreateApplicationCommand";
11
+ export * from "./CreateDeploymentCommand";
12
+ export * from "./CreateDeploymentConfigCommand";
13
+ export * from "./CreateDeploymentGroupCommand";
14
+ export * from "./DeleteApplicationCommand";
15
+ export * from "./DeleteDeploymentConfigCommand";
16
+ export * from "./DeleteDeploymentGroupCommand";
17
+ export * from "./DeleteGitHubAccountTokenCommand";
18
+ export * from "./DeleteResourcesByExternalIdCommand";
19
+ export * from "./DeregisterOnPremisesInstanceCommand";
20
+ export * from "./GetApplicationCommand";
21
+ export * from "./GetApplicationRevisionCommand";
22
+ export * from "./GetDeploymentCommand";
23
+ export * from "./GetDeploymentConfigCommand";
24
+ export * from "./GetDeploymentGroupCommand";
25
+ export * from "./GetDeploymentInstanceCommand";
26
+ export * from "./GetDeploymentTargetCommand";
27
+ export * from "./GetOnPremisesInstanceCommand";
28
+ export * from "./ListApplicationRevisionsCommand";
29
+ export * from "./ListApplicationsCommand";
30
+ export * from "./ListDeploymentConfigsCommand";
31
+ export * from "./ListDeploymentGroupsCommand";
32
+ export * from "./ListDeploymentInstancesCommand";
33
+ export * from "./ListDeploymentTargetsCommand";
34
+ export * from "./ListDeploymentsCommand";
35
+ export * from "./ListGitHubAccountTokenNamesCommand";
36
+ export * from "./ListOnPremisesInstancesCommand";
37
+ export * from "./ListTagsForResourceCommand";
38
+ export * from "./PutLifecycleEventHookExecutionStatusCommand";
39
+ export * from "./RegisterApplicationRevisionCommand";
40
+ export * from "./RegisterOnPremisesInstanceCommand";
41
+ export * from "./RemoveTagsFromOnPremisesInstancesCommand";
42
+ export * from "./SkipWaitTimeForInstanceTerminationCommand";
43
+ export * from "./StopDeploymentCommand";
44
+ export * from "./TagResourceCommand";
45
+ export * from "./UntagResourceCommand";
46
+ export * from "./UpdateApplicationCommand";
47
+ export * from "./UpdateDeploymentGroupCommand";
@@ -1,58 +1,6 @@
1
- export * from "./CodeDeployClient";
2
1
  export * from "./CodeDeploy";
3
- export * from "./commands/AddTagsToOnPremisesInstancesCommand";
4
- export * from "./commands/BatchGetApplicationRevisionsCommand";
5
- export * from "./commands/BatchGetApplicationsCommand";
6
- export * from "./commands/BatchGetDeploymentGroupsCommand";
7
- export * from "./commands/BatchGetDeploymentInstancesCommand";
8
- export * from "./commands/BatchGetDeploymentsCommand";
9
- export * from "./commands/BatchGetDeploymentTargetsCommand";
10
- export * from "./commands/BatchGetOnPremisesInstancesCommand";
11
- export * from "./commands/ContinueDeploymentCommand";
12
- export * from "./commands/CreateApplicationCommand";
13
- export * from "./commands/CreateDeploymentCommand";
14
- export * from "./commands/CreateDeploymentConfigCommand";
15
- export * from "./commands/CreateDeploymentGroupCommand";
16
- export * from "./commands/DeleteApplicationCommand";
17
- export * from "./commands/DeleteDeploymentConfigCommand";
18
- export * from "./commands/DeleteDeploymentGroupCommand";
19
- export * from "./commands/DeleteGitHubAccountTokenCommand";
20
- export * from "./commands/DeleteResourcesByExternalIdCommand";
21
- export * from "./commands/DeregisterOnPremisesInstanceCommand";
22
- export * from "./commands/GetApplicationCommand";
23
- export * from "./commands/GetApplicationRevisionCommand";
24
- export * from "./commands/GetDeploymentCommand";
25
- export * from "./waiters/waitForDeploymentSuccessful";
26
- export * from "./commands/GetDeploymentConfigCommand";
27
- export * from "./commands/GetDeploymentGroupCommand";
28
- export * from "./commands/GetDeploymentInstanceCommand";
29
- export * from "./commands/GetDeploymentTargetCommand";
30
- export * from "./commands/GetOnPremisesInstanceCommand";
31
- export * from "./commands/ListApplicationRevisionsCommand";
32
- export * from "./pagination/ListApplicationRevisionsPaginator";
33
- export * from "./commands/ListApplicationsCommand";
34
- export * from "./pagination/ListApplicationsPaginator";
35
- export * from "./commands/ListDeploymentConfigsCommand";
36
- export * from "./pagination/ListDeploymentConfigsPaginator";
37
- export * from "./commands/ListDeploymentGroupsCommand";
38
- export * from "./pagination/ListDeploymentGroupsPaginator";
39
- export * from "./commands/ListDeploymentInstancesCommand";
40
- export * from "./pagination/ListDeploymentInstancesPaginator";
41
- export * from "./commands/ListDeploymentsCommand";
42
- export * from "./pagination/ListDeploymentsPaginator";
43
- export * from "./commands/ListDeploymentTargetsCommand";
44
- export * from "./commands/ListGitHubAccountTokenNamesCommand";
45
- export * from "./commands/ListOnPremisesInstancesCommand";
46
- export * from "./commands/ListTagsForResourceCommand";
47
- export * from "./commands/PutLifecycleEventHookExecutionStatusCommand";
48
- export * from "./commands/RegisterApplicationRevisionCommand";
49
- export * from "./commands/RegisterOnPremisesInstanceCommand";
50
- export * from "./commands/RemoveTagsFromOnPremisesInstancesCommand";
51
- export * from "./commands/SkipWaitTimeForInstanceTerminationCommand";
52
- export * from "./commands/StopDeploymentCommand";
53
- export * from "./commands/TagResourceCommand";
54
- export * from "./commands/UntagResourceCommand";
55
- export * from "./commands/UpdateApplicationCommand";
56
- export * from "./commands/UpdateDeploymentGroupCommand";
57
- export * from "./pagination/Interfaces";
58
- export * from "./models/index";
2
+ export * from "./CodeDeployClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export * from "./waiters";
@@ -0,0 +1,7 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListApplicationRevisionsPaginator";
3
+ export * from "./ListApplicationsPaginator";
4
+ export * from "./ListDeploymentConfigsPaginator";
5
+ export * from "./ListDeploymentGroupsPaginator";
6
+ export * from "./ListDeploymentInstancesPaginator";
7
+ export * from "./ListDeploymentsPaginator";