@aws-sdk/client-appconfig 3.39.0 → 3.43.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 (57) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +19 -24
  3. package/dist-cjs/endpoints.js +74 -5
  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.browser.js +6 -3
  7. package/dist-cjs/runtimeConfig.js +5 -3
  8. package/dist-es/endpoints.js +74 -5
  9. package/dist-es/models/models_0.js +28 -1
  10. package/dist-es/protocols/Aws_restJson1.js +51 -4
  11. package/dist-es/runtimeConfig.browser.js +3 -2
  12. package/dist-es/runtimeConfig.js +3 -3
  13. package/dist-types/AppConfig.d.ts +75 -70
  14. package/dist-types/AppConfigClient.d.ts +27 -23
  15. package/dist-types/commands/CreateApplicationCommand.d.ts +6 -5
  16. package/dist-types/commands/CreateConfigurationProfileCommand.d.ts +14 -10
  17. package/dist-types/commands/CreateDeploymentStrategyCommand.d.ts +5 -5
  18. package/dist-types/commands/CreateEnvironmentCommand.d.ts +9 -8
  19. package/dist-types/commands/CreateHostedConfigurationVersionCommand.d.ts +2 -2
  20. package/dist-types/commands/DeleteApplicationCommand.d.ts +2 -2
  21. package/dist-types/commands/DeleteConfigurationProfileCommand.d.ts +2 -2
  22. package/dist-types/commands/DeleteDeploymentStrategyCommand.d.ts +2 -2
  23. package/dist-types/commands/DeleteEnvironmentCommand.d.ts +2 -2
  24. package/dist-types/commands/DeleteHostedConfigurationVersionCommand.d.ts +3 -2
  25. package/dist-types/commands/GetApplicationCommand.d.ts +2 -2
  26. package/dist-types/commands/GetConfigurationCommand.d.ts +4 -4
  27. package/dist-types/commands/GetConfigurationProfileCommand.d.ts +2 -2
  28. package/dist-types/commands/GetDeploymentCommand.d.ts +2 -2
  29. package/dist-types/commands/GetDeploymentStrategyCommand.d.ts +3 -3
  30. package/dist-types/commands/GetEnvironmentCommand.d.ts +2 -2
  31. package/dist-types/commands/GetHostedConfigurationVersionCommand.d.ts +2 -2
  32. package/dist-types/commands/ListApplicationsCommand.d.ts +2 -2
  33. package/dist-types/commands/ListConfigurationProfilesCommand.d.ts +1 -1
  34. package/dist-types/commands/ListDeploymentStrategiesCommand.d.ts +2 -2
  35. package/dist-types/commands/ListDeploymentsCommand.d.ts +1 -1
  36. package/dist-types/commands/ListEnvironmentsCommand.d.ts +2 -2
  37. package/dist-types/commands/ListHostedConfigurationVersionsCommand.d.ts +2 -2
  38. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  39. package/dist-types/commands/StartDeploymentCommand.d.ts +1 -1
  40. package/dist-types/commands/StopDeploymentCommand.d.ts +1 -1
  41. package/dist-types/commands/TagResourceCommand.d.ts +6 -4
  42. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  43. package/dist-types/commands/UpdateApplicationCommand.d.ts +1 -1
  44. package/dist-types/commands/UpdateConfigurationProfileCommand.d.ts +1 -1
  45. package/dist-types/commands/UpdateDeploymentStrategyCommand.d.ts +1 -1
  46. package/dist-types/commands/UpdateEnvironmentCommand.d.ts +1 -1
  47. package/dist-types/commands/ValidateConfigurationCommand.d.ts +1 -1
  48. package/dist-types/models/models_0.d.ts +152 -46
  49. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  50. package/dist-types/runtimeConfig.d.ts +2 -0
  51. package/dist-types/runtimeConfig.native.d.ts +2 -0
  52. package/dist-types/ts3.4/AppConfigClient.d.ts +4 -0
  53. package/dist-types/ts3.4/models/models_0.d.ts +53 -1
  54. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  55. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  56. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  57. package/package.json +23 -23
package/CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
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.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-appconfig
20
+
21
+
22
+
23
+
24
+
25
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
26
+
27
+
28
+ ### Features
29
+
30
+ * **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
31
+
32
+
33
+
34
+
35
+
36
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
37
+
38
+
39
+ ### Features
40
+
41
+ * **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
42
+
43
+
44
+
45
+
46
+
6
47
  # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
48
 
8
49
  **Note:** Version bump only for package @aws-sdk/client-appconfig
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
 
@@ -29,27 +29,96 @@ const partitionHash = {
29
29
  "us-west-2",
30
30
  ],
31
31
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
32
- hostname: "appconfig.{region}.amazonaws.com",
32
+ variants: [
33
+ {
34
+ hostname: "appconfig.{region}.amazonaws.com",
35
+ tags: [],
36
+ },
37
+ {
38
+ hostname: "appconfig-fips.{region}.amazonaws.com",
39
+ tags: ["fips"],
40
+ },
41
+ {
42
+ hostname: "appconfig-fips.{region}.api.aws",
43
+ tags: ["dualstack", "fips"],
44
+ },
45
+ {
46
+ hostname: "appconfig.{region}.api.aws",
47
+ tags: ["dualstack"],
48
+ },
49
+ ],
33
50
  },
34
51
  "aws-cn": {
35
52
  regions: ["cn-north-1", "cn-northwest-1"],
36
53
  regionRegex: "^cn\\-\\w+\\-\\d+$",
37
- hostname: "appconfig.{region}.amazonaws.com.cn",
54
+ variants: [
55
+ {
56
+ hostname: "appconfig.{region}.amazonaws.com.cn",
57
+ tags: [],
58
+ },
59
+ {
60
+ hostname: "appconfig-fips.{region}.amazonaws.com.cn",
61
+ tags: ["fips"],
62
+ },
63
+ {
64
+ hostname: "appconfig-fips.{region}.api.amazonwebservices.com.cn",
65
+ tags: ["dualstack", "fips"],
66
+ },
67
+ {
68
+ hostname: "appconfig.{region}.api.amazonwebservices.com.cn",
69
+ tags: ["dualstack"],
70
+ },
71
+ ],
38
72
  },
39
73
  "aws-iso": {
40
74
  regions: ["us-iso-east-1", "us-iso-west-1"],
41
75
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
42
- hostname: "appconfig.{region}.c2s.ic.gov",
76
+ variants: [
77
+ {
78
+ hostname: "appconfig.{region}.c2s.ic.gov",
79
+ tags: [],
80
+ },
81
+ {
82
+ hostname: "appconfig-fips.{region}.c2s.ic.gov",
83
+ tags: ["fips"],
84
+ },
85
+ ],
43
86
  },
44
87
  "aws-iso-b": {
45
88
  regions: ["us-isob-east-1"],
46
89
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
47
- hostname: "appconfig.{region}.sc2s.sgov.gov",
90
+ variants: [
91
+ {
92
+ hostname: "appconfig.{region}.sc2s.sgov.gov",
93
+ tags: [],
94
+ },
95
+ {
96
+ hostname: "appconfig-fips.{region}.sc2s.sgov.gov",
97
+ tags: ["fips"],
98
+ },
99
+ ],
48
100
  },
49
101
  "aws-us-gov": {
50
102
  regions: ["us-gov-east-1", "us-gov-west-1"],
51
103
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
52
- hostname: "appconfig.{region}.amazonaws.com",
104
+ variants: [
105
+ {
106
+ hostname: "appconfig.{region}.amazonaws.com",
107
+ tags: [],
108
+ },
109
+ {
110
+ hostname: "appconfig-fips.{region}.amazonaws.com",
111
+ tags: ["fips"],
112
+ },
113
+ {
114
+ hostname: "appconfig-fips.{region}.api.aws",
115
+ tags: ["dualstack", "fips"],
116
+ },
117
+ {
118
+ hostname: "appconfig.{region}.api.aws",
119
+ tags: ["dualstack"],
120
+ },
121
+ ],
53
122
  },
54
123
  };
55
124
  const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
@@ -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),
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
16
  const getRuntimeConfig = (config) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
18
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
18
19
  return {
19
20
  ...clientSharedValues,
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
30
31
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
31
32
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
32
33
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
33
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
34
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
34
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
36
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
37
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
35
38
  };
36
39
  };
37
40
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const getRuntimeConfig = (config) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
23
  return {
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
35
35
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
36
36
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
37
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
39
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
38
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
39
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
40
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
41
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
40
42
  };
41
43
  };
42
44
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -27,27 +27,96 @@ var partitionHash = {
27
27
  "us-west-2",
28
28
  ],
29
29
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
30
- hostname: "appconfig.{region}.amazonaws.com",
30
+ variants: [
31
+ {
32
+ hostname: "appconfig.{region}.amazonaws.com",
33
+ tags: [],
34
+ },
35
+ {
36
+ hostname: "appconfig-fips.{region}.amazonaws.com",
37
+ tags: ["fips"],
38
+ },
39
+ {
40
+ hostname: "appconfig-fips.{region}.api.aws",
41
+ tags: ["dualstack", "fips"],
42
+ },
43
+ {
44
+ hostname: "appconfig.{region}.api.aws",
45
+ tags: ["dualstack"],
46
+ },
47
+ ],
31
48
  },
32
49
  "aws-cn": {
33
50
  regions: ["cn-north-1", "cn-northwest-1"],
34
51
  regionRegex: "^cn\\-\\w+\\-\\d+$",
35
- hostname: "appconfig.{region}.amazonaws.com.cn",
52
+ variants: [
53
+ {
54
+ hostname: "appconfig.{region}.amazonaws.com.cn",
55
+ tags: [],
56
+ },
57
+ {
58
+ hostname: "appconfig-fips.{region}.amazonaws.com.cn",
59
+ tags: ["fips"],
60
+ },
61
+ {
62
+ hostname: "appconfig-fips.{region}.api.amazonwebservices.com.cn",
63
+ tags: ["dualstack", "fips"],
64
+ },
65
+ {
66
+ hostname: "appconfig.{region}.api.amazonwebservices.com.cn",
67
+ tags: ["dualstack"],
68
+ },
69
+ ],
36
70
  },
37
71
  "aws-iso": {
38
72
  regions: ["us-iso-east-1", "us-iso-west-1"],
39
73
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
40
- hostname: "appconfig.{region}.c2s.ic.gov",
74
+ variants: [
75
+ {
76
+ hostname: "appconfig.{region}.c2s.ic.gov",
77
+ tags: [],
78
+ },
79
+ {
80
+ hostname: "appconfig-fips.{region}.c2s.ic.gov",
81
+ tags: ["fips"],
82
+ },
83
+ ],
41
84
  },
42
85
  "aws-iso-b": {
43
86
  regions: ["us-isob-east-1"],
44
87
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
45
- hostname: "appconfig.{region}.sc2s.sgov.gov",
88
+ variants: [
89
+ {
90
+ hostname: "appconfig.{region}.sc2s.sgov.gov",
91
+ tags: [],
92
+ },
93
+ {
94
+ hostname: "appconfig-fips.{region}.sc2s.sgov.gov",
95
+ tags: ["fips"],
96
+ },
97
+ ],
46
98
  },
47
99
  "aws-us-gov": {
48
100
  regions: ["us-gov-east-1", "us-gov-west-1"],
49
101
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
50
- hostname: "appconfig.{region}.amazonaws.com",
102
+ variants: [
103
+ {
104
+ hostname: "appconfig.{region}.amazonaws.com",
105
+ tags: [],
106
+ },
107
+ {
108
+ hostname: "appconfig-fips.{region}.amazonaws.com",
109
+ tags: ["fips"],
110
+ },
111
+ {
112
+ hostname: "appconfig-fips.{region}.api.aws",
113
+ tags: ["dualstack", "fips"],
114
+ },
115
+ {
116
+ hostname: "appconfig.{region}.api.aws",
117
+ tags: ["dualstack"],
118
+ },
119
+ ],
51
120
  },
52
121
  };
53
122
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
@@ -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) {