@aws-sdk/client-applicationcostprofiler 3.35.0 → 3.38.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.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/ApplicationCostProfiler.js +0 -9
- package/dist-cjs/ApplicationCostProfilerClient.js +0 -14
- package/dist-cjs/commands/DeleteReportDefinitionCommand.js +0 -26
- package/dist-cjs/commands/GetReportDefinitionCommand.js +0 -25
- package/dist-cjs/commands/ImportApplicationUsageCommand.js +0 -28
- package/dist-cjs/commands/ListReportDefinitionsCommand.js +0 -26
- package/dist-cjs/commands/PutReportDefinitionCommand.js +0 -25
- package/dist-cjs/commands/UpdateReportDefinitionCommand.js +0 -25
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -11
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -61
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListReportDefinitionsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/ApplicationCostProfiler.js +0 -1
- package/dist-es/ApplicationCostProfilerClient.js +0 -1
- package/dist-es/commands/DeleteReportDefinitionCommand.js +0 -1
- package/dist-es/commands/GetReportDefinitionCommand.js +0 -1
- package/dist-es/commands/ImportApplicationUsageCommand.js +0 -1
- package/dist-es/commands/ListReportDefinitionsCommand.js +0 -1
- package/dist-es/commands/PutReportDefinitionCommand.js +0 -1
- package/dist-es/commands/UpdateReportDefinitionCommand.js +0 -1
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -11
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListReportDefinitionsPaginator.js +0 -1
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/index.d.ts +4 -10
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -0
- package/dist-types/ts3.4/ApplicationCostProfiler.d.ts +7 -31
- package/dist-types/ts3.4/ApplicationCostProfilerClient.d.ts +24 -94
- package/dist-types/ts3.4/commands/DeleteReportDefinitionCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetReportDefinitionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ImportApplicationUsageCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/ListReportDefinitionsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/PutReportDefinitionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateReportDefinitionCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/index.d.ts +4 -10
- package/dist-types/ts3.4/models/models_0.d.ts +68 -211
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/ApplicationCostProfiler.js.map +0 -1
- package/dist-cjs/ApplicationCostProfilerClient.js.map +0 -1
- package/dist-cjs/commands/DeleteReportDefinitionCommand.js.map +0 -1
- package/dist-cjs/commands/GetReportDefinitionCommand.js.map +0 -1
- package/dist-cjs/commands/ImportApplicationUsageCommand.js.map +0 -1
- package/dist-cjs/commands/ListReportDefinitionsCommand.js.map +0 -1
- package/dist-cjs/commands/PutReportDefinitionCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateReportDefinitionCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListReportDefinitionsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/ApplicationCostProfiler.js.map +0 -1
- package/dist-es/ApplicationCostProfilerClient.js.map +0 -1
- package/dist-es/commands/DeleteReportDefinitionCommand.js.map +0 -1
- package/dist-es/commands/GetReportDefinitionCommand.js.map +0 -1
- package/dist-es/commands/ImportApplicationUsageCommand.js.map +0 -1
- package/dist-es/commands/ListReportDefinitionsCommand.js.map +0 -1
- package/dist-es/commands/PutReportDefinitionCommand.js.map +0 -1
- package/dist-es/commands/UpdateReportDefinitionCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListReportDefinitionsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/ApplicationCostProfiler.ts +0 -240
- package/src/ApplicationCostProfilerClient.ts +0 -277
- package/src/commands/DeleteReportDefinitionCommand.ts +0 -100
- package/src/commands/GetReportDefinitionCommand.ts +0 -99
- package/src/commands/ImportApplicationUsageCommand.ts +0 -102
- package/src/commands/ListReportDefinitionsCommand.ts +0 -100
- package/src/commands/PutReportDefinitionCommand.ts +0 -99
- package/src/commands/UpdateReportDefinitionCommand.ts +0 -99
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -11
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -490
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListReportDefinitionsPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -952
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ApplicationCostProfilerClient } from "./ApplicationCostProfilerClient";
|
|
4
|
-
import {
|
|
5
|
-
DeleteReportDefinitionCommand,
|
|
6
|
-
DeleteReportDefinitionCommandInput,
|
|
7
|
-
DeleteReportDefinitionCommandOutput,
|
|
8
|
-
} from "./commands/DeleteReportDefinitionCommand";
|
|
9
|
-
import {
|
|
10
|
-
GetReportDefinitionCommand,
|
|
11
|
-
GetReportDefinitionCommandInput,
|
|
12
|
-
GetReportDefinitionCommandOutput,
|
|
13
|
-
} from "./commands/GetReportDefinitionCommand";
|
|
14
|
-
import {
|
|
15
|
-
ImportApplicationUsageCommand,
|
|
16
|
-
ImportApplicationUsageCommandInput,
|
|
17
|
-
ImportApplicationUsageCommandOutput,
|
|
18
|
-
} from "./commands/ImportApplicationUsageCommand";
|
|
19
|
-
import {
|
|
20
|
-
ListReportDefinitionsCommand,
|
|
21
|
-
ListReportDefinitionsCommandInput,
|
|
22
|
-
ListReportDefinitionsCommandOutput,
|
|
23
|
-
} from "./commands/ListReportDefinitionsCommand";
|
|
24
|
-
import {
|
|
25
|
-
PutReportDefinitionCommand,
|
|
26
|
-
PutReportDefinitionCommandInput,
|
|
27
|
-
PutReportDefinitionCommandOutput,
|
|
28
|
-
} from "./commands/PutReportDefinitionCommand";
|
|
29
|
-
import {
|
|
30
|
-
UpdateReportDefinitionCommand,
|
|
31
|
-
UpdateReportDefinitionCommandInput,
|
|
32
|
-
UpdateReportDefinitionCommandOutput,
|
|
33
|
-
} from "./commands/UpdateReportDefinitionCommand";
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* <p>This reference provides descriptions of the AWS Application Cost Profiler API.</p>
|
|
37
|
-
* <p>The AWS Application Cost Profiler API provides programmatic access to view, create, update, and delete
|
|
38
|
-
* application cost report definitions, as well as to import your usage data into the Application Cost Profiler
|
|
39
|
-
* service.</p>
|
|
40
|
-
* <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
|
|
41
|
-
* Profiler User Guide</a>.</p>
|
|
42
|
-
*/
|
|
43
|
-
export class ApplicationCostProfiler extends ApplicationCostProfilerClient {
|
|
44
|
-
/**
|
|
45
|
-
* <p>Deletes the specified report definition in AWS Application Cost Profiler. This stops the report from being
|
|
46
|
-
* generated.</p>
|
|
47
|
-
*/
|
|
48
|
-
public deleteReportDefinition(
|
|
49
|
-
args: DeleteReportDefinitionCommandInput,
|
|
50
|
-
options?: __HttpHandlerOptions
|
|
51
|
-
): Promise<DeleteReportDefinitionCommandOutput>;
|
|
52
|
-
public deleteReportDefinition(
|
|
53
|
-
args: DeleteReportDefinitionCommandInput,
|
|
54
|
-
cb: (err: any, data?: DeleteReportDefinitionCommandOutput) => void
|
|
55
|
-
): void;
|
|
56
|
-
public deleteReportDefinition(
|
|
57
|
-
args: DeleteReportDefinitionCommandInput,
|
|
58
|
-
options: __HttpHandlerOptions,
|
|
59
|
-
cb: (err: any, data?: DeleteReportDefinitionCommandOutput) => void
|
|
60
|
-
): void;
|
|
61
|
-
public deleteReportDefinition(
|
|
62
|
-
args: DeleteReportDefinitionCommandInput,
|
|
63
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteReportDefinitionCommandOutput) => void),
|
|
64
|
-
cb?: (err: any, data?: DeleteReportDefinitionCommandOutput) => void
|
|
65
|
-
): Promise<DeleteReportDefinitionCommandOutput> | void {
|
|
66
|
-
const command = new DeleteReportDefinitionCommand(args);
|
|
67
|
-
if (typeof optionsOrCb === "function") {
|
|
68
|
-
this.send(command, optionsOrCb);
|
|
69
|
-
} else if (typeof cb === "function") {
|
|
70
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
71
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
72
|
-
} else {
|
|
73
|
-
return this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* <p>Retrieves the definition of a report already configured in AWS Application Cost Profiler.</p>
|
|
79
|
-
*/
|
|
80
|
-
public getReportDefinition(
|
|
81
|
-
args: GetReportDefinitionCommandInput,
|
|
82
|
-
options?: __HttpHandlerOptions
|
|
83
|
-
): Promise<GetReportDefinitionCommandOutput>;
|
|
84
|
-
public getReportDefinition(
|
|
85
|
-
args: GetReportDefinitionCommandInput,
|
|
86
|
-
cb: (err: any, data?: GetReportDefinitionCommandOutput) => void
|
|
87
|
-
): void;
|
|
88
|
-
public getReportDefinition(
|
|
89
|
-
args: GetReportDefinitionCommandInput,
|
|
90
|
-
options: __HttpHandlerOptions,
|
|
91
|
-
cb: (err: any, data?: GetReportDefinitionCommandOutput) => void
|
|
92
|
-
): void;
|
|
93
|
-
public getReportDefinition(
|
|
94
|
-
args: GetReportDefinitionCommandInput,
|
|
95
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetReportDefinitionCommandOutput) => void),
|
|
96
|
-
cb?: (err: any, data?: GetReportDefinitionCommandOutput) => void
|
|
97
|
-
): Promise<GetReportDefinitionCommandOutput> | void {
|
|
98
|
-
const command = new GetReportDefinitionCommand(args);
|
|
99
|
-
if (typeof optionsOrCb === "function") {
|
|
100
|
-
this.send(command, optionsOrCb);
|
|
101
|
-
} else if (typeof cb === "function") {
|
|
102
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
103
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
104
|
-
} else {
|
|
105
|
-
return this.send(command, optionsOrCb);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* <p>Ingests application usage data from Amazon Simple Storage Service (Amazon S3).</p>
|
|
111
|
-
* <p>The data must already exist in the S3 location. As part of the action, AWS Application Cost Profiler
|
|
112
|
-
* copies the object from your S3 bucket to an S3 bucket owned by Amazon for processing
|
|
113
|
-
* asynchronously.</p>
|
|
114
|
-
*/
|
|
115
|
-
public importApplicationUsage(
|
|
116
|
-
args: ImportApplicationUsageCommandInput,
|
|
117
|
-
options?: __HttpHandlerOptions
|
|
118
|
-
): Promise<ImportApplicationUsageCommandOutput>;
|
|
119
|
-
public importApplicationUsage(
|
|
120
|
-
args: ImportApplicationUsageCommandInput,
|
|
121
|
-
cb: (err: any, data?: ImportApplicationUsageCommandOutput) => void
|
|
122
|
-
): void;
|
|
123
|
-
public importApplicationUsage(
|
|
124
|
-
args: ImportApplicationUsageCommandInput,
|
|
125
|
-
options: __HttpHandlerOptions,
|
|
126
|
-
cb: (err: any, data?: ImportApplicationUsageCommandOutput) => void
|
|
127
|
-
): void;
|
|
128
|
-
public importApplicationUsage(
|
|
129
|
-
args: ImportApplicationUsageCommandInput,
|
|
130
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ImportApplicationUsageCommandOutput) => void),
|
|
131
|
-
cb?: (err: any, data?: ImportApplicationUsageCommandOutput) => void
|
|
132
|
-
): Promise<ImportApplicationUsageCommandOutput> | void {
|
|
133
|
-
const command = new ImportApplicationUsageCommand(args);
|
|
134
|
-
if (typeof optionsOrCb === "function") {
|
|
135
|
-
this.send(command, optionsOrCb);
|
|
136
|
-
} else if (typeof cb === "function") {
|
|
137
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
138
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
139
|
-
} else {
|
|
140
|
-
return this.send(command, optionsOrCb);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* <p>Retrieves a list of all reports and their configurations for your AWS account.</p>
|
|
146
|
-
* <p>The maximum number of reports is one.</p>
|
|
147
|
-
*/
|
|
148
|
-
public listReportDefinitions(
|
|
149
|
-
args: ListReportDefinitionsCommandInput,
|
|
150
|
-
options?: __HttpHandlerOptions
|
|
151
|
-
): Promise<ListReportDefinitionsCommandOutput>;
|
|
152
|
-
public listReportDefinitions(
|
|
153
|
-
args: ListReportDefinitionsCommandInput,
|
|
154
|
-
cb: (err: any, data?: ListReportDefinitionsCommandOutput) => void
|
|
155
|
-
): void;
|
|
156
|
-
public listReportDefinitions(
|
|
157
|
-
args: ListReportDefinitionsCommandInput,
|
|
158
|
-
options: __HttpHandlerOptions,
|
|
159
|
-
cb: (err: any, data?: ListReportDefinitionsCommandOutput) => void
|
|
160
|
-
): void;
|
|
161
|
-
public listReportDefinitions(
|
|
162
|
-
args: ListReportDefinitionsCommandInput,
|
|
163
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListReportDefinitionsCommandOutput) => void),
|
|
164
|
-
cb?: (err: any, data?: ListReportDefinitionsCommandOutput) => void
|
|
165
|
-
): Promise<ListReportDefinitionsCommandOutput> | void {
|
|
166
|
-
const command = new ListReportDefinitionsCommand(args);
|
|
167
|
-
if (typeof optionsOrCb === "function") {
|
|
168
|
-
this.send(command, optionsOrCb);
|
|
169
|
-
} else if (typeof cb === "function") {
|
|
170
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
171
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
172
|
-
} else {
|
|
173
|
-
return this.send(command, optionsOrCb);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* <p>Creates the report definition for a report in Application Cost Profiler.</p>
|
|
179
|
-
*/
|
|
180
|
-
public putReportDefinition(
|
|
181
|
-
args: PutReportDefinitionCommandInput,
|
|
182
|
-
options?: __HttpHandlerOptions
|
|
183
|
-
): Promise<PutReportDefinitionCommandOutput>;
|
|
184
|
-
public putReportDefinition(
|
|
185
|
-
args: PutReportDefinitionCommandInput,
|
|
186
|
-
cb: (err: any, data?: PutReportDefinitionCommandOutput) => void
|
|
187
|
-
): void;
|
|
188
|
-
public putReportDefinition(
|
|
189
|
-
args: PutReportDefinitionCommandInput,
|
|
190
|
-
options: __HttpHandlerOptions,
|
|
191
|
-
cb: (err: any, data?: PutReportDefinitionCommandOutput) => void
|
|
192
|
-
): void;
|
|
193
|
-
public putReportDefinition(
|
|
194
|
-
args: PutReportDefinitionCommandInput,
|
|
195
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutReportDefinitionCommandOutput) => void),
|
|
196
|
-
cb?: (err: any, data?: PutReportDefinitionCommandOutput) => void
|
|
197
|
-
): Promise<PutReportDefinitionCommandOutput> | void {
|
|
198
|
-
const command = new PutReportDefinitionCommand(args);
|
|
199
|
-
if (typeof optionsOrCb === "function") {
|
|
200
|
-
this.send(command, optionsOrCb);
|
|
201
|
-
} else if (typeof cb === "function") {
|
|
202
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
203
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
204
|
-
} else {
|
|
205
|
-
return this.send(command, optionsOrCb);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* <p>Updates existing report in AWS Application Cost Profiler.</p>
|
|
211
|
-
*/
|
|
212
|
-
public updateReportDefinition(
|
|
213
|
-
args: UpdateReportDefinitionCommandInput,
|
|
214
|
-
options?: __HttpHandlerOptions
|
|
215
|
-
): Promise<UpdateReportDefinitionCommandOutput>;
|
|
216
|
-
public updateReportDefinition(
|
|
217
|
-
args: UpdateReportDefinitionCommandInput,
|
|
218
|
-
cb: (err: any, data?: UpdateReportDefinitionCommandOutput) => void
|
|
219
|
-
): void;
|
|
220
|
-
public updateReportDefinition(
|
|
221
|
-
args: UpdateReportDefinitionCommandInput,
|
|
222
|
-
options: __HttpHandlerOptions,
|
|
223
|
-
cb: (err: any, data?: UpdateReportDefinitionCommandOutput) => void
|
|
224
|
-
): void;
|
|
225
|
-
public updateReportDefinition(
|
|
226
|
-
args: UpdateReportDefinitionCommandInput,
|
|
227
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateReportDefinitionCommandOutput) => void),
|
|
228
|
-
cb?: (err: any, data?: UpdateReportDefinitionCommandOutput) => void
|
|
229
|
-
): Promise<UpdateReportDefinitionCommandOutput> | void {
|
|
230
|
-
const command = new UpdateReportDefinitionCommand(args);
|
|
231
|
-
if (typeof optionsOrCb === "function") {
|
|
232
|
-
this.send(command, optionsOrCb);
|
|
233
|
-
} else if (typeof cb === "function") {
|
|
234
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
235
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
236
|
-
} else {
|
|
237
|
-
return this.send(command, optionsOrCb);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
|
-
RegionInputConfig,
|
|
5
|
-
RegionResolvedConfig,
|
|
6
|
-
resolveEndpointsConfig,
|
|
7
|
-
resolveRegionConfig,
|
|
8
|
-
} from "@aws-sdk/config-resolver";
|
|
9
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
-
import {
|
|
11
|
-
getHostHeaderPlugin,
|
|
12
|
-
HostHeaderInputConfig,
|
|
13
|
-
HostHeaderResolvedConfig,
|
|
14
|
-
resolveHostHeaderConfig,
|
|
15
|
-
} from "@aws-sdk/middleware-host-header";
|
|
16
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
-
import {
|
|
19
|
-
AwsAuthInputConfig,
|
|
20
|
-
AwsAuthResolvedConfig,
|
|
21
|
-
getAwsAuthPlugin,
|
|
22
|
-
resolveAwsAuthConfig,
|
|
23
|
-
} from "@aws-sdk/middleware-signing";
|
|
24
|
-
import {
|
|
25
|
-
getUserAgentPlugin,
|
|
26
|
-
resolveUserAgentConfig,
|
|
27
|
-
UserAgentInputConfig,
|
|
28
|
-
UserAgentResolvedConfig,
|
|
29
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
30
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
|
-
import {
|
|
32
|
-
Client as __Client,
|
|
33
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
34
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
-
} from "@aws-sdk/smithy-client";
|
|
36
|
-
import {
|
|
37
|
-
Credentials as __Credentials,
|
|
38
|
-
Decoder as __Decoder,
|
|
39
|
-
Encoder as __Encoder,
|
|
40
|
-
Hash as __Hash,
|
|
41
|
-
HashConstructor as __HashConstructor,
|
|
42
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
43
|
-
Logger as __Logger,
|
|
44
|
-
Provider as __Provider,
|
|
45
|
-
Provider,
|
|
46
|
-
RegionInfoProvider,
|
|
47
|
-
StreamCollector as __StreamCollector,
|
|
48
|
-
UrlParser as __UrlParser,
|
|
49
|
-
UserAgent as __UserAgent,
|
|
50
|
-
} from "@aws-sdk/types";
|
|
51
|
-
|
|
52
|
-
import {
|
|
53
|
-
DeleteReportDefinitionCommandInput,
|
|
54
|
-
DeleteReportDefinitionCommandOutput,
|
|
55
|
-
} from "./commands/DeleteReportDefinitionCommand";
|
|
56
|
-
import {
|
|
57
|
-
GetReportDefinitionCommandInput,
|
|
58
|
-
GetReportDefinitionCommandOutput,
|
|
59
|
-
} from "./commands/GetReportDefinitionCommand";
|
|
60
|
-
import {
|
|
61
|
-
ImportApplicationUsageCommandInput,
|
|
62
|
-
ImportApplicationUsageCommandOutput,
|
|
63
|
-
} from "./commands/ImportApplicationUsageCommand";
|
|
64
|
-
import {
|
|
65
|
-
ListReportDefinitionsCommandInput,
|
|
66
|
-
ListReportDefinitionsCommandOutput,
|
|
67
|
-
} from "./commands/ListReportDefinitionsCommand";
|
|
68
|
-
import {
|
|
69
|
-
PutReportDefinitionCommandInput,
|
|
70
|
-
PutReportDefinitionCommandOutput,
|
|
71
|
-
} from "./commands/PutReportDefinitionCommand";
|
|
72
|
-
import {
|
|
73
|
-
UpdateReportDefinitionCommandInput,
|
|
74
|
-
UpdateReportDefinitionCommandOutput,
|
|
75
|
-
} from "./commands/UpdateReportDefinitionCommand";
|
|
76
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
77
|
-
|
|
78
|
-
export type ServiceInputTypes =
|
|
79
|
-
| DeleteReportDefinitionCommandInput
|
|
80
|
-
| GetReportDefinitionCommandInput
|
|
81
|
-
| ImportApplicationUsageCommandInput
|
|
82
|
-
| ListReportDefinitionsCommandInput
|
|
83
|
-
| PutReportDefinitionCommandInput
|
|
84
|
-
| UpdateReportDefinitionCommandInput;
|
|
85
|
-
|
|
86
|
-
export type ServiceOutputTypes =
|
|
87
|
-
| DeleteReportDefinitionCommandOutput
|
|
88
|
-
| GetReportDefinitionCommandOutput
|
|
89
|
-
| ImportApplicationUsageCommandOutput
|
|
90
|
-
| ListReportDefinitionsCommandOutput
|
|
91
|
-
| PutReportDefinitionCommandOutput
|
|
92
|
-
| UpdateReportDefinitionCommandOutput;
|
|
93
|
-
|
|
94
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
95
|
-
/**
|
|
96
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
97
|
-
*/
|
|
98
|
-
requestHandler?: __HttpHandler;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
102
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
103
|
-
* @internal
|
|
104
|
-
*/
|
|
105
|
-
sha256?: __HashConstructor;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
111
|
-
urlParser?: __UrlParser;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* A function that can calculate the length of a request body.
|
|
115
|
-
* @internal
|
|
116
|
-
*/
|
|
117
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* A function that converts a stream into an array of bytes.
|
|
121
|
-
* @internal
|
|
122
|
-
*/
|
|
123
|
-
streamCollector?: __StreamCollector;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
127
|
-
* @internal
|
|
128
|
-
*/
|
|
129
|
-
base64Decoder?: __Decoder;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
133
|
-
* @internal
|
|
134
|
-
*/
|
|
135
|
-
base64Encoder?: __Encoder;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
139
|
-
* @internal
|
|
140
|
-
*/
|
|
141
|
-
utf8Decoder?: __Decoder;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
145
|
-
* @internal
|
|
146
|
-
*/
|
|
147
|
-
utf8Encoder?: __Encoder;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* The runtime environment.
|
|
151
|
-
* @internal
|
|
152
|
-
*/
|
|
153
|
-
runtime?: string;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
157
|
-
* trait of an operation.
|
|
158
|
-
*/
|
|
159
|
-
disableHostPrefix?: boolean;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
163
|
-
*/
|
|
164
|
-
maxAttempts?: number | __Provider<number>;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Specifies which retry algorithm to use.
|
|
168
|
-
*/
|
|
169
|
-
retryMode?: string | __Provider<string>;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Optional logger for logging debug/info/warn/error.
|
|
173
|
-
*/
|
|
174
|
-
logger?: __Logger;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Unique service identifier.
|
|
178
|
-
* @internal
|
|
179
|
-
*/
|
|
180
|
-
serviceId?: string;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* The AWS region to which this client will send requests
|
|
184
|
-
*/
|
|
185
|
-
region?: string | __Provider<string>;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Default credentials provider; Not available in browser runtime.
|
|
189
|
-
* @internal
|
|
190
|
-
*/
|
|
191
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
195
|
-
* @internal
|
|
196
|
-
*/
|
|
197
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
201
|
-
* @internal
|
|
202
|
-
*/
|
|
203
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
type ApplicationCostProfilerClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
207
|
-
ClientDefaults &
|
|
208
|
-
RegionInputConfig &
|
|
209
|
-
EndpointsInputConfig &
|
|
210
|
-
RetryInputConfig &
|
|
211
|
-
HostHeaderInputConfig &
|
|
212
|
-
AwsAuthInputConfig &
|
|
213
|
-
UserAgentInputConfig;
|
|
214
|
-
/**
|
|
215
|
-
* The configuration interface of ApplicationCostProfilerClient class constructor that set the region, credentials and other options.
|
|
216
|
-
*/
|
|
217
|
-
export interface ApplicationCostProfilerClientConfig extends ApplicationCostProfilerClientConfigType {}
|
|
218
|
-
|
|
219
|
-
type ApplicationCostProfilerClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
220
|
-
Required<ClientDefaults> &
|
|
221
|
-
RegionResolvedConfig &
|
|
222
|
-
EndpointsResolvedConfig &
|
|
223
|
-
RetryResolvedConfig &
|
|
224
|
-
HostHeaderResolvedConfig &
|
|
225
|
-
AwsAuthResolvedConfig &
|
|
226
|
-
UserAgentResolvedConfig;
|
|
227
|
-
/**
|
|
228
|
-
* The resolved configuration interface of ApplicationCostProfilerClient class. This is resolved and normalized from the {@link ApplicationCostProfilerClientConfig | constructor configuration interface}.
|
|
229
|
-
*/
|
|
230
|
-
export interface ApplicationCostProfilerClientResolvedConfig extends ApplicationCostProfilerClientResolvedConfigType {}
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* <p>This reference provides descriptions of the AWS Application Cost Profiler API.</p>
|
|
234
|
-
* <p>The AWS Application Cost Profiler API provides programmatic access to view, create, update, and delete
|
|
235
|
-
* application cost report definitions, as well as to import your usage data into the Application Cost Profiler
|
|
236
|
-
* service.</p>
|
|
237
|
-
* <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
|
|
238
|
-
* Profiler User Guide</a>.</p>
|
|
239
|
-
*/
|
|
240
|
-
export class ApplicationCostProfilerClient extends __Client<
|
|
241
|
-
__HttpHandlerOptions,
|
|
242
|
-
ServiceInputTypes,
|
|
243
|
-
ServiceOutputTypes,
|
|
244
|
-
ApplicationCostProfilerClientResolvedConfig
|
|
245
|
-
> {
|
|
246
|
-
/**
|
|
247
|
-
* The resolved configuration of ApplicationCostProfilerClient class. This is resolved and normalized from the {@link ApplicationCostProfilerClientConfig | constructor configuration interface}.
|
|
248
|
-
*/
|
|
249
|
-
readonly config: ApplicationCostProfilerClientResolvedConfig;
|
|
250
|
-
|
|
251
|
-
constructor(configuration: ApplicationCostProfilerClientConfig) {
|
|
252
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
253
|
-
const _config_1 = resolveRegionConfig(_config_0);
|
|
254
|
-
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
255
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
256
|
-
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
257
|
-
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
258
|
-
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
259
|
-
super(_config_6);
|
|
260
|
-
this.config = _config_6;
|
|
261
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
262
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
263
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
264
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
265
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
266
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
271
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
272
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
273
|
-
*/
|
|
274
|
-
destroy(): void {
|
|
275
|
-
super.destroy();
|
|
276
|
-
}
|
|
277
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
ApplicationCostProfilerClientResolvedConfig,
|
|
16
|
-
ServiceInputTypes,
|
|
17
|
-
ServiceOutputTypes,
|
|
18
|
-
} from "../ApplicationCostProfilerClient";
|
|
19
|
-
import { DeleteReportDefinitionRequest, DeleteReportDefinitionResult } from "../models/models_0";
|
|
20
|
-
import {
|
|
21
|
-
deserializeAws_restJson1DeleteReportDefinitionCommand,
|
|
22
|
-
serializeAws_restJson1DeleteReportDefinitionCommand,
|
|
23
|
-
} from "../protocols/Aws_restJson1";
|
|
24
|
-
|
|
25
|
-
export interface DeleteReportDefinitionCommandInput extends DeleteReportDefinitionRequest {}
|
|
26
|
-
export interface DeleteReportDefinitionCommandOutput extends DeleteReportDefinitionResult, __MetadataBearer {}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* <p>Deletes the specified report definition in AWS Application Cost Profiler. This stops the report from being
|
|
30
|
-
* generated.</p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { ApplicationCostProfilerClient, DeleteReportDefinitionCommand } from "@aws-sdk/client-applicationcostprofiler"; // ES Modules import
|
|
35
|
-
* // const { ApplicationCostProfilerClient, DeleteReportDefinitionCommand } = require("@aws-sdk/client-applicationcostprofiler"); // CommonJS import
|
|
36
|
-
* const client = new ApplicationCostProfilerClient(config);
|
|
37
|
-
* const command = new DeleteReportDefinitionCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link DeleteReportDefinitionCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link DeleteReportDefinitionCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link ApplicationCostProfilerClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class DeleteReportDefinitionCommand extends $Command<
|
|
47
|
-
DeleteReportDefinitionCommandInput,
|
|
48
|
-
DeleteReportDefinitionCommandOutput,
|
|
49
|
-
ApplicationCostProfilerClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: DeleteReportDefinitionCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: ApplicationCostProfilerClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<DeleteReportDefinitionCommandInput, DeleteReportDefinitionCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "ApplicationCostProfilerClient";
|
|
74
|
-
const commandName = "DeleteReportDefinitionCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: DeleteReportDefinitionRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: DeleteReportDefinitionResult.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(input: DeleteReportDefinitionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
91
|
-
return serializeAws_restJson1DeleteReportDefinitionCommand(input, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteReportDefinitionCommandOutput> {
|
|
95
|
-
return deserializeAws_restJson1DeleteReportDefinitionCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|