@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.
Files changed (125) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/ApplicationCostProfiler.js +0 -9
  3. package/dist-cjs/ApplicationCostProfilerClient.js +0 -14
  4. package/dist-cjs/commands/DeleteReportDefinitionCommand.js +0 -26
  5. package/dist-cjs/commands/GetReportDefinitionCommand.js +0 -25
  6. package/dist-cjs/commands/ImportApplicationUsageCommand.js +0 -28
  7. package/dist-cjs/commands/ListReportDefinitionsCommand.js +0 -26
  8. package/dist-cjs/commands/PutReportDefinitionCommand.js +0 -25
  9. package/dist-cjs/commands/UpdateReportDefinitionCommand.js +0 -25
  10. package/dist-cjs/commands/index.js +9 -0
  11. package/dist-cjs/endpoints.js +1 -2
  12. package/dist-cjs/index.js +4 -11
  13. package/dist-cjs/models/index.js +0 -1
  14. package/dist-cjs/models/models_0.js +0 -61
  15. package/dist-cjs/pagination/Interfaces.js +0 -1
  16. package/dist-cjs/pagination/ListReportDefinitionsPaginator.js +0 -11
  17. package/dist-cjs/pagination/index.js +5 -0
  18. package/dist-cjs/protocols/Aws_restJson1.js +0 -6
  19. package/dist-cjs/runtimeConfig.browser.js +1 -6
  20. package/dist-cjs/runtimeConfig.js +2 -7
  21. package/dist-cjs/runtimeConfig.native.js +0 -4
  22. package/dist-cjs/runtimeConfig.shared.js +0 -4
  23. package/dist-es/ApplicationCostProfiler.js +0 -1
  24. package/dist-es/ApplicationCostProfilerClient.js +0 -1
  25. package/dist-es/commands/DeleteReportDefinitionCommand.js +0 -1
  26. package/dist-es/commands/GetReportDefinitionCommand.js +0 -1
  27. package/dist-es/commands/ImportApplicationUsageCommand.js +0 -1
  28. package/dist-es/commands/ListReportDefinitionsCommand.js +0 -1
  29. package/dist-es/commands/PutReportDefinitionCommand.js +0 -1
  30. package/dist-es/commands/UpdateReportDefinitionCommand.js +0 -1
  31. package/dist-es/commands/index.js +6 -0
  32. package/dist-es/endpoints.js +1 -2
  33. package/dist-es/index.js +4 -11
  34. package/dist-es/models/index.js +0 -1
  35. package/dist-es/models/models_0.js +0 -1
  36. package/dist-es/pagination/Interfaces.js +0 -1
  37. package/dist-es/pagination/ListReportDefinitionsPaginator.js +0 -1
  38. package/dist-es/pagination/index.js +2 -0
  39. package/dist-es/protocols/Aws_restJson1.js +0 -1
  40. package/dist-es/runtimeConfig.browser.js +1 -2
  41. package/dist-es/runtimeConfig.js +2 -3
  42. package/dist-es/runtimeConfig.native.js +0 -1
  43. package/dist-es/runtimeConfig.shared.js +0 -1
  44. package/dist-types/commands/index.d.ts +6 -0
  45. package/dist-types/index.d.ts +4 -10
  46. package/dist-types/pagination/index.d.ts +2 -0
  47. package/dist-types/runtimeConfig.browser.d.ts +3 -0
  48. package/dist-types/ts3.4/ApplicationCostProfiler.d.ts +7 -31
  49. package/dist-types/ts3.4/ApplicationCostProfilerClient.d.ts +24 -94
  50. package/dist-types/ts3.4/commands/DeleteReportDefinitionCommand.d.ts +2 -21
  51. package/dist-types/ts3.4/commands/GetReportDefinitionCommand.d.ts +2 -20
  52. package/dist-types/ts3.4/commands/ImportApplicationUsageCommand.d.ts +2 -23
  53. package/dist-types/ts3.4/commands/ListReportDefinitionsCommand.d.ts +2 -21
  54. package/dist-types/ts3.4/commands/PutReportDefinitionCommand.d.ts +2 -20
  55. package/dist-types/ts3.4/commands/UpdateReportDefinitionCommand.d.ts +2 -20
  56. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  57. package/dist-types/ts3.4/index.d.ts +4 -10
  58. package/dist-types/ts3.4/models/models_0.d.ts +68 -211
  59. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  60. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -3
  61. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  62. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  63. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  64. package/package.json +33 -30
  65. package/dist-cjs/ApplicationCostProfiler.js.map +0 -1
  66. package/dist-cjs/ApplicationCostProfilerClient.js.map +0 -1
  67. package/dist-cjs/commands/DeleteReportDefinitionCommand.js.map +0 -1
  68. package/dist-cjs/commands/GetReportDefinitionCommand.js.map +0 -1
  69. package/dist-cjs/commands/ImportApplicationUsageCommand.js.map +0 -1
  70. package/dist-cjs/commands/ListReportDefinitionsCommand.js.map +0 -1
  71. package/dist-cjs/commands/PutReportDefinitionCommand.js.map +0 -1
  72. package/dist-cjs/commands/UpdateReportDefinitionCommand.js.map +0 -1
  73. package/dist-cjs/endpoints.js.map +0 -1
  74. package/dist-cjs/index.js.map +0 -1
  75. package/dist-cjs/models/index.js.map +0 -1
  76. package/dist-cjs/models/models_0.js.map +0 -1
  77. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  78. package/dist-cjs/pagination/ListReportDefinitionsPaginator.js.map +0 -1
  79. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  80. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  81. package/dist-cjs/runtimeConfig.js.map +0 -1
  82. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  83. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  84. package/dist-es/ApplicationCostProfiler.js.map +0 -1
  85. package/dist-es/ApplicationCostProfilerClient.js.map +0 -1
  86. package/dist-es/commands/DeleteReportDefinitionCommand.js.map +0 -1
  87. package/dist-es/commands/GetReportDefinitionCommand.js.map +0 -1
  88. package/dist-es/commands/ImportApplicationUsageCommand.js.map +0 -1
  89. package/dist-es/commands/ListReportDefinitionsCommand.js.map +0 -1
  90. package/dist-es/commands/PutReportDefinitionCommand.js.map +0 -1
  91. package/dist-es/commands/UpdateReportDefinitionCommand.js.map +0 -1
  92. package/dist-es/endpoints.js.map +0 -1
  93. package/dist-es/index.js.map +0 -1
  94. package/dist-es/models/index.js.map +0 -1
  95. package/dist-es/models/models_0.js.map +0 -1
  96. package/dist-es/pagination/Interfaces.js.map +0 -1
  97. package/dist-es/pagination/ListReportDefinitionsPaginator.js.map +0 -1
  98. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  99. package/dist-es/runtimeConfig.browser.js.map +0 -1
  100. package/dist-es/runtimeConfig.js.map +0 -1
  101. package/dist-es/runtimeConfig.native.js.map +0 -1
  102. package/dist-es/runtimeConfig.shared.js.map +0 -1
  103. package/jest.config.js +0 -4
  104. package/src/ApplicationCostProfiler.ts +0 -240
  105. package/src/ApplicationCostProfilerClient.ts +0 -277
  106. package/src/commands/DeleteReportDefinitionCommand.ts +0 -100
  107. package/src/commands/GetReportDefinitionCommand.ts +0 -99
  108. package/src/commands/ImportApplicationUsageCommand.ts +0 -102
  109. package/src/commands/ListReportDefinitionsCommand.ts +0 -100
  110. package/src/commands/PutReportDefinitionCommand.ts +0 -99
  111. package/src/commands/UpdateReportDefinitionCommand.ts +0 -99
  112. package/src/endpoints.ts +0 -57
  113. package/src/index.ts +0 -11
  114. package/src/models/index.ts +0 -1
  115. package/src/models/models_0.ts +0 -490
  116. package/src/pagination/Interfaces.ts +0 -8
  117. package/src/pagination/ListReportDefinitionsPaginator.ts +0 -59
  118. package/src/protocols/Aws_restJson1.ts +0 -952
  119. package/src/runtimeConfig.browser.ts +0 -41
  120. package/src/runtimeConfig.native.ts +0 -17
  121. package/src/runtimeConfig.shared.ts +0 -17
  122. package/src/runtimeConfig.ts +0 -46
  123. package/tsconfig.es.json +0 -10
  124. package/tsconfig.json +0 -33
  125. package/tsconfig.types.json +0 -9
@@ -1,99 +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 { GetReportDefinitionRequest, GetReportDefinitionResult } from "../models/models_0";
20
- import {
21
- deserializeAws_restJson1GetReportDefinitionCommand,
22
- serializeAws_restJson1GetReportDefinitionCommand,
23
- } from "../protocols/Aws_restJson1";
24
-
25
- export interface GetReportDefinitionCommandInput extends GetReportDefinitionRequest {}
26
- export interface GetReportDefinitionCommandOutput extends GetReportDefinitionResult, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Retrieves the definition of a report already configured in AWS Application Cost Profiler.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ApplicationCostProfilerClient, GetReportDefinitionCommand } from "@aws-sdk/client-applicationcostprofiler"; // ES Modules import
34
- * // const { ApplicationCostProfilerClient, GetReportDefinitionCommand } = require("@aws-sdk/client-applicationcostprofiler"); // CommonJS import
35
- * const client = new ApplicationCostProfilerClient(config);
36
- * const command = new GetReportDefinitionCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link GetReportDefinitionCommandInput} for command's `input` shape.
41
- * @see {@link GetReportDefinitionCommandOutput} for command's `response` shape.
42
- * @see {@link ApplicationCostProfilerClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class GetReportDefinitionCommand extends $Command<
46
- GetReportDefinitionCommandInput,
47
- GetReportDefinitionCommandOutput,
48
- ApplicationCostProfilerClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: GetReportDefinitionCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ApplicationCostProfilerClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<GetReportDefinitionCommandInput, GetReportDefinitionCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ApplicationCostProfilerClient";
73
- const commandName = "GetReportDefinitionCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: GetReportDefinitionRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: GetReportDefinitionResult.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: GetReportDefinitionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_restJson1GetReportDefinitionCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetReportDefinitionCommandOutput> {
94
- return deserializeAws_restJson1GetReportDefinitionCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
@@ -1,102 +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 { ImportApplicationUsageRequest, ImportApplicationUsageResult } from "../models/models_0";
20
- import {
21
- deserializeAws_restJson1ImportApplicationUsageCommand,
22
- serializeAws_restJson1ImportApplicationUsageCommand,
23
- } from "../protocols/Aws_restJson1";
24
-
25
- export interface ImportApplicationUsageCommandInput extends ImportApplicationUsageRequest {}
26
- export interface ImportApplicationUsageCommandOutput extends ImportApplicationUsageResult, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Ingests application usage data from Amazon Simple Storage Service (Amazon S3).</p>
30
- * <p>The data must already exist in the S3 location. As part of the action, AWS Application Cost Profiler
31
- * copies the object from your S3 bucket to an S3 bucket owned by Amazon for processing
32
- * asynchronously.</p>
33
- * @example
34
- * Use a bare-bones client and the command you need to make an API call.
35
- * ```javascript
36
- * import { ApplicationCostProfilerClient, ImportApplicationUsageCommand } from "@aws-sdk/client-applicationcostprofiler"; // ES Modules import
37
- * // const { ApplicationCostProfilerClient, ImportApplicationUsageCommand } = require("@aws-sdk/client-applicationcostprofiler"); // CommonJS import
38
- * const client = new ApplicationCostProfilerClient(config);
39
- * const command = new ImportApplicationUsageCommand(input);
40
- * const response = await client.send(command);
41
- * ```
42
- *
43
- * @see {@link ImportApplicationUsageCommandInput} for command's `input` shape.
44
- * @see {@link ImportApplicationUsageCommandOutput} for command's `response` shape.
45
- * @see {@link ApplicationCostProfilerClientResolvedConfig | config} for command's `input` shape.
46
- *
47
- */
48
- export class ImportApplicationUsageCommand extends $Command<
49
- ImportApplicationUsageCommandInput,
50
- ImportApplicationUsageCommandOutput,
51
- ApplicationCostProfilerClientResolvedConfig
52
- > {
53
- // Start section: command_properties
54
- // End section: command_properties
55
-
56
- constructor(readonly input: ImportApplicationUsageCommandInput) {
57
- // Start section: command_constructor
58
- super();
59
- // End section: command_constructor
60
- }
61
-
62
- /**
63
- * @internal
64
- */
65
- resolveMiddleware(
66
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
67
- configuration: ApplicationCostProfilerClientResolvedConfig,
68
- options?: __HttpHandlerOptions
69
- ): Handler<ImportApplicationUsageCommandInput, ImportApplicationUsageCommandOutput> {
70
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
71
-
72
- const stack = clientStack.concat(this.middlewareStack);
73
-
74
- const { logger } = configuration;
75
- const clientName = "ApplicationCostProfilerClient";
76
- const commandName = "ImportApplicationUsageCommand";
77
- const handlerExecutionContext: HandlerExecutionContext = {
78
- logger,
79
- clientName,
80
- commandName,
81
- inputFilterSensitiveLog: ImportApplicationUsageRequest.filterSensitiveLog,
82
- outputFilterSensitiveLog: ImportApplicationUsageResult.filterSensitiveLog,
83
- };
84
- const { requestHandler } = configuration;
85
- return stack.resolve(
86
- (request: FinalizeHandlerArguments<any>) =>
87
- requestHandler.handle(request.request as __HttpRequest, options || {}),
88
- handlerExecutionContext
89
- );
90
- }
91
-
92
- private serialize(input: ImportApplicationUsageCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
93
- return serializeAws_restJson1ImportApplicationUsageCommand(input, context);
94
- }
95
-
96
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ImportApplicationUsageCommandOutput> {
97
- return deserializeAws_restJson1ImportApplicationUsageCommand(output, context);
98
- }
99
-
100
- // Start section: command_body_extra
101
- // End section: command_body_extra
102
- }
@@ -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 { ListReportDefinitionsRequest, ListReportDefinitionsResult } from "../models/models_0";
20
- import {
21
- deserializeAws_restJson1ListReportDefinitionsCommand,
22
- serializeAws_restJson1ListReportDefinitionsCommand,
23
- } from "../protocols/Aws_restJson1";
24
-
25
- export interface ListReportDefinitionsCommandInput extends ListReportDefinitionsRequest {}
26
- export interface ListReportDefinitionsCommandOutput extends ListReportDefinitionsResult, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Retrieves a list of all reports and their configurations for your AWS account.</p>
30
- * <p>The maximum number of reports is one.</p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { ApplicationCostProfilerClient, ListReportDefinitionsCommand } from "@aws-sdk/client-applicationcostprofiler"; // ES Modules import
35
- * // const { ApplicationCostProfilerClient, ListReportDefinitionsCommand } = require("@aws-sdk/client-applicationcostprofiler"); // CommonJS import
36
- * const client = new ApplicationCostProfilerClient(config);
37
- * const command = new ListReportDefinitionsCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link ListReportDefinitionsCommandInput} for command's `input` shape.
42
- * @see {@link ListReportDefinitionsCommandOutput} for command's `response` shape.
43
- * @see {@link ApplicationCostProfilerClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
- export class ListReportDefinitionsCommand extends $Command<
47
- ListReportDefinitionsCommandInput,
48
- ListReportDefinitionsCommandOutput,
49
- ApplicationCostProfilerClientResolvedConfig
50
- > {
51
- // Start section: command_properties
52
- // End section: command_properties
53
-
54
- constructor(readonly input: ListReportDefinitionsCommandInput) {
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<ListReportDefinitionsCommandInput, ListReportDefinitionsCommandOutput> {
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 = "ListReportDefinitionsCommand";
75
- const handlerExecutionContext: HandlerExecutionContext = {
76
- logger,
77
- clientName,
78
- commandName,
79
- inputFilterSensitiveLog: ListReportDefinitionsRequest.filterSensitiveLog,
80
- outputFilterSensitiveLog: ListReportDefinitionsResult.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: ListReportDefinitionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
91
- return serializeAws_restJson1ListReportDefinitionsCommand(input, context);
92
- }
93
-
94
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListReportDefinitionsCommandOutput> {
95
- return deserializeAws_restJson1ListReportDefinitionsCommand(output, context);
96
- }
97
-
98
- // Start section: command_body_extra
99
- // End section: command_body_extra
100
- }
@@ -1,99 +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 { PutReportDefinitionRequest, PutReportDefinitionResult } from "../models/models_0";
20
- import {
21
- deserializeAws_restJson1PutReportDefinitionCommand,
22
- serializeAws_restJson1PutReportDefinitionCommand,
23
- } from "../protocols/Aws_restJson1";
24
-
25
- export interface PutReportDefinitionCommandInput extends PutReportDefinitionRequest {}
26
- export interface PutReportDefinitionCommandOutput extends PutReportDefinitionResult, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Creates the report definition for a report in Application Cost Profiler.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ApplicationCostProfilerClient, PutReportDefinitionCommand } from "@aws-sdk/client-applicationcostprofiler"; // ES Modules import
34
- * // const { ApplicationCostProfilerClient, PutReportDefinitionCommand } = require("@aws-sdk/client-applicationcostprofiler"); // CommonJS import
35
- * const client = new ApplicationCostProfilerClient(config);
36
- * const command = new PutReportDefinitionCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link PutReportDefinitionCommandInput} for command's `input` shape.
41
- * @see {@link PutReportDefinitionCommandOutput} for command's `response` shape.
42
- * @see {@link ApplicationCostProfilerClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class PutReportDefinitionCommand extends $Command<
46
- PutReportDefinitionCommandInput,
47
- PutReportDefinitionCommandOutput,
48
- ApplicationCostProfilerClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: PutReportDefinitionCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ApplicationCostProfilerClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<PutReportDefinitionCommandInput, PutReportDefinitionCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ApplicationCostProfilerClient";
73
- const commandName = "PutReportDefinitionCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: PutReportDefinitionRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: PutReportDefinitionResult.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: PutReportDefinitionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_restJson1PutReportDefinitionCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutReportDefinitionCommandOutput> {
94
- return deserializeAws_restJson1PutReportDefinitionCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
@@ -1,99 +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 { UpdateReportDefinitionRequest, UpdateReportDefinitionResult } from "../models/models_0";
20
- import {
21
- deserializeAws_restJson1UpdateReportDefinitionCommand,
22
- serializeAws_restJson1UpdateReportDefinitionCommand,
23
- } from "../protocols/Aws_restJson1";
24
-
25
- export interface UpdateReportDefinitionCommandInput extends UpdateReportDefinitionRequest {}
26
- export interface UpdateReportDefinitionCommandOutput extends UpdateReportDefinitionResult, __MetadataBearer {}
27
-
28
- /**
29
- * <p>Updates existing report in AWS Application Cost Profiler.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { ApplicationCostProfilerClient, UpdateReportDefinitionCommand } from "@aws-sdk/client-applicationcostprofiler"; // ES Modules import
34
- * // const { ApplicationCostProfilerClient, UpdateReportDefinitionCommand } = require("@aws-sdk/client-applicationcostprofiler"); // CommonJS import
35
- * const client = new ApplicationCostProfilerClient(config);
36
- * const command = new UpdateReportDefinitionCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link UpdateReportDefinitionCommandInput} for command's `input` shape.
41
- * @see {@link UpdateReportDefinitionCommandOutput} for command's `response` shape.
42
- * @see {@link ApplicationCostProfilerClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
- export class UpdateReportDefinitionCommand extends $Command<
46
- UpdateReportDefinitionCommandInput,
47
- UpdateReportDefinitionCommandOutput,
48
- ApplicationCostProfilerClientResolvedConfig
49
- > {
50
- // Start section: command_properties
51
- // End section: command_properties
52
-
53
- constructor(readonly input: UpdateReportDefinitionCommandInput) {
54
- // Start section: command_constructor
55
- super();
56
- // End section: command_constructor
57
- }
58
-
59
- /**
60
- * @internal
61
- */
62
- resolveMiddleware(
63
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
64
- configuration: ApplicationCostProfilerClientResolvedConfig,
65
- options?: __HttpHandlerOptions
66
- ): Handler<UpdateReportDefinitionCommandInput, UpdateReportDefinitionCommandOutput> {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
-
69
- const stack = clientStack.concat(this.middlewareStack);
70
-
71
- const { logger } = configuration;
72
- const clientName = "ApplicationCostProfilerClient";
73
- const commandName = "UpdateReportDefinitionCommand";
74
- const handlerExecutionContext: HandlerExecutionContext = {
75
- logger,
76
- clientName,
77
- commandName,
78
- inputFilterSensitiveLog: UpdateReportDefinitionRequest.filterSensitiveLog,
79
- outputFilterSensitiveLog: UpdateReportDefinitionResult.filterSensitiveLog,
80
- };
81
- const { requestHandler } = configuration;
82
- return stack.resolve(
83
- (request: FinalizeHandlerArguments<any>) =>
84
- requestHandler.handle(request.request as __HttpRequest, options || {}),
85
- handlerExecutionContext
86
- );
87
- }
88
-
89
- private serialize(input: UpdateReportDefinitionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
90
- return serializeAws_restJson1UpdateReportDefinitionCommand(input, context);
91
- }
92
-
93
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateReportDefinitionCommandOutput> {
94
- return deserializeAws_restJson1UpdateReportDefinitionCommand(output, context);
95
- }
96
-
97
- // Start section: command_body_extra
98
- // End section: command_body_extra
99
- }
package/src/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "application-cost-profiler.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "application-cost-profiler.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "application-cost-profiler.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "application-cost-profiler.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "application-cost-profiler.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "application-cost-profiler",
55
- regionHash,
56
- partitionHash,
57
- });
package/src/index.ts DELETED
@@ -1,11 +0,0 @@
1
- export * from "./ApplicationCostProfilerClient";
2
- export * from "./ApplicationCostProfiler";
3
- export * from "./commands/DeleteReportDefinitionCommand";
4
- export * from "./commands/GetReportDefinitionCommand";
5
- export * from "./commands/ImportApplicationUsageCommand";
6
- export * from "./commands/ListReportDefinitionsCommand";
7
- export * from "./pagination/ListReportDefinitionsPaginator";
8
- export * from "./commands/PutReportDefinitionCommand";
9
- export * from "./commands/UpdateReportDefinitionCommand";
10
- export * from "./pagination/Interfaces";
11
- export * from "./models/index";
@@ -1 +0,0 @@
1
- export * from "./models_0";