@aws-sdk/client-amp 3.454.0 → 3.460.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/README.md +68 -28
- package/dist-cjs/Amp.js +10 -0
- package/dist-cjs/commands/CreateScraperCommand.js +51 -0
- package/dist-cjs/commands/DeleteScraperCommand.js +51 -0
- package/dist-cjs/commands/DescribeScraperCommand.js +51 -0
- package/dist-cjs/commands/GetDefaultScraperConfigurationCommand.js +51 -0
- package/dist-cjs/commands/ListScrapersCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +32 -1
- package/dist-cjs/pagination/ListScrapersPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +396 -1
- package/dist-cjs/waiters/index.js +2 -0
- package/dist-cjs/waiters/waitForScraperActive.js +45 -0
- package/dist-cjs/waiters/waitForScraperDeleted.js +39 -0
- package/dist-es/Amp.js +10 -0
- package/dist-es/commands/CreateScraperCommand.js +47 -0
- package/dist-es/commands/DeleteScraperCommand.js +47 -0
- package/dist-es/commands/DescribeScraperCommand.js +47 -0
- package/dist-es/commands/GetDefaultScraperConfigurationCommand.js +47 -0
- package/dist-es/commands/ListScrapersCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +31 -0
- package/dist-es/pagination/ListScrapersPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +386 -2
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForScraperActive.js +40 -0
- package/dist-es/waiters/waitForScraperDeleted.js +34 -0
- package/dist-types/Amp.d.ts +35 -0
- package/dist-types/AmpClient.d.ts +7 -2
- package/dist-types/commands/CreateScraperCommand.d.ts +124 -0
- package/dist-types/commands/DeleteScraperCommand.d.ts +95 -0
- package/dist-types/commands/DescribeScraperCommand.d.ts +121 -0
- package/dist-types/commands/GetDefaultScraperConfigurationCommand.d.ts +80 -0
- package/dist-types/commands/ListScrapersCommand.d.ts +124 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +460 -0
- package/dist-types/pagination/ListScrapersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/Amp.d.ts +85 -0
- package/dist-types/ts3.4/AmpClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateScraperCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteScraperCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeScraperCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetDefaultScraperConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListScrapersCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +140 -0
- package/dist-types/ts3.4/pagination/ListScrapersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForScraperActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForScraperDeleted.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForScraperActive.d.ts +14 -0
- package/dist-types/waiters/waitForScraperDeleted.d.ts +14 -0
- package/package.json +12 -12
|
@@ -11,16 +11,21 @@ import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConf
|
|
|
11
11
|
import { CreateAlertManagerDefinitionCommandInput, CreateAlertManagerDefinitionCommandOutput } from "./commands/CreateAlertManagerDefinitionCommand";
|
|
12
12
|
import { CreateLoggingConfigurationCommandInput, CreateLoggingConfigurationCommandOutput } from "./commands/CreateLoggingConfigurationCommand";
|
|
13
13
|
import { CreateRuleGroupsNamespaceCommandInput, CreateRuleGroupsNamespaceCommandOutput } from "./commands/CreateRuleGroupsNamespaceCommand";
|
|
14
|
+
import { CreateScraperCommandInput, CreateScraperCommandOutput } from "./commands/CreateScraperCommand";
|
|
14
15
|
import { CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput } from "./commands/CreateWorkspaceCommand";
|
|
15
16
|
import { DeleteAlertManagerDefinitionCommandInput, DeleteAlertManagerDefinitionCommandOutput } from "./commands/DeleteAlertManagerDefinitionCommand";
|
|
16
17
|
import { DeleteLoggingConfigurationCommandInput, DeleteLoggingConfigurationCommandOutput } from "./commands/DeleteLoggingConfigurationCommand";
|
|
17
18
|
import { DeleteRuleGroupsNamespaceCommandInput, DeleteRuleGroupsNamespaceCommandOutput } from "./commands/DeleteRuleGroupsNamespaceCommand";
|
|
19
|
+
import { DeleteScraperCommandInput, DeleteScraperCommandOutput } from "./commands/DeleteScraperCommand";
|
|
18
20
|
import { DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput } from "./commands/DeleteWorkspaceCommand";
|
|
19
21
|
import { DescribeAlertManagerDefinitionCommandInput, DescribeAlertManagerDefinitionCommandOutput } from "./commands/DescribeAlertManagerDefinitionCommand";
|
|
20
22
|
import { DescribeLoggingConfigurationCommandInput, DescribeLoggingConfigurationCommandOutput } from "./commands/DescribeLoggingConfigurationCommand";
|
|
21
23
|
import { DescribeRuleGroupsNamespaceCommandInput, DescribeRuleGroupsNamespaceCommandOutput } from "./commands/DescribeRuleGroupsNamespaceCommand";
|
|
24
|
+
import { DescribeScraperCommandInput, DescribeScraperCommandOutput } from "./commands/DescribeScraperCommand";
|
|
22
25
|
import { DescribeWorkspaceCommandInput, DescribeWorkspaceCommandOutput } from "./commands/DescribeWorkspaceCommand";
|
|
26
|
+
import { GetDefaultScraperConfigurationCommandInput, GetDefaultScraperConfigurationCommandOutput } from "./commands/GetDefaultScraperConfigurationCommand";
|
|
23
27
|
import { ListRuleGroupsNamespacesCommandInput, ListRuleGroupsNamespacesCommandOutput } from "./commands/ListRuleGroupsNamespacesCommand";
|
|
28
|
+
import { ListScrapersCommandInput, ListScrapersCommandOutput } from "./commands/ListScrapersCommand";
|
|
24
29
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
25
30
|
import { ListWorkspacesCommandInput, ListWorkspacesCommandOutput } from "./commands/ListWorkspacesCommand";
|
|
26
31
|
import { PutAlertManagerDefinitionCommandInput, PutAlertManagerDefinitionCommandOutput } from "./commands/PutAlertManagerDefinitionCommand";
|
|
@@ -35,11 +40,11 @@ export { __Client };
|
|
|
35
40
|
/**
|
|
36
41
|
* @public
|
|
37
42
|
*/
|
|
38
|
-
export type ServiceInputTypes = CreateAlertManagerDefinitionCommandInput | CreateLoggingConfigurationCommandInput | CreateRuleGroupsNamespaceCommandInput | CreateWorkspaceCommandInput | DeleteAlertManagerDefinitionCommandInput | DeleteLoggingConfigurationCommandInput | DeleteRuleGroupsNamespaceCommandInput | DeleteWorkspaceCommandInput | DescribeAlertManagerDefinitionCommandInput | DescribeLoggingConfigurationCommandInput | DescribeRuleGroupsNamespaceCommandInput | DescribeWorkspaceCommandInput | ListRuleGroupsNamespacesCommandInput | ListTagsForResourceCommandInput | ListWorkspacesCommandInput | PutAlertManagerDefinitionCommandInput | PutRuleGroupsNamespaceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateLoggingConfigurationCommandInput | UpdateWorkspaceAliasCommandInput;
|
|
43
|
+
export type ServiceInputTypes = CreateAlertManagerDefinitionCommandInput | CreateLoggingConfigurationCommandInput | CreateRuleGroupsNamespaceCommandInput | CreateScraperCommandInput | CreateWorkspaceCommandInput | DeleteAlertManagerDefinitionCommandInput | DeleteLoggingConfigurationCommandInput | DeleteRuleGroupsNamespaceCommandInput | DeleteScraperCommandInput | DeleteWorkspaceCommandInput | DescribeAlertManagerDefinitionCommandInput | DescribeLoggingConfigurationCommandInput | DescribeRuleGroupsNamespaceCommandInput | DescribeScraperCommandInput | DescribeWorkspaceCommandInput | GetDefaultScraperConfigurationCommandInput | ListRuleGroupsNamespacesCommandInput | ListScrapersCommandInput | ListTagsForResourceCommandInput | ListWorkspacesCommandInput | PutAlertManagerDefinitionCommandInput | PutRuleGroupsNamespaceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateLoggingConfigurationCommandInput | UpdateWorkspaceAliasCommandInput;
|
|
39
44
|
/**
|
|
40
45
|
* @public
|
|
41
46
|
*/
|
|
42
|
-
export type ServiceOutputTypes = CreateAlertManagerDefinitionCommandOutput | CreateLoggingConfigurationCommandOutput | CreateRuleGroupsNamespaceCommandOutput | CreateWorkspaceCommandOutput | DeleteAlertManagerDefinitionCommandOutput | DeleteLoggingConfigurationCommandOutput | DeleteRuleGroupsNamespaceCommandOutput | DeleteWorkspaceCommandOutput | DescribeAlertManagerDefinitionCommandOutput | DescribeLoggingConfigurationCommandOutput | DescribeRuleGroupsNamespaceCommandOutput | DescribeWorkspaceCommandOutput | ListRuleGroupsNamespacesCommandOutput | ListTagsForResourceCommandOutput | ListWorkspacesCommandOutput | PutAlertManagerDefinitionCommandOutput | PutRuleGroupsNamespaceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateLoggingConfigurationCommandOutput | UpdateWorkspaceAliasCommandOutput;
|
|
47
|
+
export type ServiceOutputTypes = CreateAlertManagerDefinitionCommandOutput | CreateLoggingConfigurationCommandOutput | CreateRuleGroupsNamespaceCommandOutput | CreateScraperCommandOutput | CreateWorkspaceCommandOutput | DeleteAlertManagerDefinitionCommandOutput | DeleteLoggingConfigurationCommandOutput | DeleteRuleGroupsNamespaceCommandOutput | DeleteScraperCommandOutput | DeleteWorkspaceCommandOutput | DescribeAlertManagerDefinitionCommandOutput | DescribeLoggingConfigurationCommandOutput | DescribeRuleGroupsNamespaceCommandOutput | DescribeScraperCommandOutput | DescribeWorkspaceCommandOutput | GetDefaultScraperConfigurationCommandOutput | ListRuleGroupsNamespacesCommandOutput | ListScrapersCommandOutput | ListTagsForResourceCommandOutput | ListWorkspacesCommandOutput | PutAlertManagerDefinitionCommandOutput | PutRuleGroupsNamespaceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateLoggingConfigurationCommandOutput | UpdateWorkspaceAliasCommandOutput;
|
|
43
48
|
/**
|
|
44
49
|
* @public
|
|
45
50
|
*/
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
|
|
5
|
+
import { CreateScraperRequest, CreateScraperResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateScraperCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateScraperCommandInput extends CreateScraperRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateScraperCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateScraperCommandOutput extends CreateScraperResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Create a scraper.
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { AmpClient, CreateScraperCommand } from "@aws-sdk/client-amp"; // ES Modules import
|
|
31
|
+
* // const { AmpClient, CreateScraperCommand } = require("@aws-sdk/client-amp"); // CommonJS import
|
|
32
|
+
* const client = new AmpClient(config);
|
|
33
|
+
* const input = { // CreateScraperRequest
|
|
34
|
+
* alias: "STRING_VALUE",
|
|
35
|
+
* scrapeConfiguration: { // ScrapeConfiguration Union: only one key present
|
|
36
|
+
* configurationBlob: "BLOB_VALUE",
|
|
37
|
+
* },
|
|
38
|
+
* source: { // Source Union: only one key present
|
|
39
|
+
* eksConfiguration: { // EksConfiguration
|
|
40
|
+
* clusterArn: "STRING_VALUE", // required
|
|
41
|
+
* securityGroupIds: [ // SecurityGroupIds
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* subnetIds: [ // SubnetIds // required
|
|
45
|
+
* "STRING_VALUE",
|
|
46
|
+
* ],
|
|
47
|
+
* },
|
|
48
|
+
* },
|
|
49
|
+
* destination: { // Destination Union: only one key present
|
|
50
|
+
* ampConfiguration: { // AmpConfiguration
|
|
51
|
+
* workspaceArn: "STRING_VALUE", // required
|
|
52
|
+
* },
|
|
53
|
+
* },
|
|
54
|
+
* clientToken: "STRING_VALUE",
|
|
55
|
+
* tags: { // TagMap
|
|
56
|
+
* "<keys>": "STRING_VALUE",
|
|
57
|
+
* },
|
|
58
|
+
* };
|
|
59
|
+
* const command = new CreateScraperCommand(input);
|
|
60
|
+
* const response = await client.send(command);
|
|
61
|
+
* // { // CreateScraperResponse
|
|
62
|
+
* // scraperId: "STRING_VALUE", // required
|
|
63
|
+
* // arn: "STRING_VALUE", // required
|
|
64
|
+
* // status: { // ScraperStatus
|
|
65
|
+
* // statusCode: "STRING_VALUE", // required
|
|
66
|
+
* // },
|
|
67
|
+
* // tags: { // TagMap
|
|
68
|
+
* // "<keys>": "STRING_VALUE",
|
|
69
|
+
* // },
|
|
70
|
+
* // };
|
|
71
|
+
*
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* @param CreateScraperCommandInput - {@link CreateScraperCommandInput}
|
|
75
|
+
* @returns {@link CreateScraperCommandOutput}
|
|
76
|
+
* @see {@link CreateScraperCommandInput} for command's `input` shape.
|
|
77
|
+
* @see {@link CreateScraperCommandOutput} for command's `response` shape.
|
|
78
|
+
* @see {@link AmpClientResolvedConfig | config} for AmpClient's `config` shape.
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
81
|
+
* User does not have sufficient access to perform this action.
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ConflictException} (client fault)
|
|
84
|
+
* Updating or deleting a resource can cause an inconsistent state.
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link InternalServerException} (server fault)
|
|
87
|
+
* Unexpected error during processing of request.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
90
|
+
* Request references a resource which does not exist.
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
93
|
+
* Request would cause a service quota to be exceeded.
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
96
|
+
* Request was denied due to request throttling.
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link ValidationException} (client fault)
|
|
99
|
+
* The input fails to satisfy the constraints specified by an AWS service.
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link AmpServiceException}
|
|
102
|
+
* <p>Base exception class for all service exceptions from Amp service.</p>
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
export declare class CreateScraperCommand extends $Command<CreateScraperCommandInput, CreateScraperCommandOutput, AmpClientResolvedConfig> {
|
|
106
|
+
readonly input: CreateScraperCommandInput;
|
|
107
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
108
|
+
/**
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
constructor(input: CreateScraperCommandInput);
|
|
112
|
+
/**
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmpClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateScraperCommandInput, CreateScraperCommandOutput>;
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
private serialize;
|
|
120
|
+
/**
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
private deserialize;
|
|
124
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
|
|
5
|
+
import { DeleteScraperRequest, DeleteScraperResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteScraperCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteScraperCommandInput extends DeleteScraperRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteScraperCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteScraperCommandOutput extends DeleteScraperResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Deletes a scraper.
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { AmpClient, DeleteScraperCommand } from "@aws-sdk/client-amp"; // ES Modules import
|
|
31
|
+
* // const { AmpClient, DeleteScraperCommand } = require("@aws-sdk/client-amp"); // CommonJS import
|
|
32
|
+
* const client = new AmpClient(config);
|
|
33
|
+
* const input = { // DeleteScraperRequest
|
|
34
|
+
* scraperId: "STRING_VALUE", // required
|
|
35
|
+
* clientToken: "STRING_VALUE",
|
|
36
|
+
* };
|
|
37
|
+
* const command = new DeleteScraperCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // DeleteScraperResponse
|
|
40
|
+
* // scraperId: "STRING_VALUE", // required
|
|
41
|
+
* // status: { // ScraperStatus
|
|
42
|
+
* // statusCode: "STRING_VALUE", // required
|
|
43
|
+
* // },
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param DeleteScraperCommandInput - {@link DeleteScraperCommandInput}
|
|
49
|
+
* @returns {@link DeleteScraperCommandOutput}
|
|
50
|
+
* @see {@link DeleteScraperCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link DeleteScraperCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link AmpClientResolvedConfig | config} for AmpClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* User does not have sufficient access to perform this action.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ConflictException} (client fault)
|
|
58
|
+
* Updating or deleting a resource can cause an inconsistent state.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link InternalServerException} (server fault)
|
|
61
|
+
* Unexpected error during processing of request.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
64
|
+
* Request references a resource which does not exist.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
67
|
+
* Request was denied due to request throttling.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ValidationException} (client fault)
|
|
70
|
+
* The input fails to satisfy the constraints specified by an AWS service.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AmpServiceException}
|
|
73
|
+
* <p>Base exception class for all service exceptions from Amp service.</p>
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
export declare class DeleteScraperCommand extends $Command<DeleteScraperCommandInput, DeleteScraperCommandOutput, AmpClientResolvedConfig> {
|
|
77
|
+
readonly input: DeleteScraperCommandInput;
|
|
78
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
constructor(input: DeleteScraperCommandInput);
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmpClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteScraperCommandInput, DeleteScraperCommandOutput>;
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
private serialize;
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
private deserialize;
|
|
95
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
|
|
5
|
+
import { DescribeScraperRequest, DescribeScraperResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DescribeScraperCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DescribeScraperCommandInput extends DescribeScraperRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DescribeScraperCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DescribeScraperCommandOutput extends DescribeScraperResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Describe an existing scraper.
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { AmpClient, DescribeScraperCommand } from "@aws-sdk/client-amp"; // ES Modules import
|
|
31
|
+
* // const { AmpClient, DescribeScraperCommand } = require("@aws-sdk/client-amp"); // CommonJS import
|
|
32
|
+
* const client = new AmpClient(config);
|
|
33
|
+
* const input = { // DescribeScraperRequest
|
|
34
|
+
* scraperId: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
36
|
+
* const command = new DescribeScraperCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* // { // DescribeScraperResponse
|
|
39
|
+
* // scraper: { // ScraperDescription
|
|
40
|
+
* // alias: "STRING_VALUE",
|
|
41
|
+
* // scraperId: "STRING_VALUE", // required
|
|
42
|
+
* // arn: "STRING_VALUE", // required
|
|
43
|
+
* // roleArn: "STRING_VALUE", // required
|
|
44
|
+
* // status: { // ScraperStatus
|
|
45
|
+
* // statusCode: "STRING_VALUE", // required
|
|
46
|
+
* // },
|
|
47
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
48
|
+
* // lastModifiedAt: new Date("TIMESTAMP"), // required
|
|
49
|
+
* // tags: { // TagMap
|
|
50
|
+
* // "<keys>": "STRING_VALUE",
|
|
51
|
+
* // },
|
|
52
|
+
* // statusReason: "STRING_VALUE",
|
|
53
|
+
* // scrapeConfiguration: { // ScrapeConfiguration Union: only one key present
|
|
54
|
+
* // configurationBlob: "BLOB_VALUE",
|
|
55
|
+
* // },
|
|
56
|
+
* // source: { // Source Union: only one key present
|
|
57
|
+
* // eksConfiguration: { // EksConfiguration
|
|
58
|
+
* // clusterArn: "STRING_VALUE", // required
|
|
59
|
+
* // securityGroupIds: [ // SecurityGroupIds
|
|
60
|
+
* // "STRING_VALUE",
|
|
61
|
+
* // ],
|
|
62
|
+
* // subnetIds: [ // SubnetIds // required
|
|
63
|
+
* // "STRING_VALUE",
|
|
64
|
+
* // ],
|
|
65
|
+
* // },
|
|
66
|
+
* // },
|
|
67
|
+
* // destination: { // Destination Union: only one key present
|
|
68
|
+
* // ampConfiguration: { // AmpConfiguration
|
|
69
|
+
* // workspaceArn: "STRING_VALUE", // required
|
|
70
|
+
* // },
|
|
71
|
+
* // },
|
|
72
|
+
* // },
|
|
73
|
+
* // };
|
|
74
|
+
*
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @param DescribeScraperCommandInput - {@link DescribeScraperCommandInput}
|
|
78
|
+
* @returns {@link DescribeScraperCommandOutput}
|
|
79
|
+
* @see {@link DescribeScraperCommandInput} for command's `input` shape.
|
|
80
|
+
* @see {@link DescribeScraperCommandOutput} for command's `response` shape.
|
|
81
|
+
* @see {@link AmpClientResolvedConfig | config} for AmpClient's `config` shape.
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
84
|
+
* User does not have sufficient access to perform this action.
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link InternalServerException} (server fault)
|
|
87
|
+
* Unexpected error during processing of request.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
90
|
+
* Request references a resource which does not exist.
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
93
|
+
* Request was denied due to request throttling.
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link ValidationException} (client fault)
|
|
96
|
+
* The input fails to satisfy the constraints specified by an AWS service.
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link AmpServiceException}
|
|
99
|
+
* <p>Base exception class for all service exceptions from Amp service.</p>
|
|
100
|
+
*
|
|
101
|
+
*/
|
|
102
|
+
export declare class DescribeScraperCommand extends $Command<DescribeScraperCommandInput, DescribeScraperCommandOutput, AmpClientResolvedConfig> {
|
|
103
|
+
readonly input: DescribeScraperCommandInput;
|
|
104
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
105
|
+
/**
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
constructor(input: DescribeScraperCommandInput);
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
112
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmpClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeScraperCommandInput, DescribeScraperCommandOutput>;
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
private serialize;
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
private deserialize;
|
|
121
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
|
|
5
|
+
import { GetDefaultScraperConfigurationRequest, GetDefaultScraperConfigurationResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetDefaultScraperConfigurationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetDefaultScraperConfigurationCommandInput extends GetDefaultScraperConfigurationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetDefaultScraperConfigurationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetDefaultScraperConfigurationCommandOutput extends GetDefaultScraperConfigurationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Gets a default configuration.
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { AmpClient, GetDefaultScraperConfigurationCommand } from "@aws-sdk/client-amp"; // ES Modules import
|
|
31
|
+
* // const { AmpClient, GetDefaultScraperConfigurationCommand } = require("@aws-sdk/client-amp"); // CommonJS import
|
|
32
|
+
* const client = new AmpClient(config);
|
|
33
|
+
* const input = {};
|
|
34
|
+
* const command = new GetDefaultScraperConfigurationCommand(input);
|
|
35
|
+
* const response = await client.send(command);
|
|
36
|
+
* // { // GetDefaultScraperConfigurationResponse
|
|
37
|
+
* // configuration: "BLOB_VALUE", // required
|
|
38
|
+
* // };
|
|
39
|
+
*
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @param GetDefaultScraperConfigurationCommandInput - {@link GetDefaultScraperConfigurationCommandInput}
|
|
43
|
+
* @returns {@link GetDefaultScraperConfigurationCommandOutput}
|
|
44
|
+
* @see {@link GetDefaultScraperConfigurationCommandInput} for command's `input` shape.
|
|
45
|
+
* @see {@link GetDefaultScraperConfigurationCommandOutput} for command's `response` shape.
|
|
46
|
+
* @see {@link AmpClientResolvedConfig | config} for AmpClient's `config` shape.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
49
|
+
* User does not have sufficient access to perform this action.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link InternalServerException} (server fault)
|
|
52
|
+
* Unexpected error during processing of request.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
55
|
+
* Request was denied due to request throttling.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link AmpServiceException}
|
|
58
|
+
* <p>Base exception class for all service exceptions from Amp service.</p>
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
export declare class GetDefaultScraperConfigurationCommand extends $Command<GetDefaultScraperConfigurationCommandInput, GetDefaultScraperConfigurationCommandOutput, AmpClientResolvedConfig> {
|
|
62
|
+
readonly input: GetDefaultScraperConfigurationCommandInput;
|
|
63
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
constructor(input: GetDefaultScraperConfigurationCommandInput);
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmpClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDefaultScraperConfigurationCommandInput, GetDefaultScraperConfigurationCommandOutput>;
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
private serialize;
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
private deserialize;
|
|
80
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
|
|
5
|
+
import { ListScrapersRequest, ListScrapersResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListScrapersCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListScrapersCommandInput extends ListScrapersRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListScrapersCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListScrapersCommandOutput extends ListScrapersResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Lists all scrapers in a customer account, including scrapers being created or deleted. You may provide filters to return a more specific list of results.
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { AmpClient, ListScrapersCommand } from "@aws-sdk/client-amp"; // ES Modules import
|
|
31
|
+
* // const { AmpClient, ListScrapersCommand } = require("@aws-sdk/client-amp"); // CommonJS import
|
|
32
|
+
* const client = new AmpClient(config);
|
|
33
|
+
* const input = { // ListScrapersRequest
|
|
34
|
+
* filters: { // ScraperFilters
|
|
35
|
+
* "<keys>": [ // FilterValues
|
|
36
|
+
* "STRING_VALUE",
|
|
37
|
+
* ],
|
|
38
|
+
* },
|
|
39
|
+
* nextToken: "STRING_VALUE",
|
|
40
|
+
* maxResults: Number("int"),
|
|
41
|
+
* };
|
|
42
|
+
* const command = new ListScrapersCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // ListScrapersResponse
|
|
45
|
+
* // scrapers: [ // ScraperSummaryList // required
|
|
46
|
+
* // { // ScraperSummary
|
|
47
|
+
* // alias: "STRING_VALUE",
|
|
48
|
+
* // scraperId: "STRING_VALUE", // required
|
|
49
|
+
* // arn: "STRING_VALUE", // required
|
|
50
|
+
* // roleArn: "STRING_VALUE", // required
|
|
51
|
+
* // status: { // ScraperStatus
|
|
52
|
+
* // statusCode: "STRING_VALUE", // required
|
|
53
|
+
* // },
|
|
54
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
55
|
+
* // lastModifiedAt: new Date("TIMESTAMP"), // required
|
|
56
|
+
* // tags: { // TagMap
|
|
57
|
+
* // "<keys>": "STRING_VALUE",
|
|
58
|
+
* // },
|
|
59
|
+
* // statusReason: "STRING_VALUE",
|
|
60
|
+
* // source: { // Source Union: only one key present
|
|
61
|
+
* // eksConfiguration: { // EksConfiguration
|
|
62
|
+
* // clusterArn: "STRING_VALUE", // required
|
|
63
|
+
* // securityGroupIds: [ // SecurityGroupIds
|
|
64
|
+
* // "STRING_VALUE",
|
|
65
|
+
* // ],
|
|
66
|
+
* // subnetIds: [ // SubnetIds // required
|
|
67
|
+
* // "STRING_VALUE",
|
|
68
|
+
* // ],
|
|
69
|
+
* // },
|
|
70
|
+
* // },
|
|
71
|
+
* // destination: { // Destination Union: only one key present
|
|
72
|
+
* // ampConfiguration: { // AmpConfiguration
|
|
73
|
+
* // workspaceArn: "STRING_VALUE", // required
|
|
74
|
+
* // },
|
|
75
|
+
* // },
|
|
76
|
+
* // },
|
|
77
|
+
* // ],
|
|
78
|
+
* // nextToken: "STRING_VALUE",
|
|
79
|
+
* // };
|
|
80
|
+
*
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @param ListScrapersCommandInput - {@link ListScrapersCommandInput}
|
|
84
|
+
* @returns {@link ListScrapersCommandOutput}
|
|
85
|
+
* @see {@link ListScrapersCommandInput} for command's `input` shape.
|
|
86
|
+
* @see {@link ListScrapersCommandOutput} for command's `response` shape.
|
|
87
|
+
* @see {@link AmpClientResolvedConfig | config} for AmpClient's `config` shape.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
90
|
+
* User does not have sufficient access to perform this action.
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link InternalServerException} (server fault)
|
|
93
|
+
* Unexpected error during processing of request.
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
96
|
+
* Request was denied due to request throttling.
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link ValidationException} (client fault)
|
|
99
|
+
* The input fails to satisfy the constraints specified by an AWS service.
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link AmpServiceException}
|
|
102
|
+
* <p>Base exception class for all service exceptions from Amp service.</p>
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
export declare class ListScrapersCommand extends $Command<ListScrapersCommandInput, ListScrapersCommandOutput, AmpClientResolvedConfig> {
|
|
106
|
+
readonly input: ListScrapersCommandInput;
|
|
107
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
108
|
+
/**
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
constructor(input: ListScrapersCommandInput);
|
|
112
|
+
/**
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmpClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListScrapersCommandInput, ListScrapersCommandOutput>;
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
private serialize;
|
|
120
|
+
/**
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
private deserialize;
|
|
124
|
+
}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
export * from "./CreateAlertManagerDefinitionCommand";
|
|
2
2
|
export * from "./CreateLoggingConfigurationCommand";
|
|
3
3
|
export * from "./CreateRuleGroupsNamespaceCommand";
|
|
4
|
+
export * from "./CreateScraperCommand";
|
|
4
5
|
export * from "./CreateWorkspaceCommand";
|
|
5
6
|
export * from "./DeleteAlertManagerDefinitionCommand";
|
|
6
7
|
export * from "./DeleteLoggingConfigurationCommand";
|
|
7
8
|
export * from "./DeleteRuleGroupsNamespaceCommand";
|
|
9
|
+
export * from "./DeleteScraperCommand";
|
|
8
10
|
export * from "./DeleteWorkspaceCommand";
|
|
9
11
|
export * from "./DescribeAlertManagerDefinitionCommand";
|
|
10
12
|
export * from "./DescribeLoggingConfigurationCommand";
|
|
11
13
|
export * from "./DescribeRuleGroupsNamespaceCommand";
|
|
14
|
+
export * from "./DescribeScraperCommand";
|
|
12
15
|
export * from "./DescribeWorkspaceCommand";
|
|
16
|
+
export * from "./GetDefaultScraperConfigurationCommand";
|
|
13
17
|
export * from "./ListRuleGroupsNamespacesCommand";
|
|
18
|
+
export * from "./ListScrapersCommand";
|
|
14
19
|
export * from "./ListTagsForResourceCommand";
|
|
15
20
|
export * from "./ListWorkspacesCommand";
|
|
16
21
|
export * from "./PutAlertManagerDefinitionCommand";
|