@aws-sdk/client-appconfig 3.41.0 → 3.46.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 (37) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +19 -24
  3. package/dist-cjs/endpoints.js +1 -0
  4. package/dist-cjs/models/models_0.js +29 -2
  5. package/dist-cjs/protocols/Aws_restJson1.js +49 -0
  6. package/dist-cjs/runtimeConfig.js +0 -2
  7. package/dist-es/endpoints.js +1 -0
  8. package/dist-es/models/models_0.js +28 -1
  9. package/dist-es/protocols/Aws_restJson1.js +51 -4
  10. package/dist-es/runtimeConfig.js +0 -2
  11. package/dist-types/AppConfig.d.ts +75 -70
  12. package/dist-types/AppConfigClient.d.ts +19 -23
  13. package/dist-types/commands/CreateApplicationCommand.d.ts +5 -4
  14. package/dist-types/commands/CreateConfigurationProfileCommand.d.ts +13 -9
  15. package/dist-types/commands/CreateDeploymentStrategyCommand.d.ts +4 -4
  16. package/dist-types/commands/CreateEnvironmentCommand.d.ts +8 -7
  17. package/dist-types/commands/CreateHostedConfigurationVersionCommand.d.ts +1 -1
  18. package/dist-types/commands/DeleteApplicationCommand.d.ts +1 -1
  19. package/dist-types/commands/DeleteConfigurationProfileCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteDeploymentStrategyCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteEnvironmentCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteHostedConfigurationVersionCommand.d.ts +2 -1
  23. package/dist-types/commands/GetApplicationCommand.d.ts +1 -1
  24. package/dist-types/commands/GetConfigurationCommand.d.ts +3 -3
  25. package/dist-types/commands/GetConfigurationProfileCommand.d.ts +1 -1
  26. package/dist-types/commands/GetDeploymentCommand.d.ts +1 -1
  27. package/dist-types/commands/GetDeploymentStrategyCommand.d.ts +2 -2
  28. package/dist-types/commands/GetEnvironmentCommand.d.ts +1 -1
  29. package/dist-types/commands/GetHostedConfigurationVersionCommand.d.ts +1 -1
  30. package/dist-types/commands/ListApplicationsCommand.d.ts +1 -1
  31. package/dist-types/commands/ListDeploymentStrategiesCommand.d.ts +1 -1
  32. package/dist-types/commands/ListEnvironmentsCommand.d.ts +1 -1
  33. package/dist-types/commands/ListHostedConfigurationVersionsCommand.d.ts +1 -1
  34. package/dist-types/commands/TagResourceCommand.d.ts +5 -3
  35. package/dist-types/models/models_0.d.ts +152 -46
  36. package/dist-types/ts3.4/models/models_0.d.ts +53 -1
  37. package/package.json +36 -43
package/CHANGELOG.md CHANGED
@@ -3,6 +3,53 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
12
+
13
+
14
+ ### Features
15
+
16
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
17
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
18
+
19
+
20
+
21
+
22
+
23
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
24
+
25
+
26
+ ### Features
27
+
28
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
29
+
30
+
31
+
32
+
33
+
34
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
35
+
36
+
37
+ ### Features
38
+
39
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
40
+
41
+
42
+
43
+
44
+
45
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
46
+
47
+ **Note:** Version bump only for package @aws-sdk/client-appconfig
48
+
49
+
50
+
51
+
52
+
6
53
  # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
7
54
 
8
55
 
package/README.md CHANGED
@@ -7,30 +7,25 @@
7
7
 
8
8
  AWS SDK for JavaScript AppConfig Client for Node.js, Browser and React Native.
9
9
 
10
- <fullname>AWS AppConfig</fullname>
11
-
12
- <p>Use AWS AppConfig, a capability of AWS Systems Manager, to create, manage, and quickly deploy
13
- application configurations. AppConfig supports controlled deployments to applications of any
14
- size and includes built-in validation checks and monitoring. You can use AppConfig with
15
- applications hosted on Amazon EC2 instances, AWS Lambda, containers, mobile applications, or IoT
10
+ <p>Use AppConfig, a capability of Amazon Web Services Systems Manager, to create, manage, and quickly deploy
11
+ application configurations. AppConfig supports controlled deployments to applications of
12
+ any size and includes built-in validation checks and monitoring. You can use AppConfig with
13
+ applications hosted on Amazon EC2 instances, Lambda, containers, mobile applications, or IoT
16
14
  devices.</p>
17
-
18
15
  <p>To prevent errors when deploying application configurations, especially for production
19
- systems where a simple typo could cause an unexpected outage, AppConfig includes validators.
20
- A validator provides a syntactic or semantic check to ensure that the configuration you
21
- want to deploy works as intended. To validate your application configuration data, you
22
- provide a schema or a Lambda function that runs against the configuration. The
23
- configuration deployment or update can only proceed when the configuration data is
24
- valid.</p>
25
-
16
+ systems where a simple typo could cause an unexpected outage, AppConfig includes
17
+ validators. A validator provides a syntactic or semantic check to ensure that the
18
+ configuration you want to deploy works as intended. To validate your application
19
+ configuration data, you provide a schema or a Lambda function that runs against the
20
+ configuration. The configuration deployment or update can only proceed when the
21
+ configuration data is valid.</p>
26
22
  <p>During a configuration deployment, AppConfig monitors the application to ensure that the
27
- deployment is successful. If the system encounters an error, AppConfig rolls back the change
28
- to minimize impact for your application users. You can configure a deployment strategy for
29
- each application or environment that includes deployment criteria, including velocity, bake
30
- time, and alarms to monitor. Similar to error monitoring, if a deployment triggers an
31
- alarm, AppConfig automatically rolls back to the previous version. </p>
32
-
33
- <p>AppConfig supports multiple use cases. Here are some examples.</p>
23
+ deployment is successful. If the system encounters an error, AppConfig rolls back the
24
+ change to minimize impact for your application users. You can configure a deployment
25
+ strategy for each application or environment that includes deployment criteria, including
26
+ velocity, bake time, and alarms to monitor. Similar to error monitoring, if a deployment
27
+ triggers an alarm, AppConfig automatically rolls back to the previous version. </p>
28
+ <p>AppConfig supports multiple use cases. Here are some examples:</p>
34
29
  <ul>
35
30
  <li>
36
31
  <p>
@@ -51,12 +46,12 @@ subscribers to access paid content. </p>
51
46
  </li>
52
47
  <li>
53
48
  <p>
54
- <b>Operational issues</b>: Use AppConfig to reduce stress
55
- on your application when a dependency or other external factor impacts the
49
+ <b>Operational issues</b>: Use AppConfig to reduce
50
+ stress on your application when a dependency or other external factor impacts the
56
51
  system.</p>
57
52
  </li>
58
53
  </ul>
59
- <p>This reference is intended to be used with the <a href="http://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig.html">AWS AppConfig User Guide</a>.</p>
54
+ <p>This reference is intended to be used with the <a href="http://docs.aws.amazon.com/appconfig/latest/userguide/what-is-appconfig.html">AppConfig User Guide</a>.</p>
60
55
 
61
56
  ## Installing
62
57
 
@@ -14,6 +14,7 @@ const partitionHash = {
14
14
  "ap-south-1",
15
15
  "ap-southeast-1",
16
16
  "ap-southeast-2",
17
+ "ap-southeast-3",
17
18
  "ca-central-1",
18
19
  "eu-central-1",
19
20
  "eu-north-1",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeploymentStrategies = exports.ListDeploymentsRequest = exports.Deployments = exports.DeploymentSummary = exports.ListConfigurationProfilesRequest = exports.ConfigurationProfiles = exports.ConfigurationProfileSummary = exports.ListApplicationsRequest = exports.Applications = exports.GetHostedConfigurationVersionRequest = exports.GetEnvironmentRequest = exports.GetDeploymentStrategyRequest = exports.GetDeploymentRequest = exports.Deployment = exports.DeploymentState = exports.DeploymentEvent = exports.TriggeredBy = exports.DeploymentEventType = exports.GetConfigurationProfileRequest = exports.GetConfigurationRequest = exports.Configuration = exports.GetApplicationRequest = exports.DeleteHostedConfigurationVersionRequest = exports.DeleteEnvironmentRequest = exports.DeleteDeploymentStrategyRequest = exports.DeleteConfigurationProfileRequest = exports.DeleteApplicationRequest = exports.ServiceQuotaExceededException = exports.PayloadTooLargeException = exports.BytesMeasure = exports.HostedConfigurationVersion = exports.CreateHostedConfigurationVersionRequest = exports.ConflictException = exports.Environment = exports.EnvironmentState = exports.CreateEnvironmentRequest = exports.Monitor = exports.DeploymentStrategy = exports.CreateDeploymentStrategyRequest = exports.ReplicateTo = exports.GrowthType = exports.ResourceNotFoundException = exports.CreateConfigurationProfileRequest = exports.ConfigurationProfile = exports.Validator = exports.ValidatorType = exports.InternalServerException = exports.CreateApplicationRequest = exports.BadRequestException = exports.Application = void 0;
4
- exports.ValidateConfigurationRequest = exports.UpdateEnvironmentRequest = exports.UpdateDeploymentStrategyRequest = exports.UpdateConfigurationProfileRequest = exports.UpdateApplicationRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.StopDeploymentRequest = exports.StartDeploymentRequest = exports.ResourceTags = exports.ListTagsForResourceRequest = exports.ListHostedConfigurationVersionsRequest = exports.HostedConfigurationVersions = exports.HostedConfigurationVersionSummary = exports.ListEnvironmentsRequest = exports.Environments = exports.ListDeploymentStrategiesRequest = void 0;
3
+ exports.DeploymentSummary = exports.ListConfigurationProfilesRequest = exports.ConfigurationProfiles = exports.ConfigurationProfileSummary = exports.ListApplicationsRequest = exports.Applications = exports.GetHostedConfigurationVersionRequest = exports.GetEnvironmentRequest = exports.GetDeploymentStrategyRequest = exports.GetDeploymentRequest = exports.Deployment = exports.DeploymentState = exports.DeploymentEvent = exports.TriggeredBy = exports.DeploymentEventType = exports.GetConfigurationProfileRequest = exports.GetConfigurationRequest = exports.Configuration = exports.GetApplicationRequest = exports.DeleteHostedConfigurationVersionRequest = exports.DeleteEnvironmentRequest = exports.DeleteDeploymentStrategyRequest = exports.DeleteConfigurationProfileRequest = exports.DeleteApplicationRequest = exports.ServiceQuotaExceededException = exports.PayloadTooLargeException = exports.BytesMeasure = exports.HostedConfigurationVersion = exports.CreateHostedConfigurationVersionRequest = exports.ConflictException = exports.Environment = exports.EnvironmentState = exports.CreateEnvironmentRequest = exports.Monitor = exports.DeploymentStrategy = exports.CreateDeploymentStrategyRequest = exports.ReplicateTo = exports.GrowthType = exports.ResourceNotFoundException = exports.CreateConfigurationProfileRequest = exports.ConfigurationProfile = exports.Validator = exports.ValidatorType = exports.InternalServerException = exports.CreateApplicationRequest = exports.BadRequestException = exports.BadRequestReason = exports.BadRequestDetails = exports.InvalidConfigurationDetail = exports.Application = void 0;
4
+ exports.ValidateConfigurationRequest = exports.UpdateEnvironmentRequest = exports.UpdateDeploymentStrategyRequest = exports.UpdateConfigurationProfileRequest = exports.UpdateApplicationRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.StopDeploymentRequest = exports.StartDeploymentRequest = exports.ResourceTags = exports.ListTagsForResourceRequest = exports.ListHostedConfigurationVersionsRequest = exports.HostedConfigurationVersions = exports.HostedConfigurationVersionSummary = exports.ListEnvironmentsRequest = exports.Environments = exports.ListDeploymentStrategiesRequest = exports.DeploymentStrategies = exports.ListDeploymentsRequest = exports.Deployments = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  var Application;
7
7
  (function (Application) {
@@ -9,10 +9,37 @@ var Application;
9
9
  ...obj,
10
10
  });
11
11
  })(Application = exports.Application || (exports.Application = {}));
12
+ var InvalidConfigurationDetail;
13
+ (function (InvalidConfigurationDetail) {
14
+ InvalidConfigurationDetail.filterSensitiveLog = (obj) => ({
15
+ ...obj,
16
+ });
17
+ })(InvalidConfigurationDetail = exports.InvalidConfigurationDetail || (exports.InvalidConfigurationDetail = {}));
18
+ var BadRequestDetails;
19
+ (function (BadRequestDetails) {
20
+ BadRequestDetails.visit = (value, visitor) => {
21
+ if (value.InvalidConfiguration !== undefined)
22
+ return visitor.InvalidConfiguration(value.InvalidConfiguration);
23
+ return visitor._(value.$unknown[0], value.$unknown[1]);
24
+ };
25
+ BadRequestDetails.filterSensitiveLog = (obj) => {
26
+ if (obj.InvalidConfiguration !== undefined)
27
+ return {
28
+ InvalidConfiguration: obj.InvalidConfiguration.map((item) => InvalidConfigurationDetail.filterSensitiveLog(item)),
29
+ };
30
+ if (obj.$unknown !== undefined)
31
+ return { [obj.$unknown[0]]: "UNKNOWN" };
32
+ };
33
+ })(BadRequestDetails = exports.BadRequestDetails || (exports.BadRequestDetails = {}));
34
+ var BadRequestReason;
35
+ (function (BadRequestReason) {
36
+ BadRequestReason["INVALID_CONFIGURATION"] = "InvalidConfiguration";
37
+ })(BadRequestReason = exports.BadRequestReason || (exports.BadRequestReason = {}));
12
38
  var BadRequestException;
13
39
  (function (BadRequestException) {
14
40
  BadRequestException.filterSensitiveLog = (obj) => ({
15
41
  ...obj,
42
+ ...(obj.Details && { Details: BadRequestDetails.filterSensitiveLog(obj.Details) }),
16
43
  });
17
44
  })(BadRequestException = exports.BadRequestException || (exports.BadRequestException = {}));
18
45
  var CreateApplicationRequest;
@@ -52,6 +52,7 @@ const serializeAws_restJson1CreateConfigurationProfileCommand = async (input, co
52
52
  ...(input.RetrievalRoleArn !== undefined &&
53
53
  input.RetrievalRoleArn !== null && { RetrievalRoleArn: input.RetrievalRoleArn }),
54
54
  ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
55
+ ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
55
56
  ...(input.Validators !== undefined &&
56
57
  input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) }),
57
58
  });
@@ -668,6 +669,7 @@ const serializeAws_restJson1ListConfigurationProfilesCommand = async (input, con
668
669
  const query = {
669
670
  ...(input.MaxResults !== undefined && { max_results: input.MaxResults.toString() }),
670
671
  ...(input.NextToken !== undefined && { next_token: input.NextToken }),
672
+ ...(input.Type !== undefined && { type: input.Type }),
671
673
  };
672
674
  let body;
673
675
  return new protocol_http_1.HttpRequest({
@@ -1282,6 +1284,7 @@ const deserializeAws_restJson1CreateConfigurationProfileCommand = async (output,
1282
1284
  LocationUri: undefined,
1283
1285
  Name: undefined,
1284
1286
  RetrievalRoleArn: undefined,
1287
+ Type: undefined,
1285
1288
  Validators: undefined,
1286
1289
  };
1287
1290
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
@@ -1303,6 +1306,9 @@ const deserializeAws_restJson1CreateConfigurationProfileCommand = async (output,
1303
1306
  if (data.RetrievalRoleArn !== undefined && data.RetrievalRoleArn !== null) {
1304
1307
  contents.RetrievalRoleArn = smithy_client_1.expectString(data.RetrievalRoleArn);
1305
1308
  }
1309
+ if (data.Type !== undefined && data.Type !== null) {
1310
+ contents.Type = smithy_client_1.expectString(data.Type);
1311
+ }
1306
1312
  if (data.Validators !== undefined && data.Validators !== null) {
1307
1313
  contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
1308
1314
  }
@@ -2102,6 +2108,7 @@ const deserializeAws_restJson1GetConfigurationProfileCommand = async (output, co
2102
2108
  LocationUri: undefined,
2103
2109
  Name: undefined,
2104
2110
  RetrievalRoleArn: undefined,
2111
+ Type: undefined,
2105
2112
  Validators: undefined,
2106
2113
  };
2107
2114
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
@@ -2123,6 +2130,9 @@ const deserializeAws_restJson1GetConfigurationProfileCommand = async (output, co
2123
2130
  if (data.RetrievalRoleArn !== undefined && data.RetrievalRoleArn !== null) {
2124
2131
  contents.RetrievalRoleArn = smithy_client_1.expectString(data.RetrievalRoleArn);
2125
2132
  }
2133
+ if (data.Type !== undefined && data.Type !== null) {
2134
+ contents.Type = smithy_client_1.expectString(data.Type);
2135
+ }
2126
2136
  if (data.Validators !== undefined && data.Validators !== null) {
2127
2137
  contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
2128
2138
  }
@@ -3500,6 +3510,7 @@ const deserializeAws_restJson1UpdateConfigurationProfileCommand = async (output,
3500
3510
  LocationUri: undefined,
3501
3511
  Name: undefined,
3502
3512
  RetrievalRoleArn: undefined,
3513
+ Type: undefined,
3503
3514
  Validators: undefined,
3504
3515
  };
3505
3516
  const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
@@ -3521,6 +3532,9 @@ const deserializeAws_restJson1UpdateConfigurationProfileCommand = async (output,
3521
3532
  if (data.RetrievalRoleArn !== undefined && data.RetrievalRoleArn !== null) {
3522
3533
  contents.RetrievalRoleArn = smithy_client_1.expectString(data.RetrievalRoleArn);
3523
3534
  }
3535
+ if (data.Type !== undefined && data.Type !== null) {
3536
+ contents.Type = smithy_client_1.expectString(data.Type);
3537
+ }
3524
3538
  if (data.Validators !== undefined && data.Validators !== null) {
3525
3539
  contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
3526
3540
  }
@@ -3817,12 +3831,20 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
3817
3831
  name: "BadRequestException",
3818
3832
  $fault: "client",
3819
3833
  $metadata: deserializeMetadata(parsedOutput),
3834
+ Details: undefined,
3820
3835
  Message: undefined,
3836
+ Reason: undefined,
3821
3837
  };
3822
3838
  const data = parsedOutput.body;
3839
+ if (data.Details !== undefined && data.Details !== null) {
3840
+ contents.Details = deserializeAws_restJson1BadRequestDetails(smithy_client_1.expectUnion(data.Details), context);
3841
+ }
3823
3842
  if (data.Message !== undefined && data.Message !== null) {
3824
3843
  contents.Message = smithy_client_1.expectString(data.Message);
3825
3844
  }
3845
+ if (data.Reason !== undefined && data.Reason !== null) {
3846
+ contents.Reason = smithy_client_1.expectString(data.Reason);
3847
+ }
3826
3848
  return contents;
3827
3849
  };
3828
3850
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
@@ -3966,12 +3988,21 @@ const deserializeAws_restJson1ApplicationList = (output, context) => {
3966
3988
  return deserializeAws_restJson1Application(entry, context);
3967
3989
  });
3968
3990
  };
3991
+ const deserializeAws_restJson1BadRequestDetails = (output, context) => {
3992
+ if (output.InvalidConfiguration !== undefined && output.InvalidConfiguration !== null) {
3993
+ return {
3994
+ InvalidConfiguration: deserializeAws_restJson1InvalidConfigurationDetailList(output.InvalidConfiguration, context),
3995
+ };
3996
+ }
3997
+ return { $unknown: Object.entries(output)[0] };
3998
+ };
3969
3999
  const deserializeAws_restJson1ConfigurationProfileSummary = (output, context) => {
3970
4000
  return {
3971
4001
  ApplicationId: smithy_client_1.expectString(output.ApplicationId),
3972
4002
  Id: smithy_client_1.expectString(output.Id),
3973
4003
  LocationUri: smithy_client_1.expectString(output.LocationUri),
3974
4004
  Name: smithy_client_1.expectString(output.Name),
4005
+ Type: smithy_client_1.expectString(output.Type),
3975
4006
  ValidatorTypes: output.ValidatorTypes !== undefined && output.ValidatorTypes !== null
3976
4007
  ? deserializeAws_restJson1ValidatorTypeList(output.ValidatorTypes, context)
3977
4008
  : undefined,
@@ -4099,6 +4130,24 @@ const deserializeAws_restJson1HostedConfigurationVersionSummaryList = (output, c
4099
4130
  return deserializeAws_restJson1HostedConfigurationVersionSummary(entry, context);
4100
4131
  });
4101
4132
  };
4133
+ const deserializeAws_restJson1InvalidConfigurationDetail = (output, context) => {
4134
+ return {
4135
+ Constraint: smithy_client_1.expectString(output.Constraint),
4136
+ Location: smithy_client_1.expectString(output.Location),
4137
+ Reason: smithy_client_1.expectString(output.Reason),
4138
+ Type: smithy_client_1.expectString(output.Type),
4139
+ };
4140
+ };
4141
+ const deserializeAws_restJson1InvalidConfigurationDetailList = (output, context) => {
4142
+ return (output || [])
4143
+ .filter((e) => e != null)
4144
+ .map((entry) => {
4145
+ if (entry === null) {
4146
+ return null;
4147
+ }
4148
+ return deserializeAws_restJson1InvalidConfigurationDetail(entry, context);
4149
+ });
4150
+ };
4102
4151
  const deserializeAws_restJson1Monitor = (output, context) => {
4103
4152
  return {
4104
4153
  AlarmArn: smithy_client_1.expectString(output.AlarmArn),
@@ -15,10 +15,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
- const smithy_client_1 = require("@aws-sdk/smithy-client");
19
18
  const getRuntimeConfig = (config) => {
20
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
20
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
21
  return {
24
22
  ...clientSharedValues,
@@ -12,6 +12,7 @@ var partitionHash = {
12
12
  "ap-south-1",
13
13
  "ap-southeast-1",
14
14
  "ap-southeast-2",
15
+ "ap-southeast-3",
15
16
  "ca-central-1",
16
17
  "eu-central-1",
17
18
  "eu-north-1",
@@ -4,9 +4,36 @@ export var Application;
4
4
  (function (Application) {
5
5
  Application.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
6
  })(Application || (Application = {}));
7
+ export var InvalidConfigurationDetail;
8
+ (function (InvalidConfigurationDetail) {
9
+ InvalidConfigurationDetail.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
10
+ })(InvalidConfigurationDetail || (InvalidConfigurationDetail = {}));
11
+ export var BadRequestDetails;
12
+ (function (BadRequestDetails) {
13
+ BadRequestDetails.visit = function (value, visitor) {
14
+ if (value.InvalidConfiguration !== undefined)
15
+ return visitor.InvalidConfiguration(value.InvalidConfiguration);
16
+ return visitor._(value.$unknown[0], value.$unknown[1]);
17
+ };
18
+ BadRequestDetails.filterSensitiveLog = function (obj) {
19
+ var _a;
20
+ if (obj.InvalidConfiguration !== undefined)
21
+ return {
22
+ InvalidConfiguration: obj.InvalidConfiguration.map(function (item) {
23
+ return InvalidConfigurationDetail.filterSensitiveLog(item);
24
+ }),
25
+ };
26
+ if (obj.$unknown !== undefined)
27
+ return _a = {}, _a[obj.$unknown[0]] = "UNKNOWN", _a;
28
+ };
29
+ })(BadRequestDetails || (BadRequestDetails = {}));
30
+ export var BadRequestReason;
31
+ (function (BadRequestReason) {
32
+ BadRequestReason["INVALID_CONFIGURATION"] = "InvalidConfiguration";
33
+ })(BadRequestReason || (BadRequestReason = {}));
7
34
  export var BadRequestException;
8
35
  (function (BadRequestException) {
9
- BadRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
36
+ BadRequestException.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Details && { Details: BadRequestDetails.filterSensitiveLog(obj.Details) }))); };
10
37
  })(BadRequestException || (BadRequestException = {}));
11
38
  export var CreateApplicationRequest;
12
39
  (function (CreateApplicationRequest) {
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseFloat32 as __limitedParseFloat32, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
3
+ import { expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseFloat32 as __limitedParseFloat32, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_restJson1CreateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
6
6
  return __generator(this, function (_c) {
@@ -47,8 +47,8 @@ export var serializeAws_restJson1CreateConfigurationProfileCommand = function (i
47
47
  else {
48
48
  throw new Error("No value provided for input HTTP label: ApplicationId.");
49
49
  }
50
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.LocationUri !== undefined && input.LocationUri !== null && { LocationUri: input.LocationUri })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RetrievalRoleArn !== undefined &&
51
- input.RetrievalRoleArn !== null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Validators !== undefined &&
50
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.LocationUri !== undefined && input.LocationUri !== null && { LocationUri: input.LocationUri })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RetrievalRoleArn !== undefined &&
51
+ input.RetrievalRoleArn !== null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.Validators !== undefined &&
52
52
  input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) })));
53
53
  return [2, new __HttpRequest({
54
54
  protocol: protocol,
@@ -721,7 +721,7 @@ export var serializeAws_restJson1ListConfigurationProfilesCommand = function (in
721
721
  else {
722
722
  throw new Error("No value provided for input HTTP label: ApplicationId.");
723
723
  }
724
- query = __assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken }));
724
+ query = __assign(__assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken })), (input.Type !== undefined && { type: input.Type }));
725
725
  return [2, new __HttpRequest({
726
726
  protocol: protocol,
727
727
  hostname: hostname,
@@ -1381,6 +1381,7 @@ export var deserializeAws_restJson1CreateConfigurationProfileCommand = function
1381
1381
  LocationUri: undefined,
1382
1382
  Name: undefined,
1383
1383
  RetrievalRoleArn: undefined,
1384
+ Type: undefined,
1384
1385
  Validators: undefined,
1385
1386
  };
1386
1387
  _a = __expectNonNull;
@@ -1406,6 +1407,9 @@ export var deserializeAws_restJson1CreateConfigurationProfileCommand = function
1406
1407
  if (data.RetrievalRoleArn !== undefined && data.RetrievalRoleArn !== null) {
1407
1408
  contents.RetrievalRoleArn = __expectString(data.RetrievalRoleArn);
1408
1409
  }
1410
+ if (data.Type !== undefined && data.Type !== null) {
1411
+ contents.Type = __expectString(data.Type);
1412
+ }
1409
1413
  if (data.Validators !== undefined && data.Validators !== null) {
1410
1414
  contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
1411
1415
  }
@@ -2341,6 +2345,7 @@ export var deserializeAws_restJson1GetConfigurationProfileCommand = function (ou
2341
2345
  LocationUri: undefined,
2342
2346
  Name: undefined,
2343
2347
  RetrievalRoleArn: undefined,
2348
+ Type: undefined,
2344
2349
  Validators: undefined,
2345
2350
  };
2346
2351
  _a = __expectNonNull;
@@ -2366,6 +2371,9 @@ export var deserializeAws_restJson1GetConfigurationProfileCommand = function (ou
2366
2371
  if (data.RetrievalRoleArn !== undefined && data.RetrievalRoleArn !== null) {
2367
2372
  contents.RetrievalRoleArn = __expectString(data.RetrievalRoleArn);
2368
2373
  }
2374
+ if (data.Type !== undefined && data.Type !== null) {
2375
+ contents.Type = __expectString(data.Type);
2376
+ }
2369
2377
  if (data.Validators !== undefined && data.Validators !== null) {
2370
2378
  contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
2371
2379
  }
@@ -3971,6 +3979,7 @@ export var deserializeAws_restJson1UpdateConfigurationProfileCommand = function
3971
3979
  LocationUri: undefined,
3972
3980
  Name: undefined,
3973
3981
  RetrievalRoleArn: undefined,
3982
+ Type: undefined,
3974
3983
  Validators: undefined,
3975
3984
  };
3976
3985
  _a = __expectNonNull;
@@ -3996,6 +4005,9 @@ export var deserializeAws_restJson1UpdateConfigurationProfileCommand = function
3996
4005
  if (data.RetrievalRoleArn !== undefined && data.RetrievalRoleArn !== null) {
3997
4006
  contents.RetrievalRoleArn = __expectString(data.RetrievalRoleArn);
3998
4007
  }
4008
+ if (data.Type !== undefined && data.Type !== null) {
4009
+ contents.Type = __expectString(data.Type);
4010
+ }
3999
4011
  if (data.Validators !== undefined && data.Validators !== null) {
4000
4012
  contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
4001
4013
  }
@@ -4340,12 +4352,20 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
4340
4352
  name: "BadRequestException",
4341
4353
  $fault: "client",
4342
4354
  $metadata: deserializeMetadata(parsedOutput),
4355
+ Details: undefined,
4343
4356
  Message: undefined,
4357
+ Reason: undefined,
4344
4358
  };
4345
4359
  data = parsedOutput.body;
4360
+ if (data.Details !== undefined && data.Details !== null) {
4361
+ contents.Details = deserializeAws_restJson1BadRequestDetails(__expectUnion(data.Details), context);
4362
+ }
4346
4363
  if (data.Message !== undefined && data.Message !== null) {
4347
4364
  contents.Message = __expectString(data.Message);
4348
4365
  }
4366
+ if (data.Reason !== undefined && data.Reason !== null) {
4367
+ contents.Reason = __expectString(data.Reason);
4368
+ }
4349
4369
  return [2, contents];
4350
4370
  });
4351
4371
  }); };
@@ -4498,12 +4518,21 @@ var deserializeAws_restJson1ApplicationList = function (output, context) {
4498
4518
  return deserializeAws_restJson1Application(entry, context);
4499
4519
  });
4500
4520
  };
4521
+ var deserializeAws_restJson1BadRequestDetails = function (output, context) {
4522
+ if (output.InvalidConfiguration !== undefined && output.InvalidConfiguration !== null) {
4523
+ return {
4524
+ InvalidConfiguration: deserializeAws_restJson1InvalidConfigurationDetailList(output.InvalidConfiguration, context),
4525
+ };
4526
+ }
4527
+ return { $unknown: Object.entries(output)[0] };
4528
+ };
4501
4529
  var deserializeAws_restJson1ConfigurationProfileSummary = function (output, context) {
4502
4530
  return {
4503
4531
  ApplicationId: __expectString(output.ApplicationId),
4504
4532
  Id: __expectString(output.Id),
4505
4533
  LocationUri: __expectString(output.LocationUri),
4506
4534
  Name: __expectString(output.Name),
4535
+ Type: __expectString(output.Type),
4507
4536
  ValidatorTypes: output.ValidatorTypes !== undefined && output.ValidatorTypes !== null
4508
4537
  ? deserializeAws_restJson1ValidatorTypeList(output.ValidatorTypes, context)
4509
4538
  : undefined,
@@ -4631,6 +4660,24 @@ var deserializeAws_restJson1HostedConfigurationVersionSummaryList = function (ou
4631
4660
  return deserializeAws_restJson1HostedConfigurationVersionSummary(entry, context);
4632
4661
  });
4633
4662
  };
4663
+ var deserializeAws_restJson1InvalidConfigurationDetail = function (output, context) {
4664
+ return {
4665
+ Constraint: __expectString(output.Constraint),
4666
+ Location: __expectString(output.Location),
4667
+ Reason: __expectString(output.Reason),
4668
+ Type: __expectString(output.Type),
4669
+ };
4670
+ };
4671
+ var deserializeAws_restJson1InvalidConfigurationDetailList = function (output, context) {
4672
+ return (output || [])
4673
+ .filter(function (e) { return e != null; })
4674
+ .map(function (entry) {
4675
+ if (entry === null) {
4676
+ return null;
4677
+ }
4678
+ return deserializeAws_restJson1InvalidConfigurationDetail(entry, context);
4679
+ });
4680
+ };
4634
4681
  var deserializeAws_restJson1Monitor = function (output, context) {
4635
4682
  return {
4636
4683
  AlarmArn: __expectString(output.AlarmArn),
@@ -12,10 +12,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
15
  export var getRuntimeConfig = function (config) {
17
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
17
  var clientSharedValues = getSharedRuntimeConfig(config);
20
18
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
19
  };