@aws-sdk/client-securityhub 3.316.0 → 3.319.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-types/commands/AcceptAdministratorInvitationCommand.d.ts +12 -0
- package/dist-types/commands/BatchDisableStandardsCommand.d.ts +25 -0
- package/dist-types/commands/BatchEnableStandardsCommand.d.ts +27 -0
- package/dist-types/commands/BatchImportFindingsCommand.d.ts +47 -0
- package/dist-types/commands/BatchUpdateFindingsCommand.d.ts +60 -0
- package/dist-types/commands/CreateActionTargetCommand.d.ts +18 -0
- package/dist-types/commands/CreateFindingAggregatorCommand.d.ts +26 -0
- package/dist-types/commands/CreateInsightCommand.d.ts +31 -0
- package/dist-types/commands/CreateMembersCommand.d.ts +23 -0
- package/dist-types/commands/DeclineInvitationsCommand.d.ts +19 -0
- package/dist-types/commands/DeleteActionTargetCommand.d.ts +16 -0
- package/dist-types/commands/DeleteFindingAggregatorCommand.d.ts +11 -0
- package/dist-types/commands/DeleteInsightCommand.d.ts +16 -0
- package/dist-types/commands/DeleteInvitationsCommand.d.ts +18 -0
- package/dist-types/commands/DeleteMembersCommand.d.ts +19 -0
- package/dist-types/commands/DescribeActionTargetsCommand.d.ts +24 -0
- package/dist-types/commands/DescribeHubCommand.d.ts +19 -0
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +16 -0
- package/dist-types/commands/DescribeProductsCommand.d.ts +39 -0
- package/dist-types/commands/DescribeStandardsCommand.d.ts +39 -0
- package/dist-types/commands/DescribeStandardsControlsCommand.d.ts +46 -0
- package/dist-types/commands/DisableImportFindingsForProductCommand.d.ts +11 -0
- package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +11 -0
- package/dist-types/commands/DisableSecurityHubCommand.d.ts +9 -0
- package/dist-types/commands/DisassociateFromAdministratorAccountCommand.d.ts +9 -0
- package/dist-types/commands/DisassociateMembersCommand.d.ts +14 -0
- package/dist-types/commands/EnableImportFindingsForProductCommand.d.ts +16 -0
- package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +11 -0
- package/dist-types/commands/EnableSecurityHubCommand.d.ts +14 -0
- package/dist-types/commands/GetAdministratorAccountCommand.d.ts +19 -0
- package/dist-types/commands/GetEnabledStandardsCommand.d.ts +25 -0
- package/dist-types/commands/GetFindingAggregatorCommand.d.ts +22 -0
- package/dist-types/commands/GetFindingsCommand.d.ts +111 -0
- package/dist-types/commands/GetInsightResultsCommand.d.ts +29 -0
- package/dist-types/commands/GetInsightsCommand.d.ts +38 -0
- package/dist-types/commands/GetInvitationsCountCommand.d.ts +16 -0
- package/dist-types/commands/GetMembersCommand.d.ts +37 -0
- package/dist-types/commands/InviteMembersCommand.d.ts +19 -0
- package/dist-types/commands/ListEnabledProductsForImportCommand.d.ts +17 -0
- package/dist-types/commands/ListFindingAggregatorsCommand.d.ts +18 -0
- package/dist-types/commands/ListInvitationsCommand.d.ts +21 -0
- package/dist-types/commands/ListMembersCommand.d.ts +31 -0
- package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +21 -0
- package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +44 -0
- package/dist-types/commands/ListStandardsControlAssociationsCommand.d.ts +44 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +19 -0
- package/dist-types/commands/TagResourceCommand.d.ts +15 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +14 -0
- package/dist-types/commands/UpdateActionTargetCommand.d.ts +13 -0
- package/dist-types/commands/UpdateFindingAggregatorCommand.d.ts +27 -0
- package/dist-types/commands/UpdateInsightCommand.d.ts +26 -0
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +11 -0
- package/dist-types/commands/UpdateSecurityHubConfigurationCommand.d.ts +12 -0
- package/dist-types/commands/UpdateStandardsControlCommand.d.ts +13 -0
- package/package.json +5 -5
|
@@ -57,6 +57,27 @@ export interface ListInvitationsCommandOutput extends ListInvitationsResponse, _
|
|
|
57
57
|
* account or throttling limits. The error code describes the limit exceeded.</p>
|
|
58
58
|
*
|
|
59
59
|
*
|
|
60
|
+
* @example To list membership invitations to calling account
|
|
61
|
+
* ```javascript
|
|
62
|
+
* // The following example returns a list of Security Hub member invitations sent to the calling AWS account. Only accounts that are invited manually use this operation. It's not for use by accounts that are managed through AWS Organizations.
|
|
63
|
+
* const input = undefined;
|
|
64
|
+
* const command = new ListInvitationsCommand(input);
|
|
65
|
+
* const response = await client.send(command);
|
|
66
|
+
* /* response ==
|
|
67
|
+
* {
|
|
68
|
+
* "Invitations": [
|
|
69
|
+
* {
|
|
70
|
+
* "AccountId": "123456789012",
|
|
71
|
+
* "InvitationId": "7ab938c5d52d7904ad09f9e7c20cc4eb",
|
|
72
|
+
* "InvitedAt": "2020-06-01T20:21:18.042000+00:00",
|
|
73
|
+
* "MemberStatus": "ASSOCIATED"
|
|
74
|
+
* }
|
|
75
|
+
* ]
|
|
76
|
+
* }
|
|
77
|
+
* *\/
|
|
78
|
+
* // example id: to-list-membership-invitations-to-calling-account-1678295758285
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
60
81
|
*/
|
|
61
82
|
export declare class ListInvitationsCommand extends $Command<ListInvitationsCommandInput, ListInvitationsCommandOutput, SecurityHubClientResolvedConfig> {
|
|
62
83
|
readonly input: ListInvitationsCommandInput;
|
|
@@ -59,6 +59,37 @@ export interface ListMembersCommandOutput extends ListMembersResponse, __Metadat
|
|
|
59
59
|
* account or throttling limits. The error code describes the limit exceeded.</p>
|
|
60
60
|
*
|
|
61
61
|
*
|
|
62
|
+
* @example To list member account details
|
|
63
|
+
* ```javascript
|
|
64
|
+
* // The following example returns details about member accounts for the calling Security Hub administrator account. The response includes member accounts that are managed through AWS Organizations and those that were invited manually.
|
|
65
|
+
* const input = undefined;
|
|
66
|
+
* const command = new ListMembersCommand(input);
|
|
67
|
+
* const response = await client.send(command);
|
|
68
|
+
* /* response ==
|
|
69
|
+
* {
|
|
70
|
+
* "Members": [
|
|
71
|
+
* {
|
|
72
|
+
* "AccountId": "111122223333",
|
|
73
|
+
* "AdministratorId": "123456789012",
|
|
74
|
+
* "InvitedAt": "2020-06-01T20:15:15.289000+00:00",
|
|
75
|
+
* "MasterId": "123456789012",
|
|
76
|
+
* "MemberStatus": "ASSOCIATED",
|
|
77
|
+
* "UpdatedAt": "2020-06-01T20:15:15.289000+00:00"
|
|
78
|
+
* },
|
|
79
|
+
* {
|
|
80
|
+
* "AccountId": "444455556666",
|
|
81
|
+
* "AdministratorId": "123456789012",
|
|
82
|
+
* "InvitedAt": "2020-06-01T20:15:15.289000+00:00",
|
|
83
|
+
* "MasterId": "123456789012",
|
|
84
|
+
* "MemberStatus": "ASSOCIATED",
|
|
85
|
+
* "UpdatedAt": "2020-06-01T20:15:15.289000+00:00"
|
|
86
|
+
* }
|
|
87
|
+
* ]
|
|
88
|
+
* }
|
|
89
|
+
* *\/
|
|
90
|
+
* // example id: to-list-member-account-details-1678385639113
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
62
93
|
*/
|
|
63
94
|
export declare class ListMembersCommand extends $Command<ListMembersCommandInput, ListMembersCommandOutput, SecurityHubClientResolvedConfig> {
|
|
64
95
|
readonly input: ListMembersCommandInput;
|
|
@@ -56,6 +56,27 @@ export interface ListOrganizationAdminAccountsCommandOutput extends ListOrganiza
|
|
|
56
56
|
* account or throttling limits. The error code describes the limit exceeded.</p>
|
|
57
57
|
*
|
|
58
58
|
*
|
|
59
|
+
* @example To list administrator acccounts for an organization
|
|
60
|
+
* ```javascript
|
|
61
|
+
* // The following example lists the Security Hub administrator accounts for an organization. Only the organization management account can call this operation.
|
|
62
|
+
* const input = undefined;
|
|
63
|
+
* const command = new ListOrganizationAdminAccountsCommand(input);
|
|
64
|
+
* const response = await client.send(command);
|
|
65
|
+
* /* response ==
|
|
66
|
+
* {
|
|
67
|
+
* "AdminAccounts": [
|
|
68
|
+
* {
|
|
69
|
+
* "AccountId": "777788889999"
|
|
70
|
+
* },
|
|
71
|
+
* {
|
|
72
|
+
* "Status": "ENABLED"
|
|
73
|
+
* }
|
|
74
|
+
* ]
|
|
75
|
+
* }
|
|
76
|
+
* *\/
|
|
77
|
+
* // example id: to-list-administrator-acccounts-for-an-organization-1678386548110
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
59
80
|
*/
|
|
60
81
|
export declare class ListOrganizationAdminAccountsCommand extends $Command<ListOrganizationAdminAccountsCommandInput, ListOrganizationAdminAccountsCommandOutput, SecurityHubClientResolvedConfig> {
|
|
61
82
|
readonly input: ListOrganizationAdminAccountsCommandInput;
|
|
@@ -58,6 +58,50 @@ export interface ListSecurityControlDefinitionsCommandOutput extends ListSecurit
|
|
|
58
58
|
* account or throttling limits. The error code describes the limit exceeded.</p>
|
|
59
59
|
*
|
|
60
60
|
*
|
|
61
|
+
* @example To list security controls that apply to a standard
|
|
62
|
+
* ```javascript
|
|
63
|
+
* // The following example lists security controls that apply to a specified Security Hub standard.
|
|
64
|
+
* const input = {
|
|
65
|
+
* "MaxResults": 3,
|
|
66
|
+
* "NextToken": "NULL",
|
|
67
|
+
* "StandardsArn": "arn:aws:securityhub:::standards/aws-foundational-security-best-practices/v/1.0.0"
|
|
68
|
+
* };
|
|
69
|
+
* const command = new ListSecurityControlDefinitionsCommand(input);
|
|
70
|
+
* const response = await client.send(command);
|
|
71
|
+
* /* response ==
|
|
72
|
+
* {
|
|
73
|
+
* "NextToken": "U2FsdGVkX1...",
|
|
74
|
+
* "SecurityControlDefinitions": [
|
|
75
|
+
* {
|
|
76
|
+
* "CurrentRegionAvailability": "AVAILABLE",
|
|
77
|
+
* "Description": "This AWS control checks whether ACM Certificates in your account are marked for expiration within a specified time period. Certificates provided by ACM are automatically renewed. ACM does not automatically renew certificates that you import.",
|
|
78
|
+
* "RemediationUrl": "https://docs.aws.amazon.com/console/securityhub/ACM.1/remediation",
|
|
79
|
+
* "SecurityControlId": "ACM.1",
|
|
80
|
+
* "SeverityRating": "MEDIUM",
|
|
81
|
+
* "Title": "Imported and ACM-issued certificates should be renewed after a specified time period"
|
|
82
|
+
* },
|
|
83
|
+
* {
|
|
84
|
+
* "CurrentRegionAvailability": "AVAILABLE",
|
|
85
|
+
* "Description": "This control checks whether all stages of Amazon API Gateway REST and WebSocket APIs have logging enabled. The control fails if logging is not enabled for all methods of a stage or if loggingLevel is neither ERROR nor INFO.",
|
|
86
|
+
* "RemediationUrl": "https://docs.aws.amazon.com/console/securityhub/APIGateway.1/remediation",
|
|
87
|
+
* "SecurityControlId": "APIGateway.1",
|
|
88
|
+
* "SeverityRating": "MEDIUM",
|
|
89
|
+
* "Title": "API Gateway REST and WebSocket API execution logging should be enabled"
|
|
90
|
+
* },
|
|
91
|
+
* {
|
|
92
|
+
* "CurrentRegionAvailability": "AVAILABLE",
|
|
93
|
+
* "Description": "This control checks whether Amazon API Gateway REST API stages have SSL certificates configured that backend systems can use to authenticate that incoming requests are from the API Gateway.",
|
|
94
|
+
* "RemediationUrl": "https://docs.aws.amazon.com/console/securityhub/APIGateway.2/remediation",
|
|
95
|
+
* "SecurityControlId": "APIGateway.2",
|
|
96
|
+
* "SeverityRating": "MEDIUM",
|
|
97
|
+
* "Title": "API Gateway REST API stages should be configured to use SSL certificates for backend authentication"
|
|
98
|
+
* }
|
|
99
|
+
* ]
|
|
100
|
+
* }
|
|
101
|
+
* *\/
|
|
102
|
+
* // example id: to-list-security-controls-that-apply-to-a-standard-1678386912894
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
61
105
|
*/
|
|
62
106
|
export declare class ListSecurityControlDefinitionsCommand extends $Command<ListSecurityControlDefinitionsCommandInput, ListSecurityControlDefinitionsCommandOutput, SecurityHubClientResolvedConfig> {
|
|
63
107
|
readonly input: ListSecurityControlDefinitionsCommandInput;
|
|
@@ -58,6 +58,50 @@ export interface ListStandardsControlAssociationsCommandOutput extends ListStand
|
|
|
58
58
|
* account or throttling limits. The error code describes the limit exceeded.</p>
|
|
59
59
|
*
|
|
60
60
|
*
|
|
61
|
+
* @example To say whether standard
|
|
62
|
+
* ```javascript
|
|
63
|
+
* // The following example specifies whether a control is currently enabled or disabled in each enabled standard in the calling account. The response also provides other details about the control.
|
|
64
|
+
* const input = {
|
|
65
|
+
* "SecurityControlId": "S3.1"
|
|
66
|
+
* };
|
|
67
|
+
* const command = new ListStandardsControlAssociationsCommand(input);
|
|
68
|
+
* const response = await client.send(command);
|
|
69
|
+
* /* response ==
|
|
70
|
+
* {
|
|
71
|
+
* "StandardsControlAssociationSummaries": [
|
|
72
|
+
* {
|
|
73
|
+
* "AssociationStatus": "ENABLED",
|
|
74
|
+
* "RelatedRequirements": [
|
|
75
|
+
* "PCI DSS 1.2.1",
|
|
76
|
+
* "PCI DSS 1.3.1",
|
|
77
|
+
* "PCI DSS 1.3.2",
|
|
78
|
+
* "PCI DSS 1.3.4",
|
|
79
|
+
* "PCI DSS 1.3.6"
|
|
80
|
+
* ],
|
|
81
|
+
* "SecurityControlArn": "arn:aws:securityhub:us-west-2:110479873537:security-control/S3.1",
|
|
82
|
+
* "SecurityControlId": "S3.1",
|
|
83
|
+
* "StandardsArn": "arn:aws:securityhub:us-west-2::standards/pci-dss/v/3.2.1",
|
|
84
|
+
* "StandardsControlDescription": "This AWS control checks whether the following public access block settings are configured from account level: ignorePublicAcls: True, blockPublicPolicy: True, blockPublicAcls: True, restrictPublicBuckets: True.",
|
|
85
|
+
* "StandardsControlTitle": "S3 Block Public Access setting should be enabled",
|
|
86
|
+
* "UpdatedAt": "2022-01-13T23:03:46.648000+00:00"
|
|
87
|
+
* },
|
|
88
|
+
* {
|
|
89
|
+
* "AssociationStatus": "DISABLED",
|
|
90
|
+
* "RelatedRequirements": [],
|
|
91
|
+
* "SecurityControlArn": "arn:aws:securityhub:us-west-2:110479873537:security-control/S3.1",
|
|
92
|
+
* "SecurityControlId": "S3.1",
|
|
93
|
+
* "StandardsArn": "arn:aws:securityhub:us-west-2::standards/aws-foundational-security-best-practices/v/1.0.0",
|
|
94
|
+
* "StandardsControlDescription": "This AWS control checks whether the following public access block settings are configured from account level: ignorePublicAcls: True, blockPublicPolicy: True, blockPublicAcls: True, restrictPublicBuckets: True.",
|
|
95
|
+
* "StandardsControlTitle": "S3 Block Public Access setting should be enabled",
|
|
96
|
+
* "UpdatedAt": "2022-08-12T22:59:04.924000+00:00",
|
|
97
|
+
* "UpdatedReason": "Not relevant to environment"
|
|
98
|
+
* }
|
|
99
|
+
* ]
|
|
100
|
+
* }
|
|
101
|
+
* *\/
|
|
102
|
+
* // example id: to-say-whether-standard-1678389297986
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
61
105
|
*/
|
|
62
106
|
export declare class ListStandardsControlAssociationsCommand extends $Command<ListStandardsControlAssociationsCommandInput, ListStandardsControlAssociationsCommandOutput, SecurityHubClientResolvedConfig> {
|
|
63
107
|
readonly input: ListStandardsControlAssociationsCommandInput;
|
|
@@ -50,6 +50,25 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
50
50
|
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
51
51
|
*
|
|
52
52
|
*
|
|
53
|
+
* @example To get a list of tags for a resource
|
|
54
|
+
* ```javascript
|
|
55
|
+
* // The following example returns a list of tags associated with the specified resource.
|
|
56
|
+
* const input = {
|
|
57
|
+
* "ResourceArn": "arn:aws:securityhub:us-west-1:123456789012:hub/default"
|
|
58
|
+
* };
|
|
59
|
+
* const command = new ListTagsForResourceCommand(input);
|
|
60
|
+
* const response = await client.send(command);
|
|
61
|
+
* /* response ==
|
|
62
|
+
* {
|
|
63
|
+
* "Tags": {
|
|
64
|
+
* "Area": "USMidwest",
|
|
65
|
+
* "Department": "Operations"
|
|
66
|
+
* }
|
|
67
|
+
* }
|
|
68
|
+
* *\/
|
|
69
|
+
* // example id: to-get-a-list-of-tags-for-a-resource-1678477883796
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
53
72
|
*/
|
|
54
73
|
export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, SecurityHubClientResolvedConfig> {
|
|
55
74
|
readonly input: ListTagsForResourceCommandInput;
|
|
@@ -53,6 +53,21 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
53
53
|
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
54
54
|
*
|
|
55
55
|
*
|
|
56
|
+
* @example To tag a resource
|
|
57
|
+
* ```javascript
|
|
58
|
+
* // The following example adds the 'Department' and 'Area' tags to the specified resource.
|
|
59
|
+
* const input = {
|
|
60
|
+
* "ResourceArn": "arn:aws:securityhub:us-west-1:123456789012:hub/default",
|
|
61
|
+
* "Tags": {
|
|
62
|
+
* "Area": "USMidwest",
|
|
63
|
+
* "Department": "Operations"
|
|
64
|
+
* }
|
|
65
|
+
* };
|
|
66
|
+
* const command = new TagResourceCommand(input);
|
|
67
|
+
* await client.send(command);
|
|
68
|
+
* // example id: to-tag-a-resource-1678478687320
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
56
71
|
*/
|
|
57
72
|
export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, SecurityHubClientResolvedConfig> {
|
|
58
73
|
readonly input: TagResourceCommandInput;
|
|
@@ -53,6 +53,20 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
53
53
|
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
54
54
|
*
|
|
55
55
|
*
|
|
56
|
+
* @example To remove tags from a resource
|
|
57
|
+
* ```javascript
|
|
58
|
+
* // The following example removes the 'Department' tag from the specified resource.
|
|
59
|
+
* const input = {
|
|
60
|
+
* "ResourceArn": "arn:aws:securityhub:us-west-1:123456789012:hub/default",
|
|
61
|
+
* "TagKeys": [
|
|
62
|
+
* "Department"
|
|
63
|
+
* ]
|
|
64
|
+
* };
|
|
65
|
+
* const command = new UntagResourceCommand(input);
|
|
66
|
+
* await client.send(command);
|
|
67
|
+
* // example id: to-remove-tags-from-a-resource-1678478903748
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
56
70
|
*/
|
|
57
71
|
export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, SecurityHubClientResolvedConfig> {
|
|
58
72
|
readonly input: UntagResourceCommandInput;
|
|
@@ -55,6 +55,19 @@ export interface UpdateActionTargetCommandOutput extends UpdateActionTargetRespo
|
|
|
55
55
|
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
56
56
|
*
|
|
57
57
|
*
|
|
58
|
+
* @example To update the name and description of a custom action target
|
|
59
|
+
* ```javascript
|
|
60
|
+
* // The following example updates the name and description of a custom action target in Security Hub. You can create custom actions to automatically respond to Security Hub findings using Amazon EventBridge.
|
|
61
|
+
* const input = {
|
|
62
|
+
* "ActionTargetArn": "arn:aws:securityhub:us-west-1:123456789012:action/custom/Remediation",
|
|
63
|
+
* "Description": "Sends specified findings to customer service chat",
|
|
64
|
+
* "Name": "Chat custom action"
|
|
65
|
+
* };
|
|
66
|
+
* const command = new UpdateActionTargetCommand(input);
|
|
67
|
+
* await client.send(command);
|
|
68
|
+
* // example id: to-update-the-name-and-description-of-a-custom-action-target-1678814873015
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
58
71
|
*/
|
|
59
72
|
export declare class UpdateActionTargetCommand extends $Command<UpdateActionTargetCommandInput, UpdateActionTargetCommandOutput, SecurityHubClientResolvedConfig> {
|
|
60
73
|
readonly input: UpdateActionTargetCommandInput;
|
|
@@ -66,6 +66,33 @@ export interface UpdateFindingAggregatorCommandOutput extends UpdateFindingAggre
|
|
|
66
66
|
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
67
67
|
*
|
|
68
68
|
*
|
|
69
|
+
* @example To update cross-Region aggregation settings
|
|
70
|
+
* ```javascript
|
|
71
|
+
* // The following example updates the cross-Region aggregation configuration. You use this operation to change the list of linked Regions and the treatment of new Regions. However, you cannot use this operation to change the aggregation Region.
|
|
72
|
+
* const input = {
|
|
73
|
+
* "FindingAggregatorArn": "arn:aws:securityhub:us-east-1:123456789012:finding-aggregator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
74
|
+
* "RegionLinkingMode": "SPECIFIED_REGIONS",
|
|
75
|
+
* "Regions": [
|
|
76
|
+
* "us-west-1",
|
|
77
|
+
* "us-west-2"
|
|
78
|
+
* ]
|
|
79
|
+
* };
|
|
80
|
+
* const command = new UpdateFindingAggregatorCommand(input);
|
|
81
|
+
* const response = await client.send(command);
|
|
82
|
+
* /* response ==
|
|
83
|
+
* {
|
|
84
|
+
* "FindingAggregationRegion": "us-east-1",
|
|
85
|
+
* "FindingAggregatorArn": "arn:aws:securityhub:us-east-1:123456789012:finding-aggregator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
86
|
+
* "RegionLinkingMode": "SPECIFIED_REGIONS",
|
|
87
|
+
* "Regions": [
|
|
88
|
+
* "us-west-1",
|
|
89
|
+
* "us-west-2"
|
|
90
|
+
* ]
|
|
91
|
+
* }
|
|
92
|
+
* *\/
|
|
93
|
+
* // example id: to-update-cross-region-aggregation-settings-1678815536396
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
69
96
|
*/
|
|
70
97
|
export declare class UpdateFindingAggregatorCommand extends $Command<UpdateFindingAggregatorCommandInput, UpdateFindingAggregatorCommandOutput, SecurityHubClientResolvedConfig> {
|
|
71
98
|
readonly input: UpdateFindingAggregatorCommandInput;
|
|
@@ -310,6 +310,32 @@ export interface UpdateInsightCommandOutput extends UpdateInsightResponse, __Met
|
|
|
310
310
|
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
311
311
|
*
|
|
312
312
|
*
|
|
313
|
+
* @example To update an insight
|
|
314
|
+
* ```javascript
|
|
315
|
+
* // The following example updates the specified Security Hub insight.
|
|
316
|
+
* const input = {
|
|
317
|
+
* "Filters": {
|
|
318
|
+
* "ResourceType": [
|
|
319
|
+
* {
|
|
320
|
+
* "Comparison": "EQUALS",
|
|
321
|
+
* "Value": "AwsIamRole"
|
|
322
|
+
* }
|
|
323
|
+
* ],
|
|
324
|
+
* "SeverityLabel": [
|
|
325
|
+
* {
|
|
326
|
+
* "Comparison": "EQUALS",
|
|
327
|
+
* "Value": "HIGH"
|
|
328
|
+
* }
|
|
329
|
+
* ]
|
|
330
|
+
* },
|
|
331
|
+
* "InsightArn": "arn:aws:securityhub:us-west-1:123456789012:insight/123456789012/custom/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
332
|
+
* "Name": "High severity role findings"
|
|
333
|
+
* };
|
|
334
|
+
* const command = new UpdateInsightCommand(input);
|
|
335
|
+
* await client.send(command);
|
|
336
|
+
* // example id: to-update-an-insight-1678816280498
|
|
337
|
+
* ```
|
|
338
|
+
*
|
|
313
339
|
*/
|
|
314
340
|
export declare class UpdateInsightCommand extends $Command<UpdateInsightCommandInput, UpdateInsightCommandOutput, SecurityHubClientResolvedConfig> {
|
|
315
341
|
readonly input: UpdateInsightCommandInput;
|
|
@@ -56,6 +56,17 @@ export interface UpdateOrganizationConfigurationCommandOutput extends UpdateOrga
|
|
|
56
56
|
* account or throttling limits. The error code describes the limit exceeded.</p>
|
|
57
57
|
*
|
|
58
58
|
*
|
|
59
|
+
* @example To update organization configuration
|
|
60
|
+
* ```javascript
|
|
61
|
+
* // The following example updates the configuration for an organization so that Security Hub is automatically activated for new member accounts. Only the Security Hub administrator account can call this operation.
|
|
62
|
+
* const input = {
|
|
63
|
+
* "AutoEnable": true
|
|
64
|
+
* };
|
|
65
|
+
* const command = new UpdateOrganizationConfigurationCommand(input);
|
|
66
|
+
* await client.send(command);
|
|
67
|
+
* // example id: to-update-organization-configuration-1678911630846
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
59
70
|
*/
|
|
60
71
|
export declare class UpdateOrganizationConfigurationCommand extends $Command<UpdateOrganizationConfigurationCommandInput, UpdateOrganizationConfigurationCommandOutput, SecurityHubClientResolvedConfig> {
|
|
61
72
|
readonly input: UpdateOrganizationConfigurationCommandInput;
|
|
@@ -58,6 +58,18 @@ export interface UpdateSecurityHubConfigurationCommandOutput extends UpdateSecur
|
|
|
58
58
|
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
59
59
|
*
|
|
60
60
|
*
|
|
61
|
+
* @example To update Security Hub settings
|
|
62
|
+
* ```javascript
|
|
63
|
+
* // The following example updates Security Hub settings to turn on consolidated control findings, and to automatically enable new controls in enabled standards.
|
|
64
|
+
* const input = {
|
|
65
|
+
* "AutoEnableControls": true,
|
|
66
|
+
* "ControlFindingGenerator": "SECURITY_CONTROL"
|
|
67
|
+
* };
|
|
68
|
+
* const command = new UpdateSecurityHubConfigurationCommand(input);
|
|
69
|
+
* await client.send(command);
|
|
70
|
+
* // example id: to-update-security-hub-settings-1678912194496
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
61
73
|
*/
|
|
62
74
|
export declare class UpdateSecurityHubConfigurationCommand extends $Command<UpdateSecurityHubConfigurationCommandInput, UpdateSecurityHubConfigurationCommandOutput, SecurityHubClientResolvedConfig> {
|
|
63
75
|
readonly input: UpdateSecurityHubConfigurationCommandInput;
|
|
@@ -56,6 +56,19 @@ export interface UpdateStandardsControlCommandOutput extends UpdateStandardsCont
|
|
|
56
56
|
* <p>The request was rejected because we can't find the specified resource.</p>
|
|
57
57
|
*
|
|
58
58
|
*
|
|
59
|
+
* @example To update the enablement status of a standard control
|
|
60
|
+
* ```javascript
|
|
61
|
+
* // The following example disables the specified control in the specified security standard.
|
|
62
|
+
* const input = {
|
|
63
|
+
* "ControlStatus": "DISABLED",
|
|
64
|
+
* "DisabledReason": "Not applicable to my service",
|
|
65
|
+
* "StandardsControlArn": "arn:aws:securityhub:us-west-1:123456789012:control/pci-dss/v/3.2.1/PCI.AutoScaling.1"
|
|
66
|
+
* };
|
|
67
|
+
* const command = new UpdateStandardsControlCommand(input);
|
|
68
|
+
* await client.send(command);
|
|
69
|
+
* // example id: to-update-the-enablement-status-of-a-standard-control-1678912506444
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
59
72
|
*/
|
|
60
73
|
export declare class UpdateStandardsControlCommand extends $Command<UpdateStandardsControlCommandInput, UpdateStandardsControlCommandOutput, SecurityHubClientResolvedConfig> {
|
|
61
74
|
readonly input: UpdateStandardsControlCommandInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-securityhub",
|
|
3
3
|
"description": "AWS SDK for JavaScript Securityhub Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.319.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
49
|
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
50
|
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|