@aws-sdk/client-securityhub 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/SecurityHubClient.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/AcceptAdministratorInvitationCommand.d.ts +8 -5
- package/dist-types/commands/AcceptInvitationCommand.d.ts +1 -0
- package/dist-types/commands/BatchDeleteAutomationRulesCommand.d.ts +9 -9
- package/dist-types/commands/BatchDisableStandardsCommand.d.ts +9 -9
- package/dist-types/commands/BatchEnableStandardsCommand.d.ts +10 -10
- package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +49 -49
- package/dist-types/commands/BatchGetConfigurationPolicyAssociationsCommand.d.ts +22 -22
- package/dist-types/commands/BatchGetSecurityControlsCommand.d.ts +33 -33
- package/dist-types/commands/BatchGetStandardsControlAssociationsCommand.d.ts +1 -50
- package/dist-types/commands/BatchImportFindingsCommand.d.ts +26 -26
- package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +10 -10
- package/dist-types/commands/BatchUpdateFindingsCommand.d.ts +30 -30
- package/dist-types/commands/BatchUpdateStandardsControlAssociationsCommand.d.ts +20 -20
- package/dist-types/commands/CreateActionTargetCommand.d.ts +7 -7
- package/dist-types/commands/CreateAutomationRuleCommand.d.ts +35 -35
- package/dist-types/commands/CreateConfigurationPolicyCommand.d.ts +37 -37
- package/dist-types/commands/CreateFindingAggregatorCommand.d.ts +9 -9
- package/dist-types/commands/CreateInsightCommand.d.ts +13 -13
- package/dist-types/commands/CreateMembersCommand.d.ts +7 -7
- package/dist-types/commands/DeclineInvitationsCommand.d.ts +5 -5
- package/dist-types/commands/DeleteActionTargetCommand.d.ts +5 -5
- package/dist-types/commands/DeleteConfigurationPolicyCommand.d.ts +7 -4
- package/dist-types/commands/DeleteFindingAggregatorCommand.d.ts +7 -4
- package/dist-types/commands/DeleteInsightCommand.d.ts +5 -5
- package/dist-types/commands/DeleteInvitationsCommand.d.ts +5 -5
- package/dist-types/commands/DeleteMembersCommand.d.ts +5 -5
- package/dist-types/commands/DescribeActionTargetsCommand.d.ts +8 -8
- package/dist-types/commands/DescribeHubCommand.d.ts +8 -8
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +10 -10
- package/dist-types/commands/DescribeProductsCommand.d.ts +17 -17
- package/dist-types/commands/DescribeStandardsCommand.d.ts +21 -21
- package/dist-types/commands/DescribeStandardsControlsCommand.d.ts +1 -46
- package/dist-types/commands/DisableImportFindingsForProductCommand.d.ts +7 -4
- package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +7 -4
- package/dist-types/commands/DisableSecurityHubCommand.d.ts +7 -4
- package/dist-types/commands/DisassociateFromAdministratorAccountCommand.d.ts +7 -4
- package/dist-types/commands/DisassociateFromMasterAccountCommand.d.ts +1 -0
- package/dist-types/commands/DisassociateMembersCommand.d.ts +7 -4
- package/dist-types/commands/EnableImportFindingsForProductCommand.d.ts +5 -5
- package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +7 -4
- package/dist-types/commands/EnableSecurityHubCommand.d.ts +9 -6
- package/dist-types/commands/GetAdministratorAccountCommand.d.ts +1 -19
- package/dist-types/commands/GetConfigurationPolicyAssociationCommand.d.ts +12 -12
- package/dist-types/commands/GetConfigurationPolicyCommand.d.ts +23 -23
- package/dist-types/commands/GetEnabledStandardsCommand.d.ts +9 -9
- package/dist-types/commands/GetFindingAggregatorCommand.d.ts +8 -8
- package/dist-types/commands/GetFindingHistoryCommand.d.ts +1 -42
- package/dist-types/commands/GetFindingsCommand.d.ts +63 -63
- package/dist-types/commands/GetInsightResultsCommand.d.ts +12 -12
- package/dist-types/commands/GetInsightsCommand.d.ts +15 -15
- package/dist-types/commands/GetInvitationsCountCommand.d.ts +7 -7
- package/dist-types/commands/GetMasterAccountCommand.d.ts +1 -0
- package/dist-types/commands/GetMembersCommand.d.ts +1 -37
- package/dist-types/commands/GetSecurityControlDefinitionCommand.d.ts +19 -19
- package/dist-types/commands/InviteMembersCommand.d.ts +5 -5
- package/dist-types/commands/ListAutomationRulesCommand.d.ts +23 -23
- package/dist-types/commands/ListConfigurationPoliciesCommand.d.ts +13 -13
- package/dist-types/commands/ListConfigurationPolicyAssociationsCommand.d.ts +15 -15
- package/dist-types/commands/ListEnabledProductsForImportCommand.d.ts +5 -5
- package/dist-types/commands/ListFindingAggregatorsCommand.d.ts +6 -6
- package/dist-types/commands/ListInvitationsCommand.d.ts +1 -21
- package/dist-types/commands/ListMembersCommand.d.ts +1 -31
- package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +7 -7
- package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +28 -28
- package/dist-types/commands/ListStandardsControlAssociationsCommand.d.ts +1 -44
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +7 -7
- package/dist-types/commands/StartConfigurationPolicyAssociationCommand.d.ts +13 -13
- package/dist-types/commands/StartConfigurationPolicyDisassociationCommand.d.ts +9 -6
- package/dist-types/commands/TagResourceCommand.d.ts +10 -7
- package/dist-types/commands/UntagResourceCommand.d.ts +8 -5
- package/dist-types/commands/UpdateActionTargetCommand.d.ts +9 -6
- package/dist-types/commands/UpdateConfigurationPolicyCommand.d.ts +39 -39
- package/dist-types/commands/UpdateFindingAggregatorCommand.d.ts +10 -10
- package/dist-types/commands/UpdateFindingsCommand.d.ts +1 -0
- package/dist-types/commands/UpdateInsightCommand.d.ts +15 -12
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +10 -7
- package/dist-types/commands/UpdateSecurityControlCommand.d.ts +13 -10
- package/dist-types/commands/UpdateSecurityHubConfigurationCommand.d.ts +8 -5
- package/dist-types/commands/UpdateStandardsControlCommand.d.ts +9 -6
- package/package.json +33 -33
|
@@ -170,83 +170,83 @@ declare const CreateConfigurationPolicyCommand_base: {
|
|
|
170
170
|
* @throws {@link SecurityHubServiceException}
|
|
171
171
|
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
172
172
|
*
|
|
173
|
-
*
|
|
173
|
+
*
|
|
174
174
|
* @example To create a configuration policy
|
|
175
175
|
* ```javascript
|
|
176
176
|
* // This operation creates a configuration policy in Security Hub.
|
|
177
177
|
* const input = {
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
178
|
+
* ConfigurationPolicy: {
|
|
179
|
+
* SecurityHub: {
|
|
180
|
+
* EnabledStandardIdentifiers: [
|
|
181
181
|
* "arn:aws:securityhub:us-east-1::standards/aws-foundational-security-best-practices/v/1.0.0",
|
|
182
182
|
* "arn:aws:securityhub:::ruleset/cis-aws-foundations-benchmark/v/1.2.0"
|
|
183
183
|
* ],
|
|
184
|
-
*
|
|
185
|
-
*
|
|
184
|
+
* SecurityControlsConfiguration: {
|
|
185
|
+
* DisabledSecurityControlIdentifiers: [
|
|
186
186
|
* "CloudWatch.1"
|
|
187
187
|
* ],
|
|
188
|
-
*
|
|
188
|
+
* SecurityControlCustomParameters: [
|
|
189
189
|
* {
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
190
|
+
* Parameters: {
|
|
191
|
+
* daysToExpiration: {
|
|
192
|
+
* Value: {
|
|
193
|
+
* Integer: 14
|
|
194
194
|
* },
|
|
195
|
-
*
|
|
195
|
+
* ValueType: "CUSTOM"
|
|
196
196
|
* }
|
|
197
197
|
* },
|
|
198
|
-
*
|
|
198
|
+
* SecurityControlId: "ACM.1"
|
|
199
199
|
* }
|
|
200
200
|
* ]
|
|
201
201
|
* },
|
|
202
|
-
*
|
|
202
|
+
* ServiceEnabled: true
|
|
203
203
|
* }
|
|
204
204
|
* },
|
|
205
|
-
*
|
|
206
|
-
*
|
|
205
|
+
* Description: "Configuration policy for testing FSBP and CIS",
|
|
206
|
+
* Name: "TestConfigurationPolicy"
|
|
207
207
|
* };
|
|
208
208
|
* const command = new CreateConfigurationPolicyCommand(input);
|
|
209
209
|
* const response = await client.send(command);
|
|
210
|
-
* /* response
|
|
210
|
+
* /* response is
|
|
211
211
|
* {
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
212
|
+
* Arn: "arn:aws:securityhub:us-east-1:123456789012:configuration-policy/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
213
|
+
* ConfigurationPolicy: {
|
|
214
|
+
* SecurityHub: {
|
|
215
|
+
* EnabledStandardIdentifiers: [
|
|
216
216
|
* "arn:aws:securityhub:us-east-1::standards/aws-foundational-security-best-practices/v/1.0.0",
|
|
217
217
|
* "arn:aws:securityhub:::ruleset/cis-aws-foundations-benchmark/v/1.2.0"
|
|
218
218
|
* ],
|
|
219
|
-
*
|
|
220
|
-
*
|
|
219
|
+
* SecurityControlsConfiguration: {
|
|
220
|
+
* DisabledSecurityControlIdentifiers: [
|
|
221
221
|
* "CloudWatch.1"
|
|
222
222
|
* ],
|
|
223
|
-
*
|
|
223
|
+
* SecurityControlCustomParameters: [
|
|
224
224
|
* {
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
225
|
+
* Parameters: {
|
|
226
|
+
* daysToExpiration: {
|
|
227
|
+
* Value: {
|
|
228
|
+
* Integer: 14
|
|
229
229
|
* },
|
|
230
|
-
*
|
|
230
|
+
* ValueType: "CUSTOM"
|
|
231
231
|
* }
|
|
232
232
|
* },
|
|
233
|
-
*
|
|
233
|
+
* SecurityControlId: "ACM.1"
|
|
234
234
|
* }
|
|
235
235
|
* ]
|
|
236
236
|
* },
|
|
237
|
-
*
|
|
237
|
+
* ServiceEnabled: true
|
|
238
238
|
* }
|
|
239
239
|
* },
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
240
|
+
* CreatedAt: "2023-01-11T06:17:17.154Z",
|
|
241
|
+
* Description: "Configuration policy for testing FSBP and CIS",
|
|
242
|
+
* Id: "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
243
|
+
* Name: "TestConfigurationPolicy",
|
|
244
|
+
* UpdatedAt: "2023-01-11T06:17:17.154Z"
|
|
245
245
|
* }
|
|
246
246
|
* *\/
|
|
247
|
-
* // example id: to-create-a-configuration-policy-1695172470099
|
|
248
247
|
* ```
|
|
249
248
|
*
|
|
249
|
+
* @public
|
|
250
250
|
*/
|
|
251
251
|
export declare class CreateConfigurationPolicyCommand extends CreateConfigurationPolicyCommand_base {
|
|
252
252
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -84,33 +84,33 @@ declare const CreateFindingAggregatorCommand_base: {
|
|
|
84
84
|
* @throws {@link SecurityHubServiceException}
|
|
85
85
|
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
86
86
|
*
|
|
87
|
-
*
|
|
87
|
+
*
|
|
88
88
|
* @example To enable cross-Region aggregation
|
|
89
89
|
* ```javascript
|
|
90
90
|
* // The following example creates a finding aggregator. This is required to enable cross-Region aggregation.
|
|
91
91
|
* const input = {
|
|
92
|
-
*
|
|
93
|
-
*
|
|
92
|
+
* RegionLinkingMode: "SPECIFIED_REGIONS",
|
|
93
|
+
* Regions: [
|
|
94
94
|
* "us-west-1",
|
|
95
95
|
* "us-west-2"
|
|
96
96
|
* ]
|
|
97
97
|
* };
|
|
98
98
|
* const command = new CreateFindingAggregatorCommand(input);
|
|
99
99
|
* const response = await client.send(command);
|
|
100
|
-
* /* response
|
|
100
|
+
* /* response is
|
|
101
101
|
* {
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
102
|
+
* FindingAggregationRegion: "us-east-1",
|
|
103
|
+
* FindingAggregatorArn: "arn:aws:securityhub:us-east-1:222222222222:finding-aggregator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
104
|
+
* RegionLinkingMode: "SPECIFIED_REGIONS",
|
|
105
|
+
* Regions: [
|
|
106
106
|
* "us-west-1",
|
|
107
107
|
* "us-west-2"
|
|
108
108
|
* ]
|
|
109
109
|
* }
|
|
110
110
|
* *\/
|
|
111
|
-
* // example id: to-enable-cross-region-aggregation-1674766716226
|
|
112
111
|
* ```
|
|
113
112
|
*
|
|
113
|
+
* @public
|
|
114
114
|
*/
|
|
115
115
|
export declare class CreateFindingAggregatorCommand extends CreateFindingAggregatorCommand_base {
|
|
116
116
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -343,38 +343,38 @@ declare const CreateInsightCommand_base: {
|
|
|
343
343
|
* @throws {@link SecurityHubServiceException}
|
|
344
344
|
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
345
345
|
*
|
|
346
|
-
*
|
|
346
|
+
*
|
|
347
347
|
* @example To create a custom insight
|
|
348
348
|
* ```javascript
|
|
349
349
|
* // The following example creates a custom insight in Security Hub. An insight is a collection of findings that relate to a security issue.
|
|
350
350
|
* const input = {
|
|
351
|
-
*
|
|
352
|
-
*
|
|
351
|
+
* Filters: {
|
|
352
|
+
* ResourceType: [
|
|
353
353
|
* {
|
|
354
|
-
*
|
|
355
|
-
*
|
|
354
|
+
* Comparison: "EQUALS",
|
|
355
|
+
* Value: "AwsIamRole"
|
|
356
356
|
* }
|
|
357
357
|
* ],
|
|
358
|
-
*
|
|
358
|
+
* SeverityLabel: [
|
|
359
359
|
* {
|
|
360
|
-
*
|
|
361
|
-
*
|
|
360
|
+
* Comparison: "EQUALS",
|
|
361
|
+
* Value: "CRITICAL"
|
|
362
362
|
* }
|
|
363
363
|
* ]
|
|
364
364
|
* },
|
|
365
|
-
*
|
|
366
|
-
*
|
|
365
|
+
* GroupByAttribute: "ResourceId",
|
|
366
|
+
* Name: "Critical role findings"
|
|
367
367
|
* };
|
|
368
368
|
* const command = new CreateInsightCommand(input);
|
|
369
369
|
* const response = await client.send(command);
|
|
370
|
-
* /* response
|
|
370
|
+
* /* response is
|
|
371
371
|
* {
|
|
372
|
-
*
|
|
372
|
+
* InsightArn: "arn:aws:securityhub:us-west-1:123456789012:insight/123456789012/custom/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
|
|
373
373
|
* }
|
|
374
374
|
* *\/
|
|
375
|
-
* // example id: to-create-a-custom-insight-1675354046628
|
|
376
375
|
* ```
|
|
377
376
|
*
|
|
377
|
+
* @public
|
|
378
378
|
*/
|
|
379
379
|
export declare class CreateInsightCommand extends CreateInsightCommand_base {
|
|
380
380
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -118,30 +118,30 @@ declare const CreateMembersCommand_base: {
|
|
|
118
118
|
* @throws {@link SecurityHubServiceException}
|
|
119
119
|
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
120
120
|
*
|
|
121
|
-
*
|
|
121
|
+
*
|
|
122
122
|
* @example To add a member account
|
|
123
123
|
* ```javascript
|
|
124
124
|
* // The following example creates a member association between the specified accounts and the administrator account (the account that makes the request). This operation is used to add accounts that aren't part of an organization.
|
|
125
125
|
* const input = {
|
|
126
|
-
*
|
|
126
|
+
* AccountDetails: [
|
|
127
127
|
* {
|
|
128
|
-
*
|
|
128
|
+
* AccountId: "123456789012"
|
|
129
129
|
* },
|
|
130
130
|
* {
|
|
131
|
-
*
|
|
131
|
+
* AccountId: "111122223333"
|
|
132
132
|
* }
|
|
133
133
|
* ]
|
|
134
134
|
* };
|
|
135
135
|
* const command = new CreateMembersCommand(input);
|
|
136
136
|
* const response = await client.send(command);
|
|
137
|
-
* /* response
|
|
137
|
+
* /* response is
|
|
138
138
|
* {
|
|
139
|
-
*
|
|
139
|
+
* UnprocessedAccounts: []
|
|
140
140
|
* }
|
|
141
141
|
* *\/
|
|
142
|
-
* // example id: to-add-a-member-account-1675354709996
|
|
143
142
|
* ```
|
|
144
143
|
*
|
|
144
|
+
* @public
|
|
145
145
|
*/
|
|
146
146
|
export declare class CreateMembersCommand extends CreateMembersCommand_base {
|
|
147
147
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -82,26 +82,26 @@ declare const DeclineInvitationsCommand_base: {
|
|
|
82
82
|
* @throws {@link SecurityHubServiceException}
|
|
83
83
|
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
84
84
|
*
|
|
85
|
-
*
|
|
85
|
+
*
|
|
86
86
|
* @example To decline invitation to become a member account
|
|
87
87
|
* ```javascript
|
|
88
88
|
* // The following example declines an invitation from the Security Hub administrator account to become a member account. The invited account makes the request.
|
|
89
89
|
* const input = {
|
|
90
|
-
*
|
|
90
|
+
* AccountIds: [
|
|
91
91
|
* "123456789012",
|
|
92
92
|
* "111122223333"
|
|
93
93
|
* ]
|
|
94
94
|
* };
|
|
95
95
|
* const command = new DeclineInvitationsCommand(input);
|
|
96
96
|
* const response = await client.send(command);
|
|
97
|
-
* /* response
|
|
97
|
+
* /* response is
|
|
98
98
|
* {
|
|
99
|
-
*
|
|
99
|
+
* UnprocessedAccounts: []
|
|
100
100
|
* }
|
|
101
101
|
* *\/
|
|
102
|
-
* // example id: to-decline-invitation-to-become-a-member-account-1675448487605
|
|
103
102
|
* ```
|
|
104
103
|
*
|
|
104
|
+
* @public
|
|
105
105
|
*/
|
|
106
106
|
export declare class DeclineInvitationsCommand extends DeclineInvitationsCommand_base {
|
|
107
107
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -69,23 +69,23 @@ declare const DeleteActionTargetCommand_base: {
|
|
|
69
69
|
* @throws {@link SecurityHubServiceException}
|
|
70
70
|
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
71
71
|
*
|
|
72
|
-
*
|
|
72
|
+
*
|
|
73
73
|
* @example To delete a custom action target
|
|
74
74
|
* ```javascript
|
|
75
75
|
* // The following example deletes a custom action target that triggers target actions in Amazon CloudWatch Events. Deleting a custom action target doesn't affect findings or insights that were already sent to CloudWatch Events based on the custom action.
|
|
76
76
|
* const input = {
|
|
77
|
-
*
|
|
77
|
+
* ActionTargetArn: "arn:aws:securityhub:us-west-1:123456789012:action/custom/Remediation"
|
|
78
78
|
* };
|
|
79
79
|
* const command = new DeleteActionTargetCommand(input);
|
|
80
80
|
* const response = await client.send(command);
|
|
81
|
-
* /* response
|
|
81
|
+
* /* response is
|
|
82
82
|
* {
|
|
83
|
-
*
|
|
83
|
+
* ActionTargetArn: "arn:aws:securityhub:us-west-1:123456789012:action/custom/Remediation"
|
|
84
84
|
* }
|
|
85
85
|
* *\/
|
|
86
|
-
* // example id: to-delete-a-custom-action-target-1675449272793
|
|
87
86
|
* ```
|
|
88
87
|
*
|
|
88
|
+
* @public
|
|
89
89
|
*/
|
|
90
90
|
export declare class DeleteActionTargetCommand extends DeleteActionTargetCommand_base {
|
|
91
91
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -79,18 +79,21 @@ declare const DeleteConfigurationPolicyCommand_base: {
|
|
|
79
79
|
* @throws {@link SecurityHubServiceException}
|
|
80
80
|
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
81
81
|
*
|
|
82
|
-
*
|
|
82
|
+
*
|
|
83
83
|
* @example To delete a configuration policy
|
|
84
84
|
* ```javascript
|
|
85
85
|
* // This operation deletes the specified configuration policy.
|
|
86
86
|
* const input = {
|
|
87
|
-
*
|
|
87
|
+
* Identifier: "arn:aws:securityhub:us-east-1:123456789012:configuration-policy/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
|
|
88
88
|
* };
|
|
89
89
|
* const command = new DeleteConfigurationPolicyCommand(input);
|
|
90
|
-
* await client.send(command);
|
|
91
|
-
*
|
|
90
|
+
* const response = await client.send(command);
|
|
91
|
+
* /* response is
|
|
92
|
+
* { /* metadata only *\/ }
|
|
93
|
+
* *\/
|
|
92
94
|
* ```
|
|
93
95
|
*
|
|
96
|
+
* @public
|
|
94
97
|
*/
|
|
95
98
|
export declare class DeleteConfigurationPolicyCommand extends DeleteConfigurationPolicyCommand_base {
|
|
96
99
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -79,18 +79,21 @@ declare const DeleteFindingAggregatorCommand_base: {
|
|
|
79
79
|
* @throws {@link SecurityHubServiceException}
|
|
80
80
|
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
81
81
|
*
|
|
82
|
-
*
|
|
82
|
+
*
|
|
83
83
|
* @example To delete a finding aggregator
|
|
84
84
|
* ```javascript
|
|
85
85
|
* // The following example deletes a finding aggregator in Security Hub. Deleting the finding aggregator stops cross-Region aggregation. This operation produces no output.
|
|
86
86
|
* const input = {
|
|
87
|
-
*
|
|
87
|
+
* FindingAggregatorArn: "arn:aws:securityhub:us-east-1:123456789012:finding-aggregator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
|
|
88
88
|
* };
|
|
89
89
|
* const command = new DeleteFindingAggregatorCommand(input);
|
|
90
|
-
* await client.send(command);
|
|
91
|
-
*
|
|
90
|
+
* const response = await client.send(command);
|
|
91
|
+
* /* response is
|
|
92
|
+
* { /* metadata only *\/ }
|
|
93
|
+
* *\/
|
|
92
94
|
* ```
|
|
93
95
|
*
|
|
96
|
+
* @public
|
|
94
97
|
*/
|
|
95
98
|
export declare class DeleteFindingAggregatorCommand extends DeleteFindingAggregatorCommand_base {
|
|
96
99
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -71,23 +71,23 @@ declare const DeleteInsightCommand_base: {
|
|
|
71
71
|
* @throws {@link SecurityHubServiceException}
|
|
72
72
|
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
73
73
|
*
|
|
74
|
-
*
|
|
74
|
+
*
|
|
75
75
|
* @example To delete a custom insight
|
|
76
76
|
* ```javascript
|
|
77
77
|
* // The following example deletes a custom insight in Security Hub.
|
|
78
78
|
* const input = {
|
|
79
|
-
*
|
|
79
|
+
* InsightArn: "arn:aws:securityhub:us-west-1:123456789012:insight/123456789012/custom/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
|
|
80
80
|
* };
|
|
81
81
|
* const command = new DeleteInsightCommand(input);
|
|
82
82
|
* const response = await client.send(command);
|
|
83
|
-
* /* response
|
|
83
|
+
* /* response is
|
|
84
84
|
* {
|
|
85
|
-
*
|
|
85
|
+
* InsightArn: "arn:aws:securityhub:eu-central-1:123456789012:insight/123456789012/custom/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
|
|
86
86
|
* }
|
|
87
87
|
* *\/
|
|
88
|
-
* // example id: to-delete-a-custom-insight-1675702697204
|
|
89
88
|
* ```
|
|
90
89
|
*
|
|
90
|
+
* @public
|
|
91
91
|
*/
|
|
92
92
|
export declare class DeleteInsightCommand extends DeleteInsightCommand_base {
|
|
93
93
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -86,25 +86,25 @@ declare const DeleteInvitationsCommand_base: {
|
|
|
86
86
|
* @throws {@link SecurityHubServiceException}
|
|
87
87
|
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
88
88
|
*
|
|
89
|
-
*
|
|
89
|
+
*
|
|
90
90
|
* @example To delete a custom insight
|
|
91
91
|
* ```javascript
|
|
92
92
|
* // The following example deletes an invitation sent by the Security Hub administrator account to a prospective member account. This operation is used only for invitations sent to accounts that aren't part of an organization. Organization accounts don't receive invitations.
|
|
93
93
|
* const input = {
|
|
94
|
-
*
|
|
94
|
+
* AccountIds: [
|
|
95
95
|
* "123456789012"
|
|
96
96
|
* ]
|
|
97
97
|
* };
|
|
98
98
|
* const command = new DeleteInvitationsCommand(input);
|
|
99
99
|
* const response = await client.send(command);
|
|
100
|
-
* /* response
|
|
100
|
+
* /* response is
|
|
101
101
|
* {
|
|
102
|
-
*
|
|
102
|
+
* UnprocessedAccounts: []
|
|
103
103
|
* }
|
|
104
104
|
* *\/
|
|
105
|
-
* // example id: to-delete-a-custom-insight-1675702697204
|
|
106
105
|
* ```
|
|
107
106
|
*
|
|
107
|
+
* @public
|
|
108
108
|
*/
|
|
109
109
|
export declare class DeleteInvitationsCommand extends DeleteInvitationsCommand_base {
|
|
110
110
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -80,26 +80,26 @@ declare const DeleteMembersCommand_base: {
|
|
|
80
80
|
* @throws {@link SecurityHubServiceException}
|
|
81
81
|
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
82
82
|
*
|
|
83
|
-
*
|
|
83
|
+
*
|
|
84
84
|
* @example To delete a member account
|
|
85
85
|
* ```javascript
|
|
86
86
|
* // The following example deletes the specified member account from Security Hub. This operation can be used to delete member accounts that are part of an organization or that were invited manually.
|
|
87
87
|
* const input = {
|
|
88
|
-
*
|
|
88
|
+
* AccountIds: [
|
|
89
89
|
* "123456789111",
|
|
90
90
|
* "123456789222"
|
|
91
91
|
* ]
|
|
92
92
|
* };
|
|
93
93
|
* const command = new DeleteMembersCommand(input);
|
|
94
94
|
* const response = await client.send(command);
|
|
95
|
-
* /* response
|
|
95
|
+
* /* response is
|
|
96
96
|
* {
|
|
97
|
-
*
|
|
97
|
+
* UnprocessedAccounts: []
|
|
98
98
|
* }
|
|
99
99
|
* *\/
|
|
100
|
-
* // example id: to-delete-a-member-account-1675883040513
|
|
101
100
|
* ```
|
|
102
101
|
*
|
|
102
|
+
* @public
|
|
103
103
|
*/
|
|
104
104
|
export declare class DeleteMembersCommand extends DeleteMembersCommand_base {
|
|
105
105
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -78,31 +78,31 @@ declare const DescribeActionTargetsCommand_base: {
|
|
|
78
78
|
* @throws {@link SecurityHubServiceException}
|
|
79
79
|
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
80
80
|
*
|
|
81
|
-
*
|
|
81
|
+
*
|
|
82
82
|
* @example To return custom action targets
|
|
83
83
|
* ```javascript
|
|
84
84
|
* // The following example returns a list of custom action targets. You use custom actions on findings and insights in Security Hub to trigger target actions in Amazon CloudWatch Events.
|
|
85
85
|
* const input = {
|
|
86
|
-
*
|
|
86
|
+
* ActionTargetArns: [
|
|
87
87
|
* "arn:aws:securityhub:us-west-1:123456789012:action/custom/Remediation"
|
|
88
88
|
* ]
|
|
89
89
|
* };
|
|
90
90
|
* const command = new DescribeActionTargetsCommand(input);
|
|
91
91
|
* const response = await client.send(command);
|
|
92
|
-
* /* response
|
|
92
|
+
* /* response is
|
|
93
93
|
* {
|
|
94
|
-
*
|
|
94
|
+
* ActionTargets: [
|
|
95
95
|
* {
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
96
|
+
* ActionTargetArn: "arn:aws:securityhub:us-west-1:123456789012:action/custom/Remediation",
|
|
97
|
+
* Description: "Action to send the finding for remediation tracking",
|
|
98
|
+
* Name: "Send to remediation"
|
|
99
99
|
* }
|
|
100
100
|
* ]
|
|
101
101
|
* }
|
|
102
102
|
* *\/
|
|
103
|
-
* // example id: to-return-custom-action-targets-1675883682038
|
|
104
103
|
* ```
|
|
105
104
|
*
|
|
105
|
+
* @public
|
|
106
106
|
*/
|
|
107
107
|
export declare class DescribeActionTargetsCommand extends DescribeActionTargetsCommand_base {
|
|
108
108
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -75,26 +75,26 @@ declare const DescribeHubCommand_base: {
|
|
|
75
75
|
* @throws {@link SecurityHubServiceException}
|
|
76
76
|
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
77
77
|
*
|
|
78
|
-
*
|
|
78
|
+
*
|
|
79
79
|
* @example To return details about Hub resource
|
|
80
80
|
* ```javascript
|
|
81
81
|
* // The following example returns details about the Hub resource in the calling account. The Hub resource represents the implementation of the AWS Security Hub service in the calling account.
|
|
82
82
|
* const input = {
|
|
83
|
-
*
|
|
83
|
+
* HubArn: "arn:aws:securityhub:us-west-1:123456789012:hub/default"
|
|
84
84
|
* };
|
|
85
85
|
* const command = new DescribeHubCommand(input);
|
|
86
86
|
* const response = await client.send(command);
|
|
87
|
-
* /* response
|
|
87
|
+
* /* response is
|
|
88
88
|
* {
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
89
|
+
* AutoEnableControls: true,
|
|
90
|
+
* ControlFindingGenerator: "SECURITY_CONTROL",
|
|
91
|
+
* HubArn: "arn:aws:securityhub:us-west-1:123456789012:hub/default",
|
|
92
|
+
* SubscribedAt: "2019-11-19T23:15:10.046Z"
|
|
93
93
|
* }
|
|
94
94
|
* *\/
|
|
95
|
-
* // example id: to-return-details-about-hub-resource-1675884542597
|
|
96
95
|
* ```
|
|
97
96
|
*
|
|
97
|
+
* @public
|
|
98
98
|
*/
|
|
99
99
|
export declare class DescribeHubCommand extends DescribeHubCommand_base {
|
|
100
100
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -74,27 +74,27 @@ declare const DescribeOrganizationConfigurationCommand_base: {
|
|
|
74
74
|
* @throws {@link SecurityHubServiceException}
|
|
75
75
|
* <p>Base exception class for all service exceptions from SecurityHub service.</p>
|
|
76
76
|
*
|
|
77
|
-
*
|
|
77
|
+
*
|
|
78
78
|
* @example To get information about organization configuration
|
|
79
79
|
* ```javascript
|
|
80
80
|
* // This operation provides information about the way your organization is configured in Security Hub. Only a Security Hub administrator account can invoke this operation.
|
|
81
|
-
* const input = {};
|
|
81
|
+
* const input = { /* empty *\/ };
|
|
82
82
|
* const command = new DescribeOrganizationConfigurationCommand(input);
|
|
83
83
|
* const response = await client.send(command);
|
|
84
|
-
* /* response
|
|
84
|
+
* /* response is
|
|
85
85
|
* {
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
86
|
+
* AutoEnable: false,
|
|
87
|
+
* AutoEnableStandards: "NONE",
|
|
88
|
+
* MemberAccountLimitReached: false,
|
|
89
|
+
* OrganizationConfiguration: {
|
|
90
|
+
* ConfigurationType: "CENTRAL",
|
|
91
|
+
* Status: "ENABLED"
|
|
92
92
|
* }
|
|
93
93
|
* }
|
|
94
94
|
* *\/
|
|
95
|
-
* // example id: to-get-information-about-organization-configuration-1676059786304
|
|
96
95
|
* ```
|
|
97
96
|
*
|
|
97
|
+
* @public
|
|
98
98
|
*/
|
|
99
99
|
export declare class DescribeOrganizationConfigurationCommand extends DescribeOrganizationConfigurationCommand_base {
|
|
100
100
|
/** @internal type navigation helper, not in runtime. */
|