@aws-sdk/client-applicationcostprofiler 3.315.0 → 3.319.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ApplicationCostProfiler = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const ApplicationCostProfilerClient_1 = require("./ApplicationCostProfilerClient");
5
6
  const DeleteReportDefinitionCommand_1 = require("./commands/DeleteReportDefinitionCommand");
6
7
  const GetReportDefinitionCommand_1 = require("./commands/GetReportDefinitionCommand");
@@ -8,90 +9,15 @@ const ImportApplicationUsageCommand_1 = require("./commands/ImportApplicationUsa
8
9
  const ListReportDefinitionsCommand_1 = require("./commands/ListReportDefinitionsCommand");
9
10
  const PutReportDefinitionCommand_1 = require("./commands/PutReportDefinitionCommand");
10
11
  const UpdateReportDefinitionCommand_1 = require("./commands/UpdateReportDefinitionCommand");
12
+ const commands = {
13
+ DeleteReportDefinitionCommand: DeleteReportDefinitionCommand_1.DeleteReportDefinitionCommand,
14
+ GetReportDefinitionCommand: GetReportDefinitionCommand_1.GetReportDefinitionCommand,
15
+ ImportApplicationUsageCommand: ImportApplicationUsageCommand_1.ImportApplicationUsageCommand,
16
+ ListReportDefinitionsCommand: ListReportDefinitionsCommand_1.ListReportDefinitionsCommand,
17
+ PutReportDefinitionCommand: PutReportDefinitionCommand_1.PutReportDefinitionCommand,
18
+ UpdateReportDefinitionCommand: UpdateReportDefinitionCommand_1.UpdateReportDefinitionCommand,
19
+ };
11
20
  class ApplicationCostProfiler extends ApplicationCostProfilerClient_1.ApplicationCostProfilerClient {
12
- deleteReportDefinition(args, optionsOrCb, cb) {
13
- const command = new DeleteReportDefinitionCommand_1.DeleteReportDefinitionCommand(args);
14
- if (typeof optionsOrCb === "function") {
15
- this.send(command, optionsOrCb);
16
- }
17
- else if (typeof cb === "function") {
18
- if (typeof optionsOrCb !== "object")
19
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
20
- this.send(command, optionsOrCb || {}, cb);
21
- }
22
- else {
23
- return this.send(command, optionsOrCb);
24
- }
25
- }
26
- getReportDefinition(args, optionsOrCb, cb) {
27
- const command = new GetReportDefinitionCommand_1.GetReportDefinitionCommand(args);
28
- if (typeof optionsOrCb === "function") {
29
- this.send(command, optionsOrCb);
30
- }
31
- else if (typeof cb === "function") {
32
- if (typeof optionsOrCb !== "object")
33
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
34
- this.send(command, optionsOrCb || {}, cb);
35
- }
36
- else {
37
- return this.send(command, optionsOrCb);
38
- }
39
- }
40
- importApplicationUsage(args, optionsOrCb, cb) {
41
- const command = new ImportApplicationUsageCommand_1.ImportApplicationUsageCommand(args);
42
- if (typeof optionsOrCb === "function") {
43
- this.send(command, optionsOrCb);
44
- }
45
- else if (typeof cb === "function") {
46
- if (typeof optionsOrCb !== "object")
47
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
48
- this.send(command, optionsOrCb || {}, cb);
49
- }
50
- else {
51
- return this.send(command, optionsOrCb);
52
- }
53
- }
54
- listReportDefinitions(args, optionsOrCb, cb) {
55
- const command = new ListReportDefinitionsCommand_1.ListReportDefinitionsCommand(args);
56
- if (typeof optionsOrCb === "function") {
57
- this.send(command, optionsOrCb);
58
- }
59
- else if (typeof cb === "function") {
60
- if (typeof optionsOrCb !== "object")
61
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
62
- this.send(command, optionsOrCb || {}, cb);
63
- }
64
- else {
65
- return this.send(command, optionsOrCb);
66
- }
67
- }
68
- putReportDefinition(args, optionsOrCb, cb) {
69
- const command = new PutReportDefinitionCommand_1.PutReportDefinitionCommand(args);
70
- if (typeof optionsOrCb === "function") {
71
- this.send(command, optionsOrCb);
72
- }
73
- else if (typeof cb === "function") {
74
- if (typeof optionsOrCb !== "object")
75
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
76
- this.send(command, optionsOrCb || {}, cb);
77
- }
78
- else {
79
- return this.send(command, optionsOrCb);
80
- }
81
- }
82
- updateReportDefinition(args, optionsOrCb, cb) {
83
- const command = new UpdateReportDefinitionCommand_1.UpdateReportDefinitionCommand(args);
84
- if (typeof optionsOrCb === "function") {
85
- this.send(command, optionsOrCb);
86
- }
87
- else if (typeof cb === "function") {
88
- if (typeof optionsOrCb !== "object")
89
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
90
- this.send(command, optionsOrCb || {}, cb);
91
- }
92
- else {
93
- return this.send(command, optionsOrCb);
94
- }
95
- }
96
21
  }
97
22
  exports.ApplicationCostProfiler = ApplicationCostProfiler;
23
+ (0, smithy_client_1.createAggregatedClient)(commands, ApplicationCostProfiler);
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { ApplicationCostProfilerClient } from "./ApplicationCostProfilerClient";
2
3
  import { DeleteReportDefinitionCommand, } from "./commands/DeleteReportDefinitionCommand";
3
4
  import { GetReportDefinitionCommand, } from "./commands/GetReportDefinitionCommand";
@@ -5,89 +6,14 @@ import { ImportApplicationUsageCommand, } from "./commands/ImportApplicationUsag
5
6
  import { ListReportDefinitionsCommand, } from "./commands/ListReportDefinitionsCommand";
6
7
  import { PutReportDefinitionCommand, } from "./commands/PutReportDefinitionCommand";
7
8
  import { UpdateReportDefinitionCommand, } from "./commands/UpdateReportDefinitionCommand";
9
+ const commands = {
10
+ DeleteReportDefinitionCommand,
11
+ GetReportDefinitionCommand,
12
+ ImportApplicationUsageCommand,
13
+ ListReportDefinitionsCommand,
14
+ PutReportDefinitionCommand,
15
+ UpdateReportDefinitionCommand,
16
+ };
8
17
  export class ApplicationCostProfiler extends ApplicationCostProfilerClient {
9
- deleteReportDefinition(args, optionsOrCb, cb) {
10
- const command = new DeleteReportDefinitionCommand(args);
11
- if (typeof optionsOrCb === "function") {
12
- this.send(command, optionsOrCb);
13
- }
14
- else if (typeof cb === "function") {
15
- if (typeof optionsOrCb !== "object")
16
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
17
- this.send(command, optionsOrCb || {}, cb);
18
- }
19
- else {
20
- return this.send(command, optionsOrCb);
21
- }
22
- }
23
- getReportDefinition(args, optionsOrCb, cb) {
24
- const command = new GetReportDefinitionCommand(args);
25
- if (typeof optionsOrCb === "function") {
26
- this.send(command, optionsOrCb);
27
- }
28
- else if (typeof cb === "function") {
29
- if (typeof optionsOrCb !== "object")
30
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
31
- this.send(command, optionsOrCb || {}, cb);
32
- }
33
- else {
34
- return this.send(command, optionsOrCb);
35
- }
36
- }
37
- importApplicationUsage(args, optionsOrCb, cb) {
38
- const command = new ImportApplicationUsageCommand(args);
39
- if (typeof optionsOrCb === "function") {
40
- this.send(command, optionsOrCb);
41
- }
42
- else if (typeof cb === "function") {
43
- if (typeof optionsOrCb !== "object")
44
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
45
- this.send(command, optionsOrCb || {}, cb);
46
- }
47
- else {
48
- return this.send(command, optionsOrCb);
49
- }
50
- }
51
- listReportDefinitions(args, optionsOrCb, cb) {
52
- const command = new ListReportDefinitionsCommand(args);
53
- if (typeof optionsOrCb === "function") {
54
- this.send(command, optionsOrCb);
55
- }
56
- else if (typeof cb === "function") {
57
- if (typeof optionsOrCb !== "object")
58
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
59
- this.send(command, optionsOrCb || {}, cb);
60
- }
61
- else {
62
- return this.send(command, optionsOrCb);
63
- }
64
- }
65
- putReportDefinition(args, optionsOrCb, cb) {
66
- const command = new PutReportDefinitionCommand(args);
67
- if (typeof optionsOrCb === "function") {
68
- this.send(command, optionsOrCb);
69
- }
70
- else if (typeof cb === "function") {
71
- if (typeof optionsOrCb !== "object")
72
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
73
- this.send(command, optionsOrCb || {}, cb);
74
- }
75
- else {
76
- return this.send(command, optionsOrCb);
77
- }
78
- }
79
- updateReportDefinition(args, optionsOrCb, cb) {
80
- const command = new UpdateReportDefinitionCommand(args);
81
- if (typeof optionsOrCb === "function") {
82
- this.send(command, optionsOrCb);
83
- }
84
- else if (typeof cb === "function") {
85
- if (typeof optionsOrCb !== "object")
86
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
87
- this.send(command, optionsOrCb || {}, cb);
88
- }
89
- else {
90
- return this.send(command, optionsOrCb);
91
- }
92
- }
93
18
  }
19
+ createAggregatedClient(commands, ApplicationCostProfiler);
@@ -6,61 +6,52 @@ import { ImportApplicationUsageCommandInput, ImportApplicationUsageCommandOutput
6
6
  import { ListReportDefinitionsCommandInput, ListReportDefinitionsCommandOutput } from "./commands/ListReportDefinitionsCommand";
7
7
  import { PutReportDefinitionCommandInput, PutReportDefinitionCommandOutput } from "./commands/PutReportDefinitionCommand";
8
8
  import { UpdateReportDefinitionCommandInput, UpdateReportDefinitionCommandOutput } from "./commands/UpdateReportDefinitionCommand";
9
- /**
10
- * @public
11
- * <p>This reference provides descriptions of the AWS Application Cost Profiler API.</p>
12
- * <p>The AWS Application Cost Profiler API provides programmatic access to view, create, update, and delete
13
- * application cost report definitions, as well as to import your usage data into the Application Cost Profiler
14
- * service.</p>
15
- * <p>For more information about using this service, see the <a href="https://docs.aws.amazon.com/application-cost-profiler/latest/userguide/introduction.html">AWS Application Cost
16
- * Profiler User Guide</a>.</p>
17
- */
18
- export declare class ApplicationCostProfiler extends ApplicationCostProfilerClient {
9
+ export interface ApplicationCostProfiler {
19
10
  /**
20
- * @public
21
- * <p>Deletes the specified report definition in AWS Application Cost Profiler. This stops the report from being
22
- * generated.</p>
11
+ * @see {@link DeleteReportDefinitionCommand}
23
12
  */
24
13
  deleteReportDefinition(args: DeleteReportDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteReportDefinitionCommandOutput>;
25
14
  deleteReportDefinition(args: DeleteReportDefinitionCommandInput, cb: (err: any, data?: DeleteReportDefinitionCommandOutput) => void): void;
26
15
  deleteReportDefinition(args: DeleteReportDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteReportDefinitionCommandOutput) => void): void;
27
16
  /**
28
- * @public
29
- * <p>Retrieves the definition of a report already configured in AWS Application Cost Profiler.</p>
17
+ * @see {@link GetReportDefinitionCommand}
30
18
  */
31
19
  getReportDefinition(args: GetReportDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<GetReportDefinitionCommandOutput>;
32
20
  getReportDefinition(args: GetReportDefinitionCommandInput, cb: (err: any, data?: GetReportDefinitionCommandOutput) => void): void;
33
21
  getReportDefinition(args: GetReportDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetReportDefinitionCommandOutput) => void): void;
34
22
  /**
35
- * @public
36
- * <p>Ingests application usage data from Amazon Simple Storage Service (Amazon S3).</p>
37
- * <p>The data must already exist in the S3 location. As part of the action, AWS Application Cost Profiler
38
- * copies the object from your S3 bucket to an S3 bucket owned by Amazon for processing
39
- * asynchronously.</p>
23
+ * @see {@link ImportApplicationUsageCommand}
40
24
  */
41
25
  importApplicationUsage(args: ImportApplicationUsageCommandInput, options?: __HttpHandlerOptions): Promise<ImportApplicationUsageCommandOutput>;
42
26
  importApplicationUsage(args: ImportApplicationUsageCommandInput, cb: (err: any, data?: ImportApplicationUsageCommandOutput) => void): void;
43
27
  importApplicationUsage(args: ImportApplicationUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportApplicationUsageCommandOutput) => void): void;
44
28
  /**
45
- * @public
46
- * <p>Retrieves a list of all reports and their configurations for your AWS account.</p>
47
- * <p>The maximum number of reports is one.</p>
29
+ * @see {@link ListReportDefinitionsCommand}
48
30
  */
49
31
  listReportDefinitions(args: ListReportDefinitionsCommandInput, options?: __HttpHandlerOptions): Promise<ListReportDefinitionsCommandOutput>;
50
32
  listReportDefinitions(args: ListReportDefinitionsCommandInput, cb: (err: any, data?: ListReportDefinitionsCommandOutput) => void): void;
51
33
  listReportDefinitions(args: ListReportDefinitionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListReportDefinitionsCommandOutput) => void): void;
52
34
  /**
53
- * @public
54
- * <p>Creates the report definition for a report in Application Cost Profiler.</p>
35
+ * @see {@link PutReportDefinitionCommand}
55
36
  */
56
37
  putReportDefinition(args: PutReportDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<PutReportDefinitionCommandOutput>;
57
38
  putReportDefinition(args: PutReportDefinitionCommandInput, cb: (err: any, data?: PutReportDefinitionCommandOutput) => void): void;
58
39
  putReportDefinition(args: PutReportDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutReportDefinitionCommandOutput) => void): void;
59
40
  /**
60
- * @public
61
- * <p>Updates existing report in AWS Application Cost Profiler.</p>
41
+ * @see {@link UpdateReportDefinitionCommand}
62
42
  */
63
43
  updateReportDefinition(args: UpdateReportDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateReportDefinitionCommandOutput>;
64
44
  updateReportDefinition(args: UpdateReportDefinitionCommandInput, cb: (err: any, data?: UpdateReportDefinitionCommandOutput) => void): void;
65
45
  updateReportDefinition(args: UpdateReportDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateReportDefinitionCommandOutput) => void): void;
66
46
  }
47
+ /**
48
+ * @public
49
+ * <p>This reference provides descriptions of the AWS Application Cost Profiler API.</p>
50
+ * <p>The AWS Application Cost Profiler API provides programmatic access to view, create, update, and delete
51
+ * application cost report definitions, as well as to import your usage data into the Application Cost Profiler
52
+ * service.</p>
53
+ * <p>For more information about using this service, see the <a href="https://docs.aws.amazon.com/application-cost-profiler/latest/userguide/introduction.html">AWS Application Cost
54
+ * Profiler User Guide</a>.</p>
55
+ */
56
+ export declare class ApplicationCostProfiler extends ApplicationCostProfilerClient implements ApplicationCostProfiler {
57
+ }
@@ -24,7 +24,7 @@ import {
24
24
  UpdateReportDefinitionCommandInput,
25
25
  UpdateReportDefinitionCommandOutput,
26
26
  } from "./commands/UpdateReportDefinitionCommand";
27
- export declare class ApplicationCostProfiler extends ApplicationCostProfilerClient {
27
+ export interface ApplicationCostProfiler {
28
28
  deleteReportDefinition(
29
29
  args: DeleteReportDefinitionCommandInput,
30
30
  options?: __HttpHandlerOptions
@@ -104,3 +104,6 @@ export declare class ApplicationCostProfiler extends ApplicationCostProfilerClie
104
104
  cb: (err: any, data?: UpdateReportDefinitionCommandOutput) => void
105
105
  ): void;
106
106
  }
107
+ export declare class ApplicationCostProfiler
108
+ extends ApplicationCostProfilerClient
109
+ implements ApplicationCostProfiler {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-applicationcostprofiler",
3
3
  "description": "AWS SDK for JavaScript Applicationcostprofiler Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.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,9 +21,9 @@
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.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",