@aws-sdk/client-acm 3.310.0 → 3.312.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.
@@ -6,149 +6,104 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const ACMServiceException_1 = require("../models/ACMServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const se_AddTagsToCertificateCommand = async (input, context) => {
9
- const headers = {
10
- "content-type": "application/x-amz-json-1.1",
11
- "x-amz-target": "CertificateManager.AddTagsToCertificate",
12
- };
9
+ const headers = sharedHeaders("AddTagsToCertificate");
13
10
  let body;
14
11
  body = JSON.stringify(se_AddTagsToCertificateRequest(input, context));
15
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
13
  };
17
14
  exports.se_AddTagsToCertificateCommand = se_AddTagsToCertificateCommand;
18
15
  const se_DeleteCertificateCommand = async (input, context) => {
19
- const headers = {
20
- "content-type": "application/x-amz-json-1.1",
21
- "x-amz-target": "CertificateManager.DeleteCertificate",
22
- };
16
+ const headers = sharedHeaders("DeleteCertificate");
23
17
  let body;
24
18
  body = JSON.stringify(se_DeleteCertificateRequest(input, context));
25
19
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
26
20
  };
27
21
  exports.se_DeleteCertificateCommand = se_DeleteCertificateCommand;
28
22
  const se_DescribeCertificateCommand = async (input, context) => {
29
- const headers = {
30
- "content-type": "application/x-amz-json-1.1",
31
- "x-amz-target": "CertificateManager.DescribeCertificate",
32
- };
23
+ const headers = sharedHeaders("DescribeCertificate");
33
24
  let body;
34
25
  body = JSON.stringify(se_DescribeCertificateRequest(input, context));
35
26
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
27
  };
37
28
  exports.se_DescribeCertificateCommand = se_DescribeCertificateCommand;
38
29
  const se_ExportCertificateCommand = async (input, context) => {
39
- const headers = {
40
- "content-type": "application/x-amz-json-1.1",
41
- "x-amz-target": "CertificateManager.ExportCertificate",
42
- };
30
+ const headers = sharedHeaders("ExportCertificate");
43
31
  let body;
44
32
  body = JSON.stringify(se_ExportCertificateRequest(input, context));
45
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
34
  };
47
35
  exports.se_ExportCertificateCommand = se_ExportCertificateCommand;
48
36
  const se_GetAccountConfigurationCommand = async (input, context) => {
49
- const headers = {
50
- "content-type": "application/x-amz-json-1.1",
51
- "x-amz-target": "CertificateManager.GetAccountConfiguration",
52
- };
37
+ const headers = sharedHeaders("GetAccountConfiguration");
53
38
  const body = "{}";
54
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
55
40
  };
56
41
  exports.se_GetAccountConfigurationCommand = se_GetAccountConfigurationCommand;
57
42
  const se_GetCertificateCommand = async (input, context) => {
58
- const headers = {
59
- "content-type": "application/x-amz-json-1.1",
60
- "x-amz-target": "CertificateManager.GetCertificate",
61
- };
43
+ const headers = sharedHeaders("GetCertificate");
62
44
  let body;
63
45
  body = JSON.stringify(se_GetCertificateRequest(input, context));
64
46
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
47
  };
66
48
  exports.se_GetCertificateCommand = se_GetCertificateCommand;
67
49
  const se_ImportCertificateCommand = async (input, context) => {
68
- const headers = {
69
- "content-type": "application/x-amz-json-1.1",
70
- "x-amz-target": "CertificateManager.ImportCertificate",
71
- };
50
+ const headers = sharedHeaders("ImportCertificate");
72
51
  let body;
73
52
  body = JSON.stringify(se_ImportCertificateRequest(input, context));
74
53
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
75
54
  };
76
55
  exports.se_ImportCertificateCommand = se_ImportCertificateCommand;
77
56
  const se_ListCertificatesCommand = async (input, context) => {
78
- const headers = {
79
- "content-type": "application/x-amz-json-1.1",
80
- "x-amz-target": "CertificateManager.ListCertificates",
81
- };
57
+ const headers = sharedHeaders("ListCertificates");
82
58
  let body;
83
59
  body = JSON.stringify(se_ListCertificatesRequest(input, context));
84
60
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
61
  };
86
62
  exports.se_ListCertificatesCommand = se_ListCertificatesCommand;
87
63
  const se_ListTagsForCertificateCommand = async (input, context) => {
88
- const headers = {
89
- "content-type": "application/x-amz-json-1.1",
90
- "x-amz-target": "CertificateManager.ListTagsForCertificate",
91
- };
64
+ const headers = sharedHeaders("ListTagsForCertificate");
92
65
  let body;
93
66
  body = JSON.stringify(se_ListTagsForCertificateRequest(input, context));
94
67
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
68
  };
96
69
  exports.se_ListTagsForCertificateCommand = se_ListTagsForCertificateCommand;
97
70
  const se_PutAccountConfigurationCommand = async (input, context) => {
98
- const headers = {
99
- "content-type": "application/x-amz-json-1.1",
100
- "x-amz-target": "CertificateManager.PutAccountConfiguration",
101
- };
71
+ const headers = sharedHeaders("PutAccountConfiguration");
102
72
  let body;
103
73
  body = JSON.stringify(se_PutAccountConfigurationRequest(input, context));
104
74
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
105
75
  };
106
76
  exports.se_PutAccountConfigurationCommand = se_PutAccountConfigurationCommand;
107
77
  const se_RemoveTagsFromCertificateCommand = async (input, context) => {
108
- const headers = {
109
- "content-type": "application/x-amz-json-1.1",
110
- "x-amz-target": "CertificateManager.RemoveTagsFromCertificate",
111
- };
78
+ const headers = sharedHeaders("RemoveTagsFromCertificate");
112
79
  let body;
113
80
  body = JSON.stringify(se_RemoveTagsFromCertificateRequest(input, context));
114
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
115
82
  };
116
83
  exports.se_RemoveTagsFromCertificateCommand = se_RemoveTagsFromCertificateCommand;
117
84
  const se_RenewCertificateCommand = async (input, context) => {
118
- const headers = {
119
- "content-type": "application/x-amz-json-1.1",
120
- "x-amz-target": "CertificateManager.RenewCertificate",
121
- };
85
+ const headers = sharedHeaders("RenewCertificate");
122
86
  let body;
123
87
  body = JSON.stringify(se_RenewCertificateRequest(input, context));
124
88
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
89
  };
126
90
  exports.se_RenewCertificateCommand = se_RenewCertificateCommand;
127
91
  const se_RequestCertificateCommand = async (input, context) => {
128
- const headers = {
129
- "content-type": "application/x-amz-json-1.1",
130
- "x-amz-target": "CertificateManager.RequestCertificate",
131
- };
92
+ const headers = sharedHeaders("RequestCertificate");
132
93
  let body;
133
94
  body = JSON.stringify(se_RequestCertificateRequest(input, context));
134
95
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
135
96
  };
136
97
  exports.se_RequestCertificateCommand = se_RequestCertificateCommand;
137
98
  const se_ResendValidationEmailCommand = async (input, context) => {
138
- const headers = {
139
- "content-type": "application/x-amz-json-1.1",
140
- "x-amz-target": "CertificateManager.ResendValidationEmail",
141
- };
99
+ const headers = sharedHeaders("ResendValidationEmail");
142
100
  let body;
143
101
  body = JSON.stringify(se_ResendValidationEmailRequest(input, context));
144
102
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
145
103
  };
146
104
  exports.se_ResendValidationEmailCommand = se_ResendValidationEmailCommand;
147
105
  const se_UpdateCertificateOptionsCommand = async (input, context) => {
148
- const headers = {
149
- "content-type": "application/x-amz-json-1.1",
150
- "x-amz-target": "CertificateManager.UpdateCertificateOptions",
151
- };
106
+ const headers = sharedHeaders("UpdateCertificateOptions");
152
107
  let body;
153
108
  body = JSON.stringify(se_UpdateCertificateOptionsRequest(input, context));
154
109
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -1484,6 +1439,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
1484
1439
  }
1485
1440
  return new protocol_http_1.HttpRequest(contents);
1486
1441
  };
1442
+ function sharedHeaders(operation) {
1443
+ return {
1444
+ "content-type": "application/x-amz-json-1.1",
1445
+ "x-amz-target": `CertificateManager.${operation}`,
1446
+ };
1447
+ }
1487
1448
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1488
1449
  if (encoded.length) {
1489
1450
  return JSON.parse(encoded);
@@ -3,135 +3,90 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
3
3
  import { ACMServiceException as __BaseException } from "../models/ACMServiceException";
4
4
  import { AccessDeniedException, ConflictException, InvalidArgsException, InvalidArnException, InvalidDomainValidationOptionsException, InvalidParameterException, InvalidStateException, InvalidTagException, LimitExceededException, RequestInProgressException, ResourceInUseException, ResourceNotFoundException, TagPolicyException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
5
5
  export const se_AddTagsToCertificateCommand = async (input, context) => {
6
- const headers = {
7
- "content-type": "application/x-amz-json-1.1",
8
- "x-amz-target": "CertificateManager.AddTagsToCertificate",
9
- };
6
+ const headers = sharedHeaders("AddTagsToCertificate");
10
7
  let body;
11
8
  body = JSON.stringify(se_AddTagsToCertificateRequest(input, context));
12
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
10
  };
14
11
  export const se_DeleteCertificateCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-amz-json-1.1",
17
- "x-amz-target": "CertificateManager.DeleteCertificate",
18
- };
12
+ const headers = sharedHeaders("DeleteCertificate");
19
13
  let body;
20
14
  body = JSON.stringify(se_DeleteCertificateRequest(input, context));
21
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
16
  };
23
17
  export const se_DescribeCertificateCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-amz-json-1.1",
26
- "x-amz-target": "CertificateManager.DescribeCertificate",
27
- };
18
+ const headers = sharedHeaders("DescribeCertificate");
28
19
  let body;
29
20
  body = JSON.stringify(se_DescribeCertificateRequest(input, context));
30
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
22
  };
32
23
  export const se_ExportCertificateCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "CertificateManager.ExportCertificate",
36
- };
24
+ const headers = sharedHeaders("ExportCertificate");
37
25
  let body;
38
26
  body = JSON.stringify(se_ExportCertificateRequest(input, context));
39
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
28
  };
41
29
  export const se_GetAccountConfigurationCommand = async (input, context) => {
42
- const headers = {
43
- "content-type": "application/x-amz-json-1.1",
44
- "x-amz-target": "CertificateManager.GetAccountConfiguration",
45
- };
30
+ const headers = sharedHeaders("GetAccountConfiguration");
46
31
  const body = "{}";
47
32
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
33
  };
49
34
  export const se_GetCertificateCommand = async (input, context) => {
50
- const headers = {
51
- "content-type": "application/x-amz-json-1.1",
52
- "x-amz-target": "CertificateManager.GetCertificate",
53
- };
35
+ const headers = sharedHeaders("GetCertificate");
54
36
  let body;
55
37
  body = JSON.stringify(se_GetCertificateRequest(input, context));
56
38
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
39
  };
58
40
  export const se_ImportCertificateCommand = async (input, context) => {
59
- const headers = {
60
- "content-type": "application/x-amz-json-1.1",
61
- "x-amz-target": "CertificateManager.ImportCertificate",
62
- };
41
+ const headers = sharedHeaders("ImportCertificate");
63
42
  let body;
64
43
  body = JSON.stringify(se_ImportCertificateRequest(input, context));
65
44
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
45
  };
67
46
  export const se_ListCertificatesCommand = async (input, context) => {
68
- const headers = {
69
- "content-type": "application/x-amz-json-1.1",
70
- "x-amz-target": "CertificateManager.ListCertificates",
71
- };
47
+ const headers = sharedHeaders("ListCertificates");
72
48
  let body;
73
49
  body = JSON.stringify(se_ListCertificatesRequest(input, context));
74
50
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
75
51
  };
76
52
  export const se_ListTagsForCertificateCommand = async (input, context) => {
77
- const headers = {
78
- "content-type": "application/x-amz-json-1.1",
79
- "x-amz-target": "CertificateManager.ListTagsForCertificate",
80
- };
53
+ const headers = sharedHeaders("ListTagsForCertificate");
81
54
  let body;
82
55
  body = JSON.stringify(se_ListTagsForCertificateRequest(input, context));
83
56
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
57
  };
85
58
  export const se_PutAccountConfigurationCommand = async (input, context) => {
86
- const headers = {
87
- "content-type": "application/x-amz-json-1.1",
88
- "x-amz-target": "CertificateManager.PutAccountConfiguration",
89
- };
59
+ const headers = sharedHeaders("PutAccountConfiguration");
90
60
  let body;
91
61
  body = JSON.stringify(se_PutAccountConfigurationRequest(input, context));
92
62
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
93
63
  };
94
64
  export const se_RemoveTagsFromCertificateCommand = async (input, context) => {
95
- const headers = {
96
- "content-type": "application/x-amz-json-1.1",
97
- "x-amz-target": "CertificateManager.RemoveTagsFromCertificate",
98
- };
65
+ const headers = sharedHeaders("RemoveTagsFromCertificate");
99
66
  let body;
100
67
  body = JSON.stringify(se_RemoveTagsFromCertificateRequest(input, context));
101
68
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
102
69
  };
103
70
  export const se_RenewCertificateCommand = async (input, context) => {
104
- const headers = {
105
- "content-type": "application/x-amz-json-1.1",
106
- "x-amz-target": "CertificateManager.RenewCertificate",
107
- };
71
+ const headers = sharedHeaders("RenewCertificate");
108
72
  let body;
109
73
  body = JSON.stringify(se_RenewCertificateRequest(input, context));
110
74
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
111
75
  };
112
76
  export const se_RequestCertificateCommand = async (input, context) => {
113
- const headers = {
114
- "content-type": "application/x-amz-json-1.1",
115
- "x-amz-target": "CertificateManager.RequestCertificate",
116
- };
77
+ const headers = sharedHeaders("RequestCertificate");
117
78
  let body;
118
79
  body = JSON.stringify(se_RequestCertificateRequest(input, context));
119
80
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
81
  };
121
82
  export const se_ResendValidationEmailCommand = async (input, context) => {
122
- const headers = {
123
- "content-type": "application/x-amz-json-1.1",
124
- "x-amz-target": "CertificateManager.ResendValidationEmail",
125
- };
83
+ const headers = sharedHeaders("ResendValidationEmail");
126
84
  let body;
127
85
  body = JSON.stringify(se_ResendValidationEmailRequest(input, context));
128
86
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
129
87
  };
130
88
  export const se_UpdateCertificateOptionsCommand = async (input, context) => {
131
- const headers = {
132
- "content-type": "application/x-amz-json-1.1",
133
- "x-amz-target": "CertificateManager.UpdateCertificateOptions",
134
- };
89
+ const headers = sharedHeaders("UpdateCertificateOptions");
135
90
  let body;
136
91
  body = JSON.stringify(se_UpdateCertificateOptionsRequest(input, context));
137
92
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -1451,6 +1406,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
1451
1406
  }
1452
1407
  return new __HttpRequest(contents);
1453
1408
  };
1409
+ function sharedHeaders(operation) {
1410
+ return {
1411
+ "content-type": "application/x-amz-json-1.1",
1412
+ "x-amz-target": `CertificateManager.${operation}`,
1413
+ };
1414
+ }
1454
1415
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1455
1416
  if (encoded.length) {
1456
1417
  return JSON.parse(encoded);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-acm",
3
3
  "description": "AWS SDK for JavaScript Acm Client for Node.js, Browser and React Native",
4
- "version": "3.310.0",
4
+ "version": "3.312.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.310.0",
24
+ "@aws-sdk/client-sts": "3.312.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
26
  "@aws-sdk/credential-provider-node": "3.310.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",