@aws-sdk/client-securityhub 3.1080.0 → 3.1081.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 +49 -0
- package/dist-cjs/index.js +459 -51
- package/dist-es/SecurityHub.js +14 -0
- package/dist-es/commands/CreateConnectorCommand.js +4 -0
- package/dist-es/commands/DeleteConnectorCommand.js +4 -0
- package/dist-es/commands/DisableSecurityHubFeatureV2Command.js +4 -0
- package/dist-es/commands/EnableSecurityHubFeatureV2Command.js +4 -0
- package/dist-es/commands/GetConnectorCommand.js +4 -0
- package/dist-es/commands/ListConnectorsCommand.js +4 -0
- package/dist-es/commands/UpdateConnectorCommand.js +4 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/enums.js +96 -0
- package/dist-es/schemas/schemas_0.js +284 -50
- package/dist-types/SecurityHub.d.ts +50 -0
- package/dist-types/SecurityHubClient.d.ts +9 -2
- package/dist-types/commands/BatchDisableStandardsCommand.d.ts +2 -1
- package/dist-types/commands/BatchEnableStandardsCommand.d.ts +2 -1
- package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +3 -0
- package/dist-types/commands/BatchGetSecurityControlsCommand.d.ts +1 -0
- package/dist-types/commands/BatchImportFindingsCommand.d.ts +11 -1
- package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +3 -0
- package/dist-types/commands/CreateAutomationRuleCommand.d.ts +3 -0
- package/dist-types/commands/CreateAutomationRuleV2Command.d.ts +2 -2
- package/dist-types/commands/CreateConnectorCommand.d.ts +151 -0
- package/dist-types/commands/CreateConnectorV2Command.d.ts +14 -1
- package/dist-types/commands/CreateInsightCommand.d.ts +3 -0
- package/dist-types/commands/DeleteConnectorCommand.d.ts +111 -0
- package/dist-types/commands/DeleteConnectorV2Command.d.ts +4 -2
- package/dist-types/commands/DescribeSecurityHubV2Command.d.ts +6 -0
- package/dist-types/commands/DescribeStandardsCommand.d.ts +4 -0
- package/dist-types/commands/DisableSecurityHubFeatureV2Command.d.ts +88 -0
- package/dist-types/commands/DisableSecurityHubV2Command.d.ts +1 -1
- package/dist-types/commands/EnableSecurityHubFeatureV2Command.d.ts +88 -0
- package/dist-types/commands/GetAutomationRuleV2Command.d.ts +2 -2
- package/dist-types/commands/GetConnectorCommand.d.ts +165 -0
- package/dist-types/commands/GetConnectorV2Command.d.ts +21 -1
- package/dist-types/commands/GetEnabledStandardsCommand.d.ts +5 -1
- package/dist-types/commands/GetFindingStatisticsV2Command.d.ts +3 -3
- package/dist-types/commands/GetFindingsCommand.d.ts +14 -1
- package/dist-types/commands/GetFindingsTrendsV2Command.d.ts +2 -2
- package/dist-types/commands/GetFindingsV2Command.d.ts +2 -2
- package/dist-types/commands/GetInsightsCommand.d.ts +3 -0
- package/dist-types/commands/GetResourcesStatisticsV2Command.d.ts +3 -3
- package/dist-types/commands/GetResourcesTrendsV2Command.d.ts +2 -2
- package/dist-types/commands/GetResourcesV2Command.d.ts +10 -4
- package/dist-types/commands/GetSecurityControlDefinitionCommand.d.ts +2 -1
- package/dist-types/commands/InviteMembersCommand.d.ts +1 -1
- package/dist-types/commands/ListAggregatorsV2Command.d.ts +1 -1
- package/dist-types/commands/ListAutomationRulesCommand.d.ts +1 -1
- package/dist-types/commands/ListAutomationRulesV2Command.d.ts +1 -1
- package/dist-types/commands/ListConfigurationPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListConfigurationPolicyAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/ListConnectorsCommand.d.ts +155 -0
- package/dist-types/commands/ListConnectorsV2Command.d.ts +34 -5
- package/dist-types/commands/ListEnabledProductsForImportCommand.d.ts +1 -1
- package/dist-types/commands/ListFindingAggregatorsCommand.d.ts +1 -1
- package/dist-types/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +4 -0
- package/dist-types/commands/UpdateAutomationRuleV2Command.d.ts +2 -2
- package/dist-types/commands/UpdateConnectorCommand.d.ts +144 -0
- package/dist-types/commands/UpdateConnectorV2Command.d.ts +16 -2
- package/dist-types/commands/UpdateFindingsCommand.d.ts +3 -0
- package/dist-types/commands/UpdateInsightCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/enums.d.ts +184 -0
- package/dist-types/models/models_0.d.ts +15 -0
- package/dist-types/models/models_2.d.ts +889 -635
- package/dist-types/models/models_3.d.ts +625 -4
- package/dist-types/schemas/schemas_0.d.ts +36 -0
- package/dist-types/ts3.4/SecurityHub.d.ts +120 -0
- package/dist-types/ts3.4/SecurityHubClient.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateConnectorCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/DeleteConnectorCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/DeleteConnectorV2Command.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisableSecurityHubFeatureV2Command.d.ts +44 -0
- package/dist-types/ts3.4/commands/EnableSecurityHubFeatureV2Command.d.ts +44 -0
- package/dist-types/ts3.4/commands/GetConnectorCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetSecurityControlDefinitionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/InviteMembersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAggregatorsV2Command.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAutomationRulesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAutomationRulesV2Command.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListConfigurationPoliciesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListConfigurationPolicyAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListConnectorsCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/ListConnectorsV2Command.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListEnabledProductsForImportCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListFindingAggregatorsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateConnectorCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/UpdateConnectorV2Command.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/enums.d.ts +115 -0
- package/dist-types/ts3.4/models/models_0.d.ts +3 -0
- package/dist-types/ts3.4/models/models_2.d.ts +250 -152
- package/dist-types/ts3.4/models/models_3.d.ts +173 -4
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +36 -0
- package/package.json +3 -3
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { DeleteConnectorRequest, DeleteConnectorResponse } from "../models/models_2";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link DeleteConnectorCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface DeleteConnectorCommandInput extends DeleteConnectorRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link DeleteConnectorCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface DeleteConnectorCommandOutput extends DeleteConnectorResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const DeleteConnectorCommand_base: {
|
|
22
|
+
new (input: DeleteConnectorCommandInput): import("@smithy/core/client").CommandImpl<DeleteConnectorCommandInput, DeleteConnectorCommandOutput, import("..").SecurityHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: DeleteConnectorCommandInput): import("@smithy/core/client").CommandImpl<DeleteConnectorCommandInput, DeleteConnectorCommandOutput, import("..").SecurityHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Deletes a CSPM connector. When you delete a connector, Security Hub CSPM stops ingesting findings and resource data from the connected cloud provider environment.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SecurityHubClient, DeleteConnectorCommand } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
32
|
+
* // const { SecurityHubClient, DeleteConnectorCommand } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
33
|
+
* // import type { SecurityHubClientConfig } from "@aws-sdk/client-securityhub";
|
|
34
|
+
* const config = {}; // type is SecurityHubClientConfig
|
|
35
|
+
* const client = new SecurityHubClient(config);
|
|
36
|
+
* const input = { // DeleteConnectorRequest
|
|
37
|
+
* ConnectorId: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new DeleteConnectorCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // DeleteConnectorResponse
|
|
42
|
+
* // EnablementStatus: "ENABLED" || "PENDING_ENABLEMENT" || "PENDING_UPDATE" || "PENDING_DELETION",
|
|
43
|
+
* // };
|
|
44
|
+
*
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @param DeleteConnectorCommandInput - {@link DeleteConnectorCommandInput}
|
|
48
|
+
* @returns {@link DeleteConnectorCommandOutput}
|
|
49
|
+
* @see {@link DeleteConnectorCommandInput} for command's `input` shape.
|
|
50
|
+
* @see {@link DeleteConnectorCommandOutput} for command's `response` shape.
|
|
51
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
54
|
+
* <p>You don't have permission to perform the action specified in the request.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ConflictException} (client fault)
|
|
57
|
+
* <p>The request causes conflict with the current state of the service resource.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link InternalServerException} (server fault)
|
|
60
|
+
* <p>
|
|
61
|
+
* The request has failed due to an internal failure of the service.
|
|
62
|
+
* </p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InvalidAccessException} (client fault)
|
|
65
|
+
* <p>The account doesn't have permission to perform this action.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
68
|
+
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
71
|
+
* <p>
|
|
72
|
+
* The limit on the number of requests per second was exceeded.
|
|
73
|
+
* </p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ValidationException} (client fault)
|
|
76
|
+
* <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link SecurityHubServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
80
|
+
*
|
|
81
|
+
*
|
|
82
|
+
* @example To delete a CSPM connector
|
|
83
|
+
* ```javascript
|
|
84
|
+
* // This operation deletes a CSPM connector.
|
|
85
|
+
* const input = {
|
|
86
|
+
* ConnectorId: "cspm-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
|
|
87
|
+
* };
|
|
88
|
+
* const command = new DeleteConnectorCommand(input);
|
|
89
|
+
* const response = await client.send(command);
|
|
90
|
+
* /* response is
|
|
91
|
+
* {
|
|
92
|
+
* EnablementStatus: "PENDING_DELETION"
|
|
93
|
+
* }
|
|
94
|
+
* *\/
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
export declare class DeleteConnectorCommand extends DeleteConnectorCommand_base {
|
|
100
|
+
/** @internal type navigation helper, not in runtime. */
|
|
101
|
+
protected static __types: {
|
|
102
|
+
api: {
|
|
103
|
+
input: DeleteConnectorRequest;
|
|
104
|
+
output: DeleteConnectorResponse;
|
|
105
|
+
};
|
|
106
|
+
sdk: {
|
|
107
|
+
input: DeleteConnectorCommandInput;
|
|
108
|
+
output: DeleteConnectorCommandOutput;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}
|
|
@@ -38,7 +38,9 @@ declare const DeleteConnectorV2Command_base: {
|
|
|
38
38
|
* };
|
|
39
39
|
* const command = new DeleteConnectorV2Command(input);
|
|
40
40
|
* const response = await client.send(command);
|
|
41
|
-
* // {
|
|
41
|
+
* // { // DeleteConnectorV2Response
|
|
42
|
+
* // EnablementStatus: "ENABLED" || "PENDING_ENABLEMENT" || "FAILED_TO_ENABLE" || "PENDING_UPDATE" || "FAILED_TO_UPDATE" || "PENDING_DELETION" || "FAILED_TO_DELETE",
|
|
43
|
+
* // };
|
|
42
44
|
*
|
|
43
45
|
* ```
|
|
44
46
|
*
|
|
@@ -81,7 +83,7 @@ export declare class DeleteConnectorV2Command extends DeleteConnectorV2Command_b
|
|
|
81
83
|
protected static __types: {
|
|
82
84
|
api: {
|
|
83
85
|
input: DeleteConnectorV2Request;
|
|
84
|
-
output:
|
|
86
|
+
output: DeleteConnectorV2Response;
|
|
85
87
|
};
|
|
86
88
|
sdk: {
|
|
87
89
|
input: DeleteConnectorV2CommandInput;
|
|
@@ -39,6 +39,12 @@ declare const DescribeSecurityHubV2Command_base: {
|
|
|
39
39
|
* // { // DescribeSecurityHubV2Response
|
|
40
40
|
* // HubV2Arn: "STRING_VALUE",
|
|
41
41
|
* // SubscribedAt: "STRING_VALUE",
|
|
42
|
+
* // Features: { // Features
|
|
43
|
+
* // "<keys>": { // FeatureDetail
|
|
44
|
+
* // FeatureStatus: "ENABLED" || "DISABLED",
|
|
45
|
+
* // UpdatedAt: new Date("TIMESTAMP"),
|
|
46
|
+
* // },
|
|
47
|
+
* // },
|
|
42
48
|
* // };
|
|
43
49
|
*
|
|
44
50
|
* ```
|
|
@@ -37,6 +37,9 @@ declare const DescribeStandardsCommand_base: {
|
|
|
37
37
|
* const input = { // DescribeStandardsRequest
|
|
38
38
|
* NextToken: "STRING_VALUE",
|
|
39
39
|
* MaxResults: Number("int"),
|
|
40
|
+
* Providers: [ // StandardsProviders
|
|
41
|
+
* "AWS" || "Azure",
|
|
42
|
+
* ],
|
|
40
43
|
* };
|
|
41
44
|
* const command = new DescribeStandardsCommand(input);
|
|
42
45
|
* const response = await client.send(command);
|
|
@@ -47,6 +50,7 @@ declare const DescribeStandardsCommand_base: {
|
|
|
47
50
|
* // Name: "STRING_VALUE",
|
|
48
51
|
* // Description: "STRING_VALUE",
|
|
49
52
|
* // EnabledByDefault: true || false,
|
|
53
|
+
* // Provider: "AWS" || "Azure",
|
|
50
54
|
* // StandardsManagedBy: { // StandardsManagedBy
|
|
51
55
|
* // Company: "STRING_VALUE",
|
|
52
56
|
* // Product: "STRING_VALUE",
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { DisableSecurityHubFeatureV2Request, DisableSecurityHubFeatureV2Response } from "../models/models_2";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link DisableSecurityHubFeatureV2Command}.
|
|
11
|
+
*/
|
|
12
|
+
export interface DisableSecurityHubFeatureV2CommandInput extends DisableSecurityHubFeatureV2Request {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link DisableSecurityHubFeatureV2Command}.
|
|
18
|
+
*/
|
|
19
|
+
export interface DisableSecurityHubFeatureV2CommandOutput extends DisableSecurityHubFeatureV2Response, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const DisableSecurityHubFeatureV2Command_base: {
|
|
22
|
+
new (input: DisableSecurityHubFeatureV2CommandInput): import("@smithy/core/client").CommandImpl<DisableSecurityHubFeatureV2CommandInput, DisableSecurityHubFeatureV2CommandOutput, import("..").SecurityHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: DisableSecurityHubFeatureV2CommandInput): import("@smithy/core/client").CommandImpl<DisableSecurityHubFeatureV2CommandInput, DisableSecurityHubFeatureV2CommandOutput, import("..").SecurityHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Disables an opt-in feature for the calling account in the current Amazon Web Services Region. The operation is idempotent. If the feature is already disabled, no changes are made. You cannot disable a feature that is managed by an organization policy.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SecurityHubClient, DisableSecurityHubFeatureV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
32
|
+
* // const { SecurityHubClient, DisableSecurityHubFeatureV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
33
|
+
* // import type { SecurityHubClientConfig } from "@aws-sdk/client-securityhub";
|
|
34
|
+
* const config = {}; // type is SecurityHubClientConfig
|
|
35
|
+
* const client = new SecurityHubClient(config);
|
|
36
|
+
* const input = { // DisableSecurityHubFeatureV2Request
|
|
37
|
+
* FeatureName: "NETWORK_SCANNING", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new DisableSecurityHubFeatureV2Command(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param DisableSecurityHubFeatureV2CommandInput - {@link DisableSecurityHubFeatureV2CommandInput}
|
|
46
|
+
* @returns {@link DisableSecurityHubFeatureV2CommandOutput}
|
|
47
|
+
* @see {@link DisableSecurityHubFeatureV2CommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link DisableSecurityHubFeatureV2CommandOutput} for command's `response` shape.
|
|
49
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
52
|
+
* <p>You don't have permission to perform the action specified in the request.</p>
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link InternalServerException} (server fault)
|
|
55
|
+
* <p>
|
|
56
|
+
* The request has failed due to an internal failure of the service.
|
|
57
|
+
* </p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
60
|
+
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
63
|
+
* <p>
|
|
64
|
+
* The limit on the number of requests per second was exceeded.
|
|
65
|
+
* </p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ValidationException} (client fault)
|
|
68
|
+
* <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link SecurityHubServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export declare class DisableSecurityHubFeatureV2Command extends DisableSecurityHubFeatureV2Command_base {
|
|
77
|
+
/** @internal type navigation helper, not in runtime. */
|
|
78
|
+
protected static __types: {
|
|
79
|
+
api: {
|
|
80
|
+
input: DisableSecurityHubFeatureV2Request;
|
|
81
|
+
output: {};
|
|
82
|
+
};
|
|
83
|
+
sdk: {
|
|
84
|
+
input: DisableSecurityHubFeatureV2CommandInput;
|
|
85
|
+
output: DisableSecurityHubFeatureV2CommandOutput;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -24,7 +24,7 @@ declare const DisableSecurityHubV2Command_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>Disable the service for the current Amazon Web Services Region or specified Amazon Web Services Region.</p>
|
|
27
|
+
* <p>Disable the service for the current Amazon Web Services Region or specified Amazon Web Services Region. Disabling the service also disables all opt-in features that are currently enabled in that Region.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { EnableSecurityHubFeatureV2Request, EnableSecurityHubFeatureV2Response } from "../models/models_2";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link EnableSecurityHubFeatureV2Command}.
|
|
11
|
+
*/
|
|
12
|
+
export interface EnableSecurityHubFeatureV2CommandInput extends EnableSecurityHubFeatureV2Request {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link EnableSecurityHubFeatureV2Command}.
|
|
18
|
+
*/
|
|
19
|
+
export interface EnableSecurityHubFeatureV2CommandOutput extends EnableSecurityHubFeatureV2Response, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const EnableSecurityHubFeatureV2Command_base: {
|
|
22
|
+
new (input: EnableSecurityHubFeatureV2CommandInput): import("@smithy/core/client").CommandImpl<EnableSecurityHubFeatureV2CommandInput, EnableSecurityHubFeatureV2CommandOutput, import("..").SecurityHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: EnableSecurityHubFeatureV2CommandInput): import("@smithy/core/client").CommandImpl<EnableSecurityHubFeatureV2CommandInput, EnableSecurityHubFeatureV2CommandOutput, import("..").SecurityHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Enables an opt-in feature for the calling account in the current Amazon Web Services Region. The service must be enabled before you can enable a feature. The operation is idempotent. If the feature is already enabled, no changes are made. You cannot enable a feature that is managed by an organization policy.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SecurityHubClient, EnableSecurityHubFeatureV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
32
|
+
* // const { SecurityHubClient, EnableSecurityHubFeatureV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
33
|
+
* // import type { SecurityHubClientConfig } from "@aws-sdk/client-securityhub";
|
|
34
|
+
* const config = {}; // type is SecurityHubClientConfig
|
|
35
|
+
* const client = new SecurityHubClient(config);
|
|
36
|
+
* const input = { // EnableSecurityHubFeatureV2Request
|
|
37
|
+
* FeatureName: "NETWORK_SCANNING", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new EnableSecurityHubFeatureV2Command(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // {};
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param EnableSecurityHubFeatureV2CommandInput - {@link EnableSecurityHubFeatureV2CommandInput}
|
|
46
|
+
* @returns {@link EnableSecurityHubFeatureV2CommandOutput}
|
|
47
|
+
* @see {@link EnableSecurityHubFeatureV2CommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link EnableSecurityHubFeatureV2CommandOutput} for command's `response` shape.
|
|
49
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
52
|
+
* <p>You don't have permission to perform the action specified in the request.</p>
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link InternalServerException} (server fault)
|
|
55
|
+
* <p>
|
|
56
|
+
* The request has failed due to an internal failure of the service.
|
|
57
|
+
* </p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
60
|
+
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
63
|
+
* <p>
|
|
64
|
+
* The limit on the number of requests per second was exceeded.
|
|
65
|
+
* </p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ValidationException} (client fault)
|
|
68
|
+
* <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link SecurityHubServiceException}
|
|
71
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export declare class EnableSecurityHubFeatureV2Command extends EnableSecurityHubFeatureV2Command_base {
|
|
77
|
+
/** @internal type navigation helper, not in runtime. */
|
|
78
|
+
protected static __types: {
|
|
79
|
+
api: {
|
|
80
|
+
input: EnableSecurityHubFeatureV2Request;
|
|
81
|
+
output: {};
|
|
82
|
+
};
|
|
83
|
+
sdk: {
|
|
84
|
+
input: EnableSecurityHubFeatureV2CommandInput;
|
|
85
|
+
output: EnableSecurityHubFeatureV2CommandOutput;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -52,7 +52,7 @@ declare const GetAutomationRuleV2Command_base: {
|
|
|
52
52
|
* // { // CompositeFilter
|
|
53
53
|
* // StringFilters: [ // OcsfStringFilterList
|
|
54
54
|
* // { // OcsfStringFilter
|
|
55
|
-
* // FieldName: "metadata.uid" || "activity_name" || "cloud.account.uid" || "cloud.provider" || "cloud.region" || "compliance.assessments.category" || "compliance.assessments.name" || "compliance.control" || "compliance.status" || "compliance.standards" || "finding_info.desc" || "finding_info.src_url" || "finding_info.title" || "finding_info.types" || "finding_info.uid" || "finding_info.related_events.traits.category" || "finding_info.related_events.uid" || "finding_info.related_events.product.uid" || "finding_info.related_events.title" || "metadata.product.name" || "metadata.product.uid" || "metadata.product.vendor_name" || "remediation.desc" || "remediation.references" || "resources.cloud_partition" || "resources.region" || "resources.type" || "resources.uid" || "severity" || "status" || "comment" || "vulnerabilities.fix_coverage" || "class_name" || "databucket.encryption_details.algorithm" || "databucket.encryption_details.key_uid" || "databucket.file.data_classifications.classifier_details.type" || "evidences.actor.user.account.uid" || "evidences.api.operation" || "evidences.api.response.error_message" || "evidences.api.service.name" || "evidences.connection_info.direction" || "evidences.connection_info.protocol_name" || "evidences.dst_endpoint.autonomous_system.name" || "evidences.dst_endpoint.location.city" || "evidences.dst_endpoint.location.country" || "evidences.src_endpoint.autonomous_system.name" || "evidences.src_endpoint.hostname" || "evidences.src_endpoint.location.city" || "evidences.src_endpoint.location.country" || "finding_info.analytic.name" || "malware.name" || "malware_scan_info.uid" || "malware.severity" || "resources.cloud_function.layers.uid_alt" || "resources.cloud_function.runtime" || "resources.cloud_function.user.uid" || "resources.device.encryption_details.key_uid" || "resources.device.image.uid" || "resources.image.architecture" || "resources.image.registry_uid" || "resources.image.repository_name" || "resources.image.uid" || "resources.subnet_info.uid" || "resources.vpc_uid" || "vulnerabilities.affected_code.file.path" || "vulnerabilities.affected_packages.name" || "vulnerabilities.cve.epss.score" || "vulnerabilities.cve.uid" || "vulnerabilities.related_vulnerabilities" || "cloud.account.name" || "vendor_attributes.severity",
|
|
55
|
+
* // FieldName: "metadata.uid" || "activity_name" || "cloud.account.uid" || "cloud.provider" || "cloud.region" || "compliance.assessments.category" || "compliance.assessments.name" || "compliance.control" || "compliance.status" || "compliance.standards" || "finding_info.desc" || "finding_info.src_url" || "finding_info.title" || "finding_info.types" || "finding_info.uid" || "finding_info.related_events.traits.category" || "finding_info.related_events.uid" || "finding_info.related_events.product.uid" || "finding_info.related_events.title" || "metadata.product.name" || "metadata.product.uid" || "metadata.product.vendor_name" || "remediation.desc" || "remediation.references" || "resources.cloud_partition" || "resources.name" || "resources.owner.account.uid" || "resources.owner.org.uid" || "resources.owner.account.name" || "resources.provider" || "resources.region" || "resources.type" || "resources.uid" || "severity" || "status" || "comment" || "vulnerabilities.fix_coverage" || "class_name" || "databucket.encryption_details.algorithm" || "databucket.encryption_details.key_uid" || "databucket.file.data_classifications.classifier_details.type" || "evidences.actor.user.account.uid" || "evidences.api.operation" || "evidences.api.response.error_message" || "evidences.api.service.name" || "evidences.connection_info.direction" || "evidences.connection_info.protocol_name" || "evidences.dst_endpoint.autonomous_system.name" || "evidences.dst_endpoint.location.city" || "evidences.dst_endpoint.location.country" || "evidences.src_endpoint.autonomous_system.name" || "evidences.src_endpoint.hostname" || "evidences.src_endpoint.location.city" || "evidences.src_endpoint.location.country" || "finding_info.analytic.name" || "malware.name" || "malware_scan_info.uid" || "malware.severity" || "resources.cloud_function.layers.uid_alt" || "resources.cloud_function.runtime" || "resources.cloud_function.user.uid" || "resources.device.encryption_details.key_uid" || "resources.device.image.uid" || "resources.image.architecture" || "resources.image.registry_uid" || "resources.image.repository_name" || "resources.image.uid" || "resources.subnet_info.uid" || "resources.vpc_uid" || "vulnerabilities.affected_code.file.path" || "vulnerabilities.affected_packages.name" || "vulnerabilities.cve.epss.score" || "vulnerabilities.cve.uid" || "vulnerabilities.related_vulnerabilities" || "cloud.account.name" || "vendor_attributes.severity",
|
|
56
56
|
* // Filter: { // StringFilter
|
|
57
57
|
* // Value: "STRING_VALUE",
|
|
58
58
|
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
@@ -115,7 +115,7 @@ declare const GetAutomationRuleV2Command_base: {
|
|
|
115
115
|
* // {
|
|
116
116
|
* // StringFilters: [
|
|
117
117
|
* // {
|
|
118
|
-
* // FieldName: "metadata.uid" || "activity_name" || "cloud.account.uid" || "cloud.provider" || "cloud.region" || "compliance.assessments.category" || "compliance.assessments.name" || "compliance.control" || "compliance.status" || "compliance.standards" || "finding_info.desc" || "finding_info.src_url" || "finding_info.title" || "finding_info.types" || "finding_info.uid" || "finding_info.related_events.traits.category" || "finding_info.related_events.uid" || "finding_info.related_events.product.uid" || "finding_info.related_events.title" || "metadata.product.name" || "metadata.product.uid" || "metadata.product.vendor_name" || "remediation.desc" || "remediation.references" || "resources.cloud_partition" || "resources.region" || "resources.type" || "resources.uid" || "severity" || "status" || "comment" || "vulnerabilities.fix_coverage" || "class_name" || "databucket.encryption_details.algorithm" || "databucket.encryption_details.key_uid" || "databucket.file.data_classifications.classifier_details.type" || "evidences.actor.user.account.uid" || "evidences.api.operation" || "evidences.api.response.error_message" || "evidences.api.service.name" || "evidences.connection_info.direction" || "evidences.connection_info.protocol_name" || "evidences.dst_endpoint.autonomous_system.name" || "evidences.dst_endpoint.location.city" || "evidences.dst_endpoint.location.country" || "evidences.src_endpoint.autonomous_system.name" || "evidences.src_endpoint.hostname" || "evidences.src_endpoint.location.city" || "evidences.src_endpoint.location.country" || "finding_info.analytic.name" || "malware.name" || "malware_scan_info.uid" || "malware.severity" || "resources.cloud_function.layers.uid_alt" || "resources.cloud_function.runtime" || "resources.cloud_function.user.uid" || "resources.device.encryption_details.key_uid" || "resources.device.image.uid" || "resources.image.architecture" || "resources.image.registry_uid" || "resources.image.repository_name" || "resources.image.uid" || "resources.subnet_info.uid" || "resources.vpc_uid" || "vulnerabilities.affected_code.file.path" || "vulnerabilities.affected_packages.name" || "vulnerabilities.cve.epss.score" || "vulnerabilities.cve.uid" || "vulnerabilities.related_vulnerabilities" || "cloud.account.name" || "vendor_attributes.severity",
|
|
118
|
+
* // FieldName: "metadata.uid" || "activity_name" || "cloud.account.uid" || "cloud.provider" || "cloud.region" || "compliance.assessments.category" || "compliance.assessments.name" || "compliance.control" || "compliance.status" || "compliance.standards" || "finding_info.desc" || "finding_info.src_url" || "finding_info.title" || "finding_info.types" || "finding_info.uid" || "finding_info.related_events.traits.category" || "finding_info.related_events.uid" || "finding_info.related_events.product.uid" || "finding_info.related_events.title" || "metadata.product.name" || "metadata.product.uid" || "metadata.product.vendor_name" || "remediation.desc" || "remediation.references" || "resources.cloud_partition" || "resources.name" || "resources.owner.account.uid" || "resources.owner.org.uid" || "resources.owner.account.name" || "resources.provider" || "resources.region" || "resources.type" || "resources.uid" || "severity" || "status" || "comment" || "vulnerabilities.fix_coverage" || "class_name" || "databucket.encryption_details.algorithm" || "databucket.encryption_details.key_uid" || "databucket.file.data_classifications.classifier_details.type" || "evidences.actor.user.account.uid" || "evidences.api.operation" || "evidences.api.response.error_message" || "evidences.api.service.name" || "evidences.connection_info.direction" || "evidences.connection_info.protocol_name" || "evidences.dst_endpoint.autonomous_system.name" || "evidences.dst_endpoint.location.city" || "evidences.dst_endpoint.location.country" || "evidences.src_endpoint.autonomous_system.name" || "evidences.src_endpoint.hostname" || "evidences.src_endpoint.location.city" || "evidences.src_endpoint.location.country" || "finding_info.analytic.name" || "malware.name" || "malware_scan_info.uid" || "malware.severity" || "resources.cloud_function.layers.uid_alt" || "resources.cloud_function.runtime" || "resources.cloud_function.user.uid" || "resources.device.encryption_details.key_uid" || "resources.device.image.uid" || "resources.image.architecture" || "resources.image.registry_uid" || "resources.image.repository_name" || "resources.image.uid" || "resources.subnet_info.uid" || "resources.vpc_uid" || "vulnerabilities.affected_code.file.path" || "vulnerabilities.affected_packages.name" || "vulnerabilities.cve.epss.score" || "vulnerabilities.cve.uid" || "vulnerabilities.related_vulnerabilities" || "cloud.account.name" || "vendor_attributes.severity",
|
|
119
119
|
* // Filter: {
|
|
120
120
|
* // Value: "STRING_VALUE",
|
|
121
121
|
* // Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetConnectorRequest, GetConnectorResponse } from "../models/models_2";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetConnectorCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetConnectorCommandInput extends GetConnectorRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetConnectorCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetConnectorCommandOutput extends GetConnectorResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetConnectorCommand_base: {
|
|
22
|
+
new (input: GetConnectorCommandInput): import("@smithy/core/client").CommandImpl<GetConnectorCommandInput, GetConnectorCommandOutput, import("..").SecurityHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetConnectorCommandInput): import("@smithy/core/client").CommandImpl<GetConnectorCommandInput, GetConnectorCommandOutput, import("..").SecurityHubClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves details for a CSPM connector based on the connector ID.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SecurityHubClient, GetConnectorCommand } from "@aws-sdk/client-securityhub"; // ES Modules import
|
|
32
|
+
* // const { SecurityHubClient, GetConnectorCommand } = require("@aws-sdk/client-securityhub"); // CommonJS import
|
|
33
|
+
* // import type { SecurityHubClientConfig } from "@aws-sdk/client-securityhub";
|
|
34
|
+
* const config = {}; // type is SecurityHubClientConfig
|
|
35
|
+
* const client = new SecurityHubClient(config);
|
|
36
|
+
* const input = { // GetConnectorRequest
|
|
37
|
+
* ConnectorId: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetConnectorCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // GetConnectorResponse
|
|
42
|
+
* // ConnectorArn: "STRING_VALUE",
|
|
43
|
+
* // ConnectorId: "STRING_VALUE", // required
|
|
44
|
+
* // Name: "STRING_VALUE", // required
|
|
45
|
+
* // Description: "STRING_VALUE",
|
|
46
|
+
* // CreatedAt: new Date("TIMESTAMP"), // required
|
|
47
|
+
* // LastUpdatedAt: new Date("TIMESTAMP"), // required
|
|
48
|
+
* // Health: { // CspmHealthCheck
|
|
49
|
+
* // ConnectorStatus: "CONNECTED" || "DEGRADED" || "FAILED_TO_CONNECT" || "UNKNOWN", // required
|
|
50
|
+
* // Message: "STRING_VALUE",
|
|
51
|
+
* // LastCheckedAt: new Date("TIMESTAMP"), // required
|
|
52
|
+
* // Issues: [ // HealthIssueList
|
|
53
|
+
* // { // HealthIssue
|
|
54
|
+
* // Code: "AUTHENTICATION_FAILURE" || "STREAM_AUTHORIZATION_FAILURE" || "DISCOVERY_FAILURE" || "STREAM_LIMIT_EXCEEDED" || "STREAM_DISCONNECTED" || "RECORDING_FAILURE" || "NO_HEALTH_DATA", // required
|
|
55
|
+
* // Message: "STRING_VALUE", // required
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
58
|
+
* // },
|
|
59
|
+
* // ProviderDetail: { // CspmProviderDetail Union: only one key present
|
|
60
|
+
* // Azure: { // AzureDetail
|
|
61
|
+
* // AWSConfigConnectorArn: "STRING_VALUE", // required
|
|
62
|
+
* // ScopeConfiguration: { // AzureScopeConfiguration
|
|
63
|
+
* // ScopeType: "TENANT" || "SUBSCRIPTION", // required
|
|
64
|
+
* // ScopeValues: [ // ScopeValueList
|
|
65
|
+
* // "STRING_VALUE",
|
|
66
|
+
* // ],
|
|
67
|
+
* // },
|
|
68
|
+
* // AzureRegions: [ // AzureRegionList // required
|
|
69
|
+
* // "STRING_VALUE",
|
|
70
|
+
* // ],
|
|
71
|
+
* // },
|
|
72
|
+
* // },
|
|
73
|
+
* // CreatedBy: "STRING_VALUE",
|
|
74
|
+
* // EnablementStatus: "ENABLED" || "PENDING_ENABLEMENT" || "PENDING_UPDATE" || "PENDING_DELETION",
|
|
75
|
+
* // };
|
|
76
|
+
*
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @param GetConnectorCommandInput - {@link GetConnectorCommandInput}
|
|
80
|
+
* @returns {@link GetConnectorCommandOutput}
|
|
81
|
+
* @see {@link GetConnectorCommandInput} for command's `input` shape.
|
|
82
|
+
* @see {@link GetConnectorCommandOutput} for command's `response` shape.
|
|
83
|
+
* @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
86
|
+
* <p>You don't have permission to perform the action specified in the request.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ConflictException} (client fault)
|
|
89
|
+
* <p>The request causes conflict with the current state of the service resource.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link InternalServerException} (server fault)
|
|
92
|
+
* <p>
|
|
93
|
+
* The request has failed due to an internal failure of the service.
|
|
94
|
+
* </p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link InvalidAccessException} (client fault)
|
|
97
|
+
* <p>The account doesn't have permission to perform this action.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
100
|
+
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
103
|
+
* <p>
|
|
104
|
+
* The limit on the number of requests per second was exceeded.
|
|
105
|
+
* </p>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link ValidationException} (client fault)
|
|
108
|
+
* <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link SecurityHubServiceException}
|
|
111
|
+
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
112
|
+
*
|
|
113
|
+
*
|
|
114
|
+
* @example To get details of a CSPM connector
|
|
115
|
+
* ```javascript
|
|
116
|
+
* // This operation retrieves details for a CSPM connector.
|
|
117
|
+
* const input = {
|
|
118
|
+
* ConnectorId: "cspm-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
|
|
119
|
+
* };
|
|
120
|
+
* const command = new GetConnectorCommand(input);
|
|
121
|
+
* const response = await client.send(command);
|
|
122
|
+
* /* response is
|
|
123
|
+
* {
|
|
124
|
+
* ConnectorArn: "arn:aws:securityhub:us-east-1:123456789012:connector/cspm-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
125
|
+
* ConnectorId: "cspm-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
126
|
+
* CreatedAt: "2026-01-15T10:30:00.000Z",
|
|
127
|
+
* CreatedBy: "securityhub.amazonaws.com",
|
|
128
|
+
* Description: "Connector for Azure tenant monitoring",
|
|
129
|
+
* Health: {
|
|
130
|
+
* ConnectorStatus: "CONNECTED",
|
|
131
|
+
* LastCheckedAt: "2026-05-20T14:00:00.000Z"
|
|
132
|
+
* },
|
|
133
|
+
* LastUpdatedAt: "2026-05-20T14:00:00.000Z",
|
|
134
|
+
* Name: "MyAzureConnector",
|
|
135
|
+
* ProviderDetail: {
|
|
136
|
+
* Azure: {
|
|
137
|
+
* AWSConfigConnectorArn: "arn:aws:config:us-east-1:123456789012:connector/azure-connector-1234",
|
|
138
|
+
* AzureRegions: [
|
|
139
|
+
* "eastus",
|
|
140
|
+
* "westus2"
|
|
141
|
+
* ],
|
|
142
|
+
* ScopeConfiguration: {
|
|
143
|
+
* ScopeType: "TENANT"
|
|
144
|
+
* }
|
|
145
|
+
* }
|
|
146
|
+
* }
|
|
147
|
+
* }
|
|
148
|
+
* *\/
|
|
149
|
+
* ```
|
|
150
|
+
*
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
export declare class GetConnectorCommand extends GetConnectorCommand_base {
|
|
154
|
+
/** @internal type navigation helper, not in runtime. */
|
|
155
|
+
protected static __types: {
|
|
156
|
+
api: {
|
|
157
|
+
input: GetConnectorRequest;
|
|
158
|
+
output: GetConnectorResponse;
|
|
159
|
+
};
|
|
160
|
+
sdk: {
|
|
161
|
+
input: GetConnectorCommandInput;
|
|
162
|
+
output: GetConnectorCommandOutput;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
}
|
|
@@ -47,9 +47,15 @@ declare const GetConnectorV2Command_base: {
|
|
|
47
47
|
* // CreatedAt: new Date("TIMESTAMP"), // required
|
|
48
48
|
* // LastUpdatedAt: new Date("TIMESTAMP"), // required
|
|
49
49
|
* // Health: { // HealthCheck
|
|
50
|
-
* // ConnectorStatus: "CONNECTED" || "FAILED_TO_CONNECT" || "PENDING_CONFIGURATION" || "
|
|
50
|
+
* // ConnectorStatus: "CONNECTED" || "DEGRADED" || "FAILED_TO_CONNECT" || "PENDING_AUTHORIZATION" || "PENDING_CONFIGURATION" || "UNKNOWN", // required
|
|
51
51
|
* // Message: "STRING_VALUE",
|
|
52
52
|
* // LastCheckedAt: new Date("TIMESTAMP"), // required
|
|
53
|
+
* // Issues: [ // HealthIssueList
|
|
54
|
+
* // { // HealthIssue
|
|
55
|
+
* // Code: "AUTHENTICATION_FAILURE" || "STREAM_AUTHORIZATION_FAILURE" || "DISCOVERY_FAILURE" || "STREAM_LIMIT_EXCEEDED" || "STREAM_DISCONNECTED" || "RECORDING_FAILURE" || "NO_HEALTH_DATA", // required
|
|
56
|
+
* // Message: "STRING_VALUE", // required
|
|
57
|
+
* // },
|
|
58
|
+
* // ],
|
|
53
59
|
* // },
|
|
54
60
|
* // ProviderDetail: { // ProviderDetail Union: only one key present
|
|
55
61
|
* // JiraCloud: { // JiraCloudDetail
|
|
@@ -64,7 +70,21 @@ declare const GetConnectorV2Command_base: {
|
|
|
64
70
|
* // SecretArn: "STRING_VALUE", // required
|
|
65
71
|
* // AuthStatus: "ACTIVE" || "FAILED", // required
|
|
66
72
|
* // },
|
|
73
|
+
* // Azure: { // AzureDetail
|
|
74
|
+
* // AWSConfigConnectorArn: "STRING_VALUE", // required
|
|
75
|
+
* // ScopeConfiguration: { // AzureScopeConfiguration
|
|
76
|
+
* // ScopeType: "TENANT" || "SUBSCRIPTION", // required
|
|
77
|
+
* // ScopeValues: [ // ScopeValueList
|
|
78
|
+
* // "STRING_VALUE",
|
|
79
|
+
* // ],
|
|
80
|
+
* // },
|
|
81
|
+
* // AzureRegions: [ // AzureRegionList // required
|
|
82
|
+
* // "STRING_VALUE",
|
|
83
|
+
* // ],
|
|
84
|
+
* // },
|
|
67
85
|
* // },
|
|
86
|
+
* // EnablementStatus: "ENABLED" || "PENDING_ENABLEMENT" || "FAILED_TO_ENABLE" || "PENDING_UPDATE" || "FAILED_TO_UPDATE" || "PENDING_DELETION" || "FAILED_TO_DELETE",
|
|
87
|
+
* // EnablementStatusReason: "STRING_VALUE",
|
|
68
88
|
* // };
|
|
69
89
|
*
|
|
70
90
|
* ```
|
|
@@ -39,6 +39,9 @@ declare const GetEnabledStandardsCommand_base: {
|
|
|
39
39
|
* ],
|
|
40
40
|
* NextToken: "STRING_VALUE",
|
|
41
41
|
* MaxResults: Number("int"),
|
|
42
|
+
* Providers: [ // StandardsProviders
|
|
43
|
+
* "AWS" || "Azure",
|
|
44
|
+
* ],
|
|
42
45
|
* };
|
|
43
46
|
* const command = new GetEnabledStandardsCommand(input);
|
|
44
47
|
* const response = await client.send(command);
|
|
@@ -53,8 +56,9 @@ declare const GetEnabledStandardsCommand_base: {
|
|
|
53
56
|
* // StandardsStatus: "PENDING" || "READY" || "FAILED" || "DELETING" || "INCOMPLETE", // required
|
|
54
57
|
* // StandardsControlsUpdatable: "READY_FOR_UPDATES" || "NOT_READY_FOR_UPDATES",
|
|
55
58
|
* // StandardsStatusReason: { // StandardsStatusReason
|
|
56
|
-
* // StatusReasonCode: "NO_AVAILABLE_CONFIGURATION_RECORDER" || "MAXIMUM_NUMBER_OF_CONFIG_RULES_EXCEEDED" || "INTERNAL_ERROR", // required
|
|
59
|
+
* // StatusReasonCode: "NO_AVAILABLE_CONFIGURATION_RECORDER" || "MAXIMUM_NUMBER_OF_CONFIG_RULES_EXCEEDED" || "NO_AVAILABLE_MULTICLOUD_CONNECTOR" || "INTERNAL_ERROR", // required
|
|
57
60
|
* // },
|
|
61
|
+
* // Provider: "AWS" || "Azure",
|
|
58
62
|
* // },
|
|
59
63
|
* // ],
|
|
60
64
|
* // NextToken: "STRING_VALUE",
|