@aws-sdk/client-inspector 3.774.0 → 3.777.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/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/InspectorClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/AddAttributesToFindingsCommand.d.ts +8 -8
- package/dist-types/commands/CreateAssessmentTargetCommand.d.ts +6 -6
- package/dist-types/commands/CreateAssessmentTemplateCommand.d.ts +11 -11
- package/dist-types/commands/CreateExclusionsPreviewCommand.d.ts +1 -0
- package/dist-types/commands/CreateResourceGroupCommand.d.ts +7 -7
- package/dist-types/commands/DeleteAssessmentRunCommand.d.ts +7 -4
- package/dist-types/commands/DeleteAssessmentTargetCommand.d.ts +7 -4
- package/dist-types/commands/DeleteAssessmentTemplateCommand.d.ts +7 -4
- package/dist-types/commands/DescribeAssessmentRunsCommand.d.ts +1 -78
- package/dist-types/commands/DescribeAssessmentTargetsCommand.d.ts +1 -27
- package/dist-types/commands/DescribeAssessmentTemplatesCommand.d.ts +1 -32
- package/dist-types/commands/DescribeCrossAccountAccessRoleCommand.d.ts +1 -16
- package/dist-types/commands/DescribeExclusionsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeFindingsCommand.d.ts +1 -46
- package/dist-types/commands/DescribeResourceGroupsCommand.d.ts +1 -30
- package/dist-types/commands/DescribeRulesPackagesCommand.d.ts +11 -11
- package/dist-types/commands/GetAssessmentReportCommand.d.ts +1 -0
- package/dist-types/commands/GetExclusionsPreviewCommand.d.ts +1 -0
- package/dist-types/commands/GetTelemetryMetadataCommand.d.ts +92 -92
- package/dist-types/commands/ListAssessmentRunAgentsCommand.d.ts +99 -99
- package/dist-types/commands/ListAssessmentRunsCommand.d.ts +7 -7
- package/dist-types/commands/ListAssessmentTargetsCommand.d.ts +6 -6
- package/dist-types/commands/ListAssessmentTemplatesCommand.d.ts +7 -7
- package/dist-types/commands/ListEventSubscriptionsCommand.d.ts +1 -29
- package/dist-types/commands/ListExclusionsCommand.d.ts +1 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +7 -7
- package/dist-types/commands/ListRulesPackagesCommand.d.ts +6 -6
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +7 -7
- package/dist-types/commands/PreviewAgentsCommand.d.ts +8 -8
- package/dist-types/commands/RegisterCrossAccountAccessRoleCommand.d.ts +7 -4
- package/dist-types/commands/RemoveAttributesFromFindingsCommand.d.ts +6 -6
- package/dist-types/commands/SetTagsForResourceCommand.d.ts +10 -7
- package/dist-types/commands/StartAssessmentRunCommand.d.ts +6 -6
- package/dist-types/commands/StopAssessmentRunCommand.d.ts +7 -4
- package/dist-types/commands/SubscribeToEventCommand.d.ts +9 -6
- package/dist-types/commands/UnsubscribeFromEventCommand.d.ts +9 -6
- package/dist-types/commands/UpdateAssessmentTargetCommand.d.ts +9 -6
- package/package.json +33 -33
|
@@ -40,8 +40,6 @@ const defaultInspectorHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultInspectorHttpAuthSchemeProvider = defaultInspectorHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -121,12 +121,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
121
121
|
|
|
122
122
|
// src/endpoint/EndpointParameters.ts
|
|
123
123
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
124
|
-
return {
|
|
125
|
-
...options,
|
|
124
|
+
return Object.assign(options, {
|
|
126
125
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
127
126
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
128
127
|
defaultSigningName: "inspector"
|
|
129
|
-
};
|
|
128
|
+
});
|
|
130
129
|
}, "resolveClientEndpointParameters");
|
|
131
130
|
var commonParams = {
|
|
132
131
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -183,22 +182,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
183
182
|
}, "resolveHttpAuthRuntimeConfig");
|
|
184
183
|
|
|
185
184
|
// src/runtimeExtensions.ts
|
|
186
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
187
185
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
188
|
-
const extensionConfiguration =
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
186
|
+
const extensionConfiguration = Object.assign(
|
|
187
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
188
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
189
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
190
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
191
|
+
);
|
|
194
192
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
195
|
-
return
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
193
|
+
return Object.assign(
|
|
194
|
+
runtimeConfig,
|
|
195
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
196
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
197
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
198
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
199
|
+
);
|
|
202
200
|
}, "resolveRuntimeExtensions");
|
|
203
201
|
|
|
204
202
|
// src/InspectorClient.ts
|
|
@@ -212,6 +210,8 @@ var InspectorClient = class extends import_smithy_client.Client {
|
|
|
212
210
|
config;
|
|
213
211
|
constructor(...[configuration]) {
|
|
214
212
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
213
|
+
super(_config_0);
|
|
214
|
+
this.initConfig = _config_0;
|
|
215
215
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
216
216
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
217
217
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -220,7 +220,6 @@ var InspectorClient = class extends import_smithy_client.Client {
|
|
|
220
220
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
221
221
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
222
222
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
223
|
-
super(_config_8);
|
|
224
223
|
this.config = _config_8;
|
|
225
224
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
226
225
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
@@ -17,6 +17,8 @@ export class InspectorClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class InspectorClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultInspectorHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "inspector",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -85,31 +85,31 @@ declare const AddAttributesToFindingsCommand_base: {
|
|
|
85
85
|
* @throws {@link InspectorServiceException}
|
|
86
86
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
87
87
|
*
|
|
88
|
-
*
|
|
88
|
+
*
|
|
89
89
|
* @example Add attributes to findings
|
|
90
90
|
* ```javascript
|
|
91
91
|
* // Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.
|
|
92
92
|
* const input = {
|
|
93
|
-
*
|
|
93
|
+
* attributes: [
|
|
94
94
|
* {
|
|
95
|
-
*
|
|
96
|
-
*
|
|
95
|
+
* key: "Example",
|
|
96
|
+
* value: "example"
|
|
97
97
|
* }
|
|
98
98
|
* ],
|
|
99
|
-
*
|
|
99
|
+
* findingArns: [
|
|
100
100
|
* "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-8l1VIE0D/run/0-Z02cjjug/finding/0-T8yM9mEU"
|
|
101
101
|
* ]
|
|
102
102
|
* };
|
|
103
103
|
* const command = new AddAttributesToFindingsCommand(input);
|
|
104
104
|
* const response = await client.send(command);
|
|
105
|
-
* /* response
|
|
105
|
+
* /* response is
|
|
106
106
|
* {
|
|
107
|
-
*
|
|
107
|
+
* failedItems: { /* empty *\/ }
|
|
108
108
|
* }
|
|
109
109
|
* *\/
|
|
110
|
-
* // example id: add-attributes-to-findings-1481063856401
|
|
111
110
|
* ```
|
|
112
111
|
*
|
|
112
|
+
* @public
|
|
113
113
|
*/
|
|
114
114
|
export declare class AddAttributesToFindingsCommand extends AddAttributesToFindingsCommand_base {
|
|
115
115
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -87,24 +87,24 @@ declare const CreateAssessmentTargetCommand_base: {
|
|
|
87
87
|
* @throws {@link InspectorServiceException}
|
|
88
88
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
89
89
|
*
|
|
90
|
-
*
|
|
90
|
+
*
|
|
91
91
|
* @example Create assessment target
|
|
92
92
|
* ```javascript
|
|
93
93
|
* // Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account.
|
|
94
94
|
* const input = {
|
|
95
|
-
*
|
|
96
|
-
*
|
|
95
|
+
* assessmentTargetName: "ExampleAssessmentTarget",
|
|
96
|
+
* resourceGroupArn: "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv"
|
|
97
97
|
* };
|
|
98
98
|
* const command = new CreateAssessmentTargetCommand(input);
|
|
99
99
|
* const response = await client.send(command);
|
|
100
|
-
* /* response
|
|
100
|
+
* /* response is
|
|
101
101
|
* {
|
|
102
|
-
*
|
|
102
|
+
* assessmentTargetArn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX"
|
|
103
103
|
* }
|
|
104
104
|
* *\/
|
|
105
|
-
* // example id: create-assessment-target-1481063953657
|
|
106
105
|
* ```
|
|
107
106
|
*
|
|
107
|
+
* @public
|
|
108
108
|
*/
|
|
109
109
|
export declare class CreateAssessmentTargetCommand extends CreateAssessmentTargetCommand_base {
|
|
110
110
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -89,34 +89,34 @@ declare const CreateAssessmentTemplateCommand_base: {
|
|
|
89
89
|
* @throws {@link InspectorServiceException}
|
|
90
90
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
91
91
|
*
|
|
92
|
-
*
|
|
92
|
+
*
|
|
93
93
|
* @example Create assessment template
|
|
94
94
|
* ```javascript
|
|
95
95
|
* // Creates an assessment template for the assessment target that is specified by the ARN of the assessment target.
|
|
96
96
|
* const input = {
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
97
|
+
* assessmentTargetArn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX",
|
|
98
|
+
* assessmentTemplateName: "ExampleAssessmentTemplate",
|
|
99
|
+
* durationInSeconds: 180,
|
|
100
|
+
* rulesPackageArns: [
|
|
101
101
|
* "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-11B9DBXp"
|
|
102
102
|
* ],
|
|
103
|
-
*
|
|
103
|
+
* userAttributesForFindings: [
|
|
104
104
|
* {
|
|
105
|
-
*
|
|
106
|
-
*
|
|
105
|
+
* key: "Example",
|
|
106
|
+
* value: "example"
|
|
107
107
|
* }
|
|
108
108
|
* ]
|
|
109
109
|
* };
|
|
110
110
|
* const command = new CreateAssessmentTemplateCommand(input);
|
|
111
111
|
* const response = await client.send(command);
|
|
112
|
-
* /* response
|
|
112
|
+
* /* response is
|
|
113
113
|
* {
|
|
114
|
-
*
|
|
114
|
+
* assessmentTemplateArn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T"
|
|
115
115
|
* }
|
|
116
116
|
* *\/
|
|
117
|
-
* // example id: create-assessment-template-1481064046719
|
|
118
117
|
* ```
|
|
119
118
|
*
|
|
119
|
+
* @public
|
|
120
120
|
*/
|
|
121
121
|
export declare class CreateAssessmentTemplateCommand extends CreateAssessmentTemplateCommand_base {
|
|
122
122
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -77,6 +77,7 @@ declare const CreateExclusionsPreviewCommand_base: {
|
|
|
77
77
|
* @throws {@link InspectorServiceException}
|
|
78
78
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
79
79
|
*
|
|
80
|
+
*
|
|
80
81
|
* @public
|
|
81
82
|
*/
|
|
82
83
|
export declare class CreateExclusionsPreviewCommand extends CreateExclusionsPreviewCommand_base {
|
|
@@ -79,28 +79,28 @@ declare const CreateResourceGroupCommand_base: {
|
|
|
79
79
|
* @throws {@link InspectorServiceException}
|
|
80
80
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
81
81
|
*
|
|
82
|
-
*
|
|
82
|
+
*
|
|
83
83
|
* @example Create resource group
|
|
84
84
|
* ```javascript
|
|
85
85
|
* // Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target. The created resource group is then used to create an Amazon Inspector assessment target.
|
|
86
86
|
* const input = {
|
|
87
|
-
*
|
|
87
|
+
* resourceGroupTags: [
|
|
88
88
|
* {
|
|
89
|
-
*
|
|
90
|
-
*
|
|
89
|
+
* key: "Name",
|
|
90
|
+
* value: "example"
|
|
91
91
|
* }
|
|
92
92
|
* ]
|
|
93
93
|
* };
|
|
94
94
|
* const command = new CreateResourceGroupCommand(input);
|
|
95
95
|
* const response = await client.send(command);
|
|
96
|
-
* /* response
|
|
96
|
+
* /* response is
|
|
97
97
|
* {
|
|
98
|
-
*
|
|
98
|
+
* resourceGroupArn: "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv"
|
|
99
99
|
* }
|
|
100
100
|
* *\/
|
|
101
|
-
* // example id: create-resource-group-1481064169037
|
|
102
101
|
* ```
|
|
103
102
|
*
|
|
103
|
+
* @public
|
|
104
104
|
*/
|
|
105
105
|
export declare class CreateResourceGroupCommand extends CreateResourceGroupCommand_base {
|
|
106
106
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -74,18 +74,21 @@ declare const DeleteAssessmentRunCommand_base: {
|
|
|
74
74
|
* @throws {@link InspectorServiceException}
|
|
75
75
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
76
76
|
*
|
|
77
|
-
*
|
|
77
|
+
*
|
|
78
78
|
* @example Delete assessment run
|
|
79
79
|
* ```javascript
|
|
80
80
|
* // Deletes the assessment run that is specified by the ARN of the assessment run.
|
|
81
81
|
* const input = {
|
|
82
|
-
*
|
|
82
|
+
* assessmentRunArn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T/run/0-11LMTAVe"
|
|
83
83
|
* };
|
|
84
84
|
* const command = new DeleteAssessmentRunCommand(input);
|
|
85
|
-
* await client.send(command);
|
|
86
|
-
*
|
|
85
|
+
* const response = await client.send(command);
|
|
86
|
+
* /* response is
|
|
87
|
+
* { /* metadata only *\/ }
|
|
88
|
+
* *\/
|
|
87
89
|
* ```
|
|
88
90
|
*
|
|
91
|
+
* @public
|
|
89
92
|
*/
|
|
90
93
|
export declare class DeleteAssessmentRunCommand extends DeleteAssessmentRunCommand_base {
|
|
91
94
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -74,18 +74,21 @@ declare const DeleteAssessmentTargetCommand_base: {
|
|
|
74
74
|
* @throws {@link InspectorServiceException}
|
|
75
75
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
76
76
|
*
|
|
77
|
-
*
|
|
77
|
+
*
|
|
78
78
|
* @example Delete assessment target
|
|
79
79
|
* ```javascript
|
|
80
80
|
* // Deletes the assessment target that is specified by the ARN of the assessment target.
|
|
81
81
|
* const input = {
|
|
82
|
-
*
|
|
82
|
+
* assessmentTargetArn: "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq"
|
|
83
83
|
* };
|
|
84
84
|
* const command = new DeleteAssessmentTargetCommand(input);
|
|
85
|
-
* await client.send(command);
|
|
86
|
-
*
|
|
85
|
+
* const response = await client.send(command);
|
|
86
|
+
* /* response is
|
|
87
|
+
* { /* metadata only *\/ }
|
|
88
|
+
* *\/
|
|
87
89
|
* ```
|
|
88
90
|
*
|
|
91
|
+
* @public
|
|
89
92
|
*/
|
|
90
93
|
export declare class DeleteAssessmentTargetCommand extends DeleteAssessmentTargetCommand_base {
|
|
91
94
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -74,18 +74,21 @@ declare const DeleteAssessmentTemplateCommand_base: {
|
|
|
74
74
|
* @throws {@link InspectorServiceException}
|
|
75
75
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
76
76
|
*
|
|
77
|
-
*
|
|
77
|
+
*
|
|
78
78
|
* @example Delete assessment template
|
|
79
79
|
* ```javascript
|
|
80
80
|
* // Deletes the assessment template that is specified by the ARN of the assessment template.
|
|
81
81
|
* const input = {
|
|
82
|
-
*
|
|
82
|
+
* assessmentTemplateArn: "arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T"
|
|
83
83
|
* };
|
|
84
84
|
* const command = new DeleteAssessmentTemplateCommand(input);
|
|
85
|
-
* await client.send(command);
|
|
86
|
-
*
|
|
85
|
+
* const response = await client.send(command);
|
|
86
|
+
* /* response is
|
|
87
|
+
* { /* metadata only *\/ }
|
|
88
|
+
* *\/
|
|
87
89
|
* ```
|
|
88
90
|
*
|
|
91
|
+
* @public
|
|
89
92
|
*/
|
|
90
93
|
export declare class DeleteAssessmentTemplateCommand extends DeleteAssessmentTemplateCommand_base {
|
|
91
94
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -111,85 +111,8 @@ declare const DescribeAssessmentRunsCommand_base: {
|
|
|
111
111
|
* @throws {@link InspectorServiceException}
|
|
112
112
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
113
113
|
*
|
|
114
|
-
* @public
|
|
115
|
-
* @example Describte assessment runs
|
|
116
|
-
* ```javascript
|
|
117
|
-
* // Describes the assessment runs that are specified by the ARNs of the assessment runs.
|
|
118
|
-
* const input = {
|
|
119
|
-
* "assessmentRunArns": [
|
|
120
|
-
* "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE"
|
|
121
|
-
* ]
|
|
122
|
-
* };
|
|
123
|
-
* const command = new DescribeAssessmentRunsCommand(input);
|
|
124
|
-
* const response = await client.send(command);
|
|
125
|
-
* /* response ==
|
|
126
|
-
* {
|
|
127
|
-
* "assessmentRuns": [
|
|
128
|
-
* {
|
|
129
|
-
* "name": "Run 1 for ExampleAssessmentTemplate",
|
|
130
|
-
* "arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE",
|
|
131
|
-
* "assessmentTemplateArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw",
|
|
132
|
-
* "completedAt": "1458680301.4",
|
|
133
|
-
* "createdAt": "1458680170.035",
|
|
134
|
-
* "dataCollected": true,
|
|
135
|
-
* "durationInSeconds": 3600,
|
|
136
|
-
* "findingCounts": {
|
|
137
|
-
* "High": 14,
|
|
138
|
-
* "Informational": 0,
|
|
139
|
-
* "Low": 0,
|
|
140
|
-
* "Medium": 2,
|
|
141
|
-
* "Undefined": 0
|
|
142
|
-
* },
|
|
143
|
-
* "notifications": [],
|
|
144
|
-
* "rulesPackageArns": [
|
|
145
|
-
* "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-X1KXtawP"
|
|
146
|
-
* ],
|
|
147
|
-
* "startedAt": "1458680170.161",
|
|
148
|
-
* "state": "COMPLETED",
|
|
149
|
-
* "stateChangedAt": "1458680301.4",
|
|
150
|
-
* "stateChanges": [
|
|
151
|
-
* {
|
|
152
|
-
* "state": "CREATED",
|
|
153
|
-
* "stateChangedAt": "1458680170.035"
|
|
154
|
-
* },
|
|
155
|
-
* {
|
|
156
|
-
* "state": "START_DATA_COLLECTION_PENDING",
|
|
157
|
-
* "stateChangedAt": "1458680170.065"
|
|
158
|
-
* },
|
|
159
|
-
* {
|
|
160
|
-
* "state": "START_DATA_COLLECTION_IN_PROGRESS",
|
|
161
|
-
* "stateChangedAt": "1458680170.096"
|
|
162
|
-
* },
|
|
163
|
-
* {
|
|
164
|
-
* "state": "COLLECTING_DATA",
|
|
165
|
-
* "stateChangedAt": "1458680170.161"
|
|
166
|
-
* },
|
|
167
|
-
* {
|
|
168
|
-
* "state": "STOP_DATA_COLLECTION_PENDING",
|
|
169
|
-
* "stateChangedAt": "1458680239.883"
|
|
170
|
-
* },
|
|
171
|
-
* {
|
|
172
|
-
* "state": "DATA_COLLECTED",
|
|
173
|
-
* "stateChangedAt": "1458680299.847"
|
|
174
|
-
* },
|
|
175
|
-
* {
|
|
176
|
-
* "state": "EVALUATING_RULES",
|
|
177
|
-
* "stateChangedAt": "1458680300.099"
|
|
178
|
-
* },
|
|
179
|
-
* {
|
|
180
|
-
* "state": "COMPLETED",
|
|
181
|
-
* "stateChangedAt": "1458680301.4"
|
|
182
|
-
* }
|
|
183
|
-
* ],
|
|
184
|
-
* "userAttributesForFindings": []
|
|
185
|
-
* }
|
|
186
|
-
* ],
|
|
187
|
-
* "failedItems": {}
|
|
188
|
-
* }
|
|
189
|
-
* *\/
|
|
190
|
-
* // example id: describte-assessment-runs-1481064424352
|
|
191
|
-
* ```
|
|
192
114
|
*
|
|
115
|
+
* @public
|
|
193
116
|
*/
|
|
194
117
|
export declare class DescribeAssessmentRunsCommand extends DescribeAssessmentRunsCommand_base {
|
|
195
118
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -78,34 +78,8 @@ declare const DescribeAssessmentTargetsCommand_base: {
|
|
|
78
78
|
* @throws {@link InspectorServiceException}
|
|
79
79
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
80
80
|
*
|
|
81
|
-
* @public
|
|
82
|
-
* @example Describte assessment targets
|
|
83
|
-
* ```javascript
|
|
84
|
-
* // Describes the assessment targets that are specified by the ARNs of the assessment targets.
|
|
85
|
-
* const input = {
|
|
86
|
-
* "assessmentTargetArns": [
|
|
87
|
-
* "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq"
|
|
88
|
-
* ]
|
|
89
|
-
* };
|
|
90
|
-
* const command = new DescribeAssessmentTargetsCommand(input);
|
|
91
|
-
* const response = await client.send(command);
|
|
92
|
-
* /* response ==
|
|
93
|
-
* {
|
|
94
|
-
* "assessmentTargets": [
|
|
95
|
-
* {
|
|
96
|
-
* "name": "ExampleAssessmentTarget",
|
|
97
|
-
* "arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq",
|
|
98
|
-
* "createdAt": "1458074191.459",
|
|
99
|
-
* "resourceGroupArn": "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-PyGXopAI",
|
|
100
|
-
* "updatedAt": "1458074191.459"
|
|
101
|
-
* }
|
|
102
|
-
* ],
|
|
103
|
-
* "failedItems": {}
|
|
104
|
-
* }
|
|
105
|
-
* *\/
|
|
106
|
-
* // example id: describte-assessment-targets-1481064527735
|
|
107
|
-
* ```
|
|
108
81
|
*
|
|
82
|
+
* @public
|
|
109
83
|
*/
|
|
110
84
|
export declare class DescribeAssessmentTargetsCommand extends DescribeAssessmentTargetsCommand_base {
|
|
111
85
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -89,39 +89,8 @@ declare const DescribeAssessmentTemplatesCommand_base: {
|
|
|
89
89
|
* @throws {@link InspectorServiceException}
|
|
90
90
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
91
91
|
*
|
|
92
|
-
* @public
|
|
93
|
-
* @example Describte assessment templates
|
|
94
|
-
* ```javascript
|
|
95
|
-
* // Describes the assessment templates that are specified by the ARNs of the assessment templates.
|
|
96
|
-
* const input = {
|
|
97
|
-
* "assessmentTemplateArns": [
|
|
98
|
-
* "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw"
|
|
99
|
-
* ]
|
|
100
|
-
* };
|
|
101
|
-
* const command = new DescribeAssessmentTemplatesCommand(input);
|
|
102
|
-
* const response = await client.send(command);
|
|
103
|
-
* /* response ==
|
|
104
|
-
* {
|
|
105
|
-
* "assessmentTemplates": [
|
|
106
|
-
* {
|
|
107
|
-
* "name": "ExampleAssessmentTemplate",
|
|
108
|
-
* "arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw",
|
|
109
|
-
* "assessmentRunCount": 0,
|
|
110
|
-
* "assessmentTargetArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq",
|
|
111
|
-
* "createdAt": "1458074191.844",
|
|
112
|
-
* "durationInSeconds": 3600,
|
|
113
|
-
* "rulesPackageArns": [
|
|
114
|
-
* "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-X1KXtawP"
|
|
115
|
-
* ],
|
|
116
|
-
* "userAttributesForFindings": []
|
|
117
|
-
* }
|
|
118
|
-
* ],
|
|
119
|
-
* "failedItems": {}
|
|
120
|
-
* }
|
|
121
|
-
* *\/
|
|
122
|
-
* // example id: describte-assessment-templates-1481064606829
|
|
123
|
-
* ```
|
|
124
92
|
*
|
|
93
|
+
* @public
|
|
125
94
|
*/
|
|
126
95
|
export declare class DescribeAssessmentTemplatesCommand extends DescribeAssessmentTemplatesCommand_base {
|
|
127
96
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -58,23 +58,8 @@ declare const DescribeCrossAccountAccessRoleCommand_base: {
|
|
|
58
58
|
* @throws {@link InspectorServiceException}
|
|
59
59
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
60
60
|
*
|
|
61
|
-
* @public
|
|
62
|
-
* @example Describte cross account access role
|
|
63
|
-
* ```javascript
|
|
64
|
-
* // Describes the IAM role that enables Amazon Inspector to access your AWS account.
|
|
65
|
-
* const input = {};
|
|
66
|
-
* const command = new DescribeCrossAccountAccessRoleCommand(input);
|
|
67
|
-
* const response = await client.send(command);
|
|
68
|
-
* /* response ==
|
|
69
|
-
* {
|
|
70
|
-
* "registeredAt": "1458069182.826",
|
|
71
|
-
* "roleArn": "arn:aws:iam::123456789012:role/inspector",
|
|
72
|
-
* "valid": true
|
|
73
|
-
* }
|
|
74
|
-
* *\/
|
|
75
|
-
* // example id: describte-cross-account-access-role-1481064682267
|
|
76
|
-
* ```
|
|
77
61
|
*
|
|
62
|
+
* @public
|
|
78
63
|
*/
|
|
79
64
|
export declare class DescribeCrossAccountAccessRoleCommand extends DescribeCrossAccountAccessRoleCommand_base {
|
|
80
65
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -89,6 +89,7 @@ declare const DescribeExclusionsCommand_base: {
|
|
|
89
89
|
* @throws {@link InspectorServiceException}
|
|
90
90
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
91
91
|
*
|
|
92
|
+
*
|
|
92
93
|
* @public
|
|
93
94
|
*/
|
|
94
95
|
export declare class DescribeExclusionsCommand extends DescribeExclusionsCommand_base {
|
|
@@ -146,53 +146,8 @@ declare const DescribeFindingsCommand_base: {
|
|
|
146
146
|
* @throws {@link InspectorServiceException}
|
|
147
147
|
* <p>Base exception class for all service exceptions from Inspector service.</p>
|
|
148
148
|
*
|
|
149
|
-
* @public
|
|
150
|
-
* @example Describe findings
|
|
151
|
-
* ```javascript
|
|
152
|
-
* // Describes the findings that are specified by the ARNs of the findings.
|
|
153
|
-
* const input = {
|
|
154
|
-
* "findingArns": [
|
|
155
|
-
* "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE/finding/0-HwPnsDm4"
|
|
156
|
-
* ]
|
|
157
|
-
* };
|
|
158
|
-
* const command = new DescribeFindingsCommand(input);
|
|
159
|
-
* const response = await client.send(command);
|
|
160
|
-
* /* response ==
|
|
161
|
-
* {
|
|
162
|
-
* "failedItems": {},
|
|
163
|
-
* "findings": [
|
|
164
|
-
* {
|
|
165
|
-
* "arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE/finding/0-HwPnsDm4",
|
|
166
|
-
* "assetAttributes": {
|
|
167
|
-
* "ipv4Addresses": [],
|
|
168
|
-
* "schemaVersion": 1
|
|
169
|
-
* },
|
|
170
|
-
* "assetType": "ec2-instance",
|
|
171
|
-
* "attributes": [],
|
|
172
|
-
* "confidence": 10,
|
|
173
|
-
* "createdAt": "1458680301.37",
|
|
174
|
-
* "description": "Amazon Inspector did not find any potential security issues during this assessment.",
|
|
175
|
-
* "indicatorOfCompromise": false,
|
|
176
|
-
* "numericSeverity": 0,
|
|
177
|
-
* "recommendation": "No remediation needed.",
|
|
178
|
-
* "schemaVersion": 1,
|
|
179
|
-
* "service": "Inspector",
|
|
180
|
-
* "serviceAttributes": {
|
|
181
|
-
* "assessmentRunArn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE",
|
|
182
|
-
* "rulesPackageArn": "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-X1KXtawP",
|
|
183
|
-
* "schemaVersion": 1
|
|
184
|
-
* },
|
|
185
|
-
* "severity": "Informational",
|
|
186
|
-
* "title": "No potential security issues found",
|
|
187
|
-
* "updatedAt": "1458680301.37",
|
|
188
|
-
* "userAttributes": []
|
|
189
|
-
* }
|
|
190
|
-
* ]
|
|
191
|
-
* }
|
|
192
|
-
* *\/
|
|
193
|
-
* // example id: describte-findings-1481064771803
|
|
194
|
-
* ```
|
|
195
149
|
*
|
|
150
|
+
* @public
|
|
196
151
|
*/
|
|
197
152
|
export declare class DescribeFindingsCommand extends DescribeFindingsCommand_base {
|
|
198
153
|
/** @internal type navigation helper, not in runtime. */
|