@aws-sdk/client-application-auto-scaling 3.309.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,130 +6,91 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const ApplicationAutoScalingServiceException_1 = require("../models/ApplicationAutoScalingServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const se_DeleteScalingPolicyCommand = async (input, context) => {
9
- const headers = {
10
- "content-type": "application/x-amz-json-1.1",
11
- "x-amz-target": "AnyScaleFrontendService.DeleteScalingPolicy",
12
- };
9
+ const headers = sharedHeaders("DeleteScalingPolicy");
13
10
  let body;
14
11
  body = JSON.stringify(se_DeleteScalingPolicyRequest(input, context));
15
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
13
  };
17
14
  exports.se_DeleteScalingPolicyCommand = se_DeleteScalingPolicyCommand;
18
15
  const se_DeleteScheduledActionCommand = async (input, context) => {
19
- const headers = {
20
- "content-type": "application/x-amz-json-1.1",
21
- "x-amz-target": "AnyScaleFrontendService.DeleteScheduledAction",
22
- };
16
+ const headers = sharedHeaders("DeleteScheduledAction");
23
17
  let body;
24
18
  body = JSON.stringify(se_DeleteScheduledActionRequest(input, context));
25
19
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
26
20
  };
27
21
  exports.se_DeleteScheduledActionCommand = se_DeleteScheduledActionCommand;
28
22
  const se_DeregisterScalableTargetCommand = async (input, context) => {
29
- const headers = {
30
- "content-type": "application/x-amz-json-1.1",
31
- "x-amz-target": "AnyScaleFrontendService.DeregisterScalableTarget",
32
- };
23
+ const headers = sharedHeaders("DeregisterScalableTarget");
33
24
  let body;
34
25
  body = JSON.stringify(se_DeregisterScalableTargetRequest(input, context));
35
26
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
27
  };
37
28
  exports.se_DeregisterScalableTargetCommand = se_DeregisterScalableTargetCommand;
38
29
  const se_DescribeScalableTargetsCommand = async (input, context) => {
39
- const headers = {
40
- "content-type": "application/x-amz-json-1.1",
41
- "x-amz-target": "AnyScaleFrontendService.DescribeScalableTargets",
42
- };
30
+ const headers = sharedHeaders("DescribeScalableTargets");
43
31
  let body;
44
32
  body = JSON.stringify(se_DescribeScalableTargetsRequest(input, context));
45
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
34
  };
47
35
  exports.se_DescribeScalableTargetsCommand = se_DescribeScalableTargetsCommand;
48
36
  const se_DescribeScalingActivitiesCommand = async (input, context) => {
49
- const headers = {
50
- "content-type": "application/x-amz-json-1.1",
51
- "x-amz-target": "AnyScaleFrontendService.DescribeScalingActivities",
52
- };
37
+ const headers = sharedHeaders("DescribeScalingActivities");
53
38
  let body;
54
39
  body = JSON.stringify(se_DescribeScalingActivitiesRequest(input, context));
55
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
41
  };
57
42
  exports.se_DescribeScalingActivitiesCommand = se_DescribeScalingActivitiesCommand;
58
43
  const se_DescribeScalingPoliciesCommand = async (input, context) => {
59
- const headers = {
60
- "content-type": "application/x-amz-json-1.1",
61
- "x-amz-target": "AnyScaleFrontendService.DescribeScalingPolicies",
62
- };
44
+ const headers = sharedHeaders("DescribeScalingPolicies");
63
45
  let body;
64
46
  body = JSON.stringify(se_DescribeScalingPoliciesRequest(input, context));
65
47
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
48
  };
67
49
  exports.se_DescribeScalingPoliciesCommand = se_DescribeScalingPoliciesCommand;
68
50
  const se_DescribeScheduledActionsCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "AnyScaleFrontendService.DescribeScheduledActions",
72
- };
51
+ const headers = sharedHeaders("DescribeScheduledActions");
73
52
  let body;
74
53
  body = JSON.stringify(se_DescribeScheduledActionsRequest(input, context));
75
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
55
  };
77
56
  exports.se_DescribeScheduledActionsCommand = se_DescribeScheduledActionsCommand;
78
57
  const se_ListTagsForResourceCommand = async (input, context) => {
79
- const headers = {
80
- "content-type": "application/x-amz-json-1.1",
81
- "x-amz-target": "AnyScaleFrontendService.ListTagsForResource",
82
- };
58
+ const headers = sharedHeaders("ListTagsForResource");
83
59
  let body;
84
60
  body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
85
61
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
86
62
  };
87
63
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
88
64
  const se_PutScalingPolicyCommand = async (input, context) => {
89
- const headers = {
90
- "content-type": "application/x-amz-json-1.1",
91
- "x-amz-target": "AnyScaleFrontendService.PutScalingPolicy",
92
- };
65
+ const headers = sharedHeaders("PutScalingPolicy");
93
66
  let body;
94
67
  body = JSON.stringify(se_PutScalingPolicyRequest(input, context));
95
68
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
69
  };
97
70
  exports.se_PutScalingPolicyCommand = se_PutScalingPolicyCommand;
98
71
  const se_PutScheduledActionCommand = async (input, context) => {
99
- const headers = {
100
- "content-type": "application/x-amz-json-1.1",
101
- "x-amz-target": "AnyScaleFrontendService.PutScheduledAction",
102
- };
72
+ const headers = sharedHeaders("PutScheduledAction");
103
73
  let body;
104
74
  body = JSON.stringify(se_PutScheduledActionRequest(input, context));
105
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
76
  };
107
77
  exports.se_PutScheduledActionCommand = se_PutScheduledActionCommand;
108
78
  const se_RegisterScalableTargetCommand = async (input, context) => {
109
- const headers = {
110
- "content-type": "application/x-amz-json-1.1",
111
- "x-amz-target": "AnyScaleFrontendService.RegisterScalableTarget",
112
- };
79
+ const headers = sharedHeaders("RegisterScalableTarget");
113
80
  let body;
114
81
  body = JSON.stringify(se_RegisterScalableTargetRequest(input, context));
115
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
116
83
  };
117
84
  exports.se_RegisterScalableTargetCommand = se_RegisterScalableTargetCommand;
118
85
  const se_TagResourceCommand = async (input, context) => {
119
- const headers = {
120
- "content-type": "application/x-amz-json-1.1",
121
- "x-amz-target": "AnyScaleFrontendService.TagResource",
122
- };
86
+ const headers = sharedHeaders("TagResource");
123
87
  let body;
124
88
  body = JSON.stringify(se_TagResourceRequest(input, context));
125
89
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
90
  };
127
91
  exports.se_TagResourceCommand = se_TagResourceCommand;
128
92
  const se_UntagResourceCommand = async (input, context) => {
129
- const headers = {
130
- "content-type": "application/x-amz-json-1.1",
131
- "x-amz-target": "AnyScaleFrontendService.UntagResource",
132
- };
93
+ const headers = sharedHeaders("UntagResource");
133
94
  let body;
134
95
  body = JSON.stringify(se_UntagResourceRequest(input, context));
135
96
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -1472,6 +1433,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
1472
1433
  }
1473
1434
  return new protocol_http_1.HttpRequest(contents);
1474
1435
  };
1436
+ function sharedHeaders(operation) {
1437
+ return {
1438
+ "content-type": "application/x-amz-json-1.1",
1439
+ "x-amz-target": `AnyScaleFrontendService.${operation}`,
1440
+ };
1441
+ }
1475
1442
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1476
1443
  if (encoded.length) {
1477
1444
  return JSON.parse(encoded);
@@ -3,118 +3,79 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
3
3
  import { ApplicationAutoScalingServiceException as __BaseException } from "../models/ApplicationAutoScalingServiceException";
4
4
  import { ConcurrentUpdateException, FailedResourceAccessException, InternalServiceException, InvalidNextTokenException, LimitExceededException, ObjectNotFoundException, ResourceNotFoundException, TooManyTagsException, ValidationException, } from "../models/models_0";
5
5
  export const se_DeleteScalingPolicyCommand = async (input, context) => {
6
- const headers = {
7
- "content-type": "application/x-amz-json-1.1",
8
- "x-amz-target": "AnyScaleFrontendService.DeleteScalingPolicy",
9
- };
6
+ const headers = sharedHeaders("DeleteScalingPolicy");
10
7
  let body;
11
8
  body = JSON.stringify(se_DeleteScalingPolicyRequest(input, context));
12
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
10
  };
14
11
  export const se_DeleteScheduledActionCommand = async (input, context) => {
15
- const headers = {
16
- "content-type": "application/x-amz-json-1.1",
17
- "x-amz-target": "AnyScaleFrontendService.DeleteScheduledAction",
18
- };
12
+ const headers = sharedHeaders("DeleteScheduledAction");
19
13
  let body;
20
14
  body = JSON.stringify(se_DeleteScheduledActionRequest(input, context));
21
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
16
  };
23
17
  export const se_DeregisterScalableTargetCommand = async (input, context) => {
24
- const headers = {
25
- "content-type": "application/x-amz-json-1.1",
26
- "x-amz-target": "AnyScaleFrontendService.DeregisterScalableTarget",
27
- };
18
+ const headers = sharedHeaders("DeregisterScalableTarget");
28
19
  let body;
29
20
  body = JSON.stringify(se_DeregisterScalableTargetRequest(input, context));
30
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
22
  };
32
23
  export const se_DescribeScalableTargetsCommand = async (input, context) => {
33
- const headers = {
34
- "content-type": "application/x-amz-json-1.1",
35
- "x-amz-target": "AnyScaleFrontendService.DescribeScalableTargets",
36
- };
24
+ const headers = sharedHeaders("DescribeScalableTargets");
37
25
  let body;
38
26
  body = JSON.stringify(se_DescribeScalableTargetsRequest(input, context));
39
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
28
  };
41
29
  export const se_DescribeScalingActivitiesCommand = async (input, context) => {
42
- const headers = {
43
- "content-type": "application/x-amz-json-1.1",
44
- "x-amz-target": "AnyScaleFrontendService.DescribeScalingActivities",
45
- };
30
+ const headers = sharedHeaders("DescribeScalingActivities");
46
31
  let body;
47
32
  body = JSON.stringify(se_DescribeScalingActivitiesRequest(input, context));
48
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
34
  };
50
35
  export const se_DescribeScalingPoliciesCommand = async (input, context) => {
51
- const headers = {
52
- "content-type": "application/x-amz-json-1.1",
53
- "x-amz-target": "AnyScaleFrontendService.DescribeScalingPolicies",
54
- };
36
+ const headers = sharedHeaders("DescribeScalingPolicies");
55
37
  let body;
56
38
  body = JSON.stringify(se_DescribeScalingPoliciesRequest(input, context));
57
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
40
  };
59
41
  export const se_DescribeScheduledActionsCommand = async (input, context) => {
60
- const headers = {
61
- "content-type": "application/x-amz-json-1.1",
62
- "x-amz-target": "AnyScaleFrontendService.DescribeScheduledActions",
63
- };
42
+ const headers = sharedHeaders("DescribeScheduledActions");
64
43
  let body;
65
44
  body = JSON.stringify(se_DescribeScheduledActionsRequest(input, context));
66
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
46
  };
68
47
  export const se_ListTagsForResourceCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "AnyScaleFrontendService.ListTagsForResource",
72
- };
48
+ const headers = sharedHeaders("ListTagsForResource");
73
49
  let body;
74
50
  body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
75
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
52
  };
77
53
  export const se_PutScalingPolicyCommand = async (input, context) => {
78
- const headers = {
79
- "content-type": "application/x-amz-json-1.1",
80
- "x-amz-target": "AnyScaleFrontendService.PutScalingPolicy",
81
- };
54
+ const headers = sharedHeaders("PutScalingPolicy");
82
55
  let body;
83
56
  body = JSON.stringify(se_PutScalingPolicyRequest(input, context));
84
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
58
  };
86
59
  export const se_PutScheduledActionCommand = async (input, context) => {
87
- const headers = {
88
- "content-type": "application/x-amz-json-1.1",
89
- "x-amz-target": "AnyScaleFrontendService.PutScheduledAction",
90
- };
60
+ const headers = sharedHeaders("PutScheduledAction");
91
61
  let body;
92
62
  body = JSON.stringify(se_PutScheduledActionRequest(input, context));
93
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
64
  };
95
65
  export const se_RegisterScalableTargetCommand = async (input, context) => {
96
- const headers = {
97
- "content-type": "application/x-amz-json-1.1",
98
- "x-amz-target": "AnyScaleFrontendService.RegisterScalableTarget",
99
- };
66
+ const headers = sharedHeaders("RegisterScalableTarget");
100
67
  let body;
101
68
  body = JSON.stringify(se_RegisterScalableTargetRequest(input, context));
102
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
70
  };
104
71
  export const se_TagResourceCommand = async (input, context) => {
105
- const headers = {
106
- "content-type": "application/x-amz-json-1.1",
107
- "x-amz-target": "AnyScaleFrontendService.TagResource",
108
- };
72
+ const headers = sharedHeaders("TagResource");
109
73
  let body;
110
74
  body = JSON.stringify(se_TagResourceRequest(input, context));
111
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
76
  };
113
77
  export const se_UntagResourceCommand = async (input, context) => {
114
- const headers = {
115
- "content-type": "application/x-amz-json-1.1",
116
- "x-amz-target": "AnyScaleFrontendService.UntagResource",
117
- };
78
+ const headers = sharedHeaders("UntagResource");
118
79
  let body;
119
80
  body = JSON.stringify(se_UntagResourceRequest(input, context));
120
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -1443,6 +1404,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
1443
1404
  }
1444
1405
  return new __HttpRequest(contents);
1445
1406
  };
1407
+ function sharedHeaders(operation) {
1408
+ return {
1409
+ "content-type": "application/x-amz-json-1.1",
1410
+ "x-amz-target": `AnyScaleFrontendService.${operation}`,
1411
+ };
1412
+ }
1446
1413
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1447
1414
  if (encoded.length) {
1448
1415
  return JSON.parse(encoded);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-application-auto-scaling",
3
3
  "description": "AWS SDK for JavaScript Application Auto Scaling Client for Node.js, Browser and React Native",
4
- "version": "3.309.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,42 +21,42 @@
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.309.0",
25
- "@aws-sdk/config-resolver": "3.306.0",
26
- "@aws-sdk/credential-provider-node": "3.309.0",
27
- "@aws-sdk/fetch-http-handler": "3.306.0",
28
- "@aws-sdk/hash-node": "3.306.0",
29
- "@aws-sdk/invalid-dependency": "3.306.0",
30
- "@aws-sdk/middleware-content-length": "3.306.0",
31
- "@aws-sdk/middleware-endpoint": "3.306.0",
32
- "@aws-sdk/middleware-host-header": "3.306.0",
33
- "@aws-sdk/middleware-logger": "3.306.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
- "@aws-sdk/middleware-retry": "3.306.0",
36
- "@aws-sdk/middleware-serde": "3.306.0",
37
- "@aws-sdk/middleware-signing": "3.306.0",
38
- "@aws-sdk/middleware-stack": "3.306.0",
39
- "@aws-sdk/middleware-user-agent": "3.306.0",
40
- "@aws-sdk/node-config-provider": "3.306.0",
41
- "@aws-sdk/node-http-handler": "3.306.0",
42
- "@aws-sdk/protocol-http": "3.306.0",
43
- "@aws-sdk/smithy-client": "3.309.0",
44
- "@aws-sdk/types": "3.306.0",
45
- "@aws-sdk/url-parser": "3.306.0",
46
- "@aws-sdk/util-base64": "3.303.0",
47
- "@aws-sdk/util-body-length-browser": "3.303.0",
48
- "@aws-sdk/util-body-length-node": "3.303.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.309.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.309.0",
51
- "@aws-sdk/util-endpoints": "3.306.0",
52
- "@aws-sdk/util-retry": "3.306.0",
53
- "@aws-sdk/util-user-agent-browser": "3.306.0",
54
- "@aws-sdk/util-user-agent-node": "3.306.0",
55
- "@aws-sdk/util-utf8": "3.303.0",
24
+ "@aws-sdk/client-sts": "3.312.0",
25
+ "@aws-sdk/config-resolver": "3.310.0",
26
+ "@aws-sdk/credential-provider-node": "3.310.0",
27
+ "@aws-sdk/fetch-http-handler": "3.310.0",
28
+ "@aws-sdk/hash-node": "3.310.0",
29
+ "@aws-sdk/invalid-dependency": "3.310.0",
30
+ "@aws-sdk/middleware-content-length": "3.310.0",
31
+ "@aws-sdk/middleware-endpoint": "3.310.0",
32
+ "@aws-sdk/middleware-host-header": "3.310.0",
33
+ "@aws-sdk/middleware-logger": "3.310.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.310.0",
35
+ "@aws-sdk/middleware-retry": "3.310.0",
36
+ "@aws-sdk/middleware-serde": "3.310.0",
37
+ "@aws-sdk/middleware-signing": "3.310.0",
38
+ "@aws-sdk/middleware-stack": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.310.0",
40
+ "@aws-sdk/node-config-provider": "3.310.0",
41
+ "@aws-sdk/node-http-handler": "3.310.0",
42
+ "@aws-sdk/protocol-http": "3.310.0",
43
+ "@aws-sdk/smithy-client": "3.310.0",
44
+ "@aws-sdk/types": "3.310.0",
45
+ "@aws-sdk/url-parser": "3.310.0",
46
+ "@aws-sdk/util-base64": "3.310.0",
47
+ "@aws-sdk/util-body-length-browser": "3.310.0",
48
+ "@aws-sdk/util-body-length-node": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.310.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.310.0",
51
+ "@aws-sdk/util-endpoints": "3.310.0",
52
+ "@aws-sdk/util-retry": "3.310.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.310.0",
54
+ "@aws-sdk/util-user-agent-node": "3.310.0",
55
+ "@aws-sdk/util-utf8": "3.310.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.303.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.310.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",
@@ -76,7 +76,7 @@
76
76
  }
77
77
  },
78
78
  "files": [
79
- "dist-*"
79
+ "dist-*/**"
80
80
  ],
81
81
  "author": {
82
82
  "name": "AWS SDK for JavaScript Team",