aws-sdk-securityhub 1.15.0 → 1.16.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.
- checksums.yaml +4 -4
- data/lib/aws-sdk-securityhub.rb +1 -1
- data/lib/aws-sdk-securityhub/client.rb +87 -1
- data/lib/aws-sdk-securityhub/client_api.rb +61 -0
- data/lib/aws-sdk-securityhub/types.rb +149 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa57cc5b27c55c9b79bde6b4ebc39a5258742b75
|
4
|
+
data.tar.gz: ea62fa7c69af9f701278e78c8ecb395e86b0e8d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 330bc8bc5fa83b0b74da588b078bff64c3fedd34c912061f7385e52e1ede57b6020bcbd20d5d658fa766a2b1a887be7dbc59784eef8dcae627fc38e4c44819b5
|
7
|
+
data.tar.gz: d0a137b4c87d83e1e383f3ac3807c3b03f2ff986c438d526ac878d431641c9468671c3c5a9aff4052927a7deeb4b980cd72248ab8635af877124fe86a42fd906
|
data/lib/aws-sdk-securityhub.rb
CHANGED
@@ -1626,6 +1626,60 @@ module Aws::SecurityHub
|
|
1626
1626
|
req.send_request(options)
|
1627
1627
|
end
|
1628
1628
|
|
1629
|
+
# Returns a list of compliance standards controls.
|
1630
|
+
#
|
1631
|
+
# For each control, the results include information about whether it is
|
1632
|
+
# currently enabled, the severity, and a link to remediation
|
1633
|
+
# information.
|
1634
|
+
#
|
1635
|
+
# @option params [required, String] :standards_subscription_arn
|
1636
|
+
# The ARN of a resource that represents your subscription to a supported
|
1637
|
+
# standard.
|
1638
|
+
#
|
1639
|
+
# @option params [String] :next_token
|
1640
|
+
# For requests to get the next page of results, the pagination token
|
1641
|
+
# that was returned with the previous set of results. The initial
|
1642
|
+
# request does not include a pagination token.
|
1643
|
+
#
|
1644
|
+
# @option params [Integer] :max_results
|
1645
|
+
# The maximum number of compliance standard controls to return.
|
1646
|
+
#
|
1647
|
+
# @return [Types::DescribeStandardsControlsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1648
|
+
#
|
1649
|
+
# * {Types::DescribeStandardsControlsResponse#controls #controls} => Array<Types::StandardsControl>
|
1650
|
+
# * {Types::DescribeStandardsControlsResponse#next_token #next_token} => String
|
1651
|
+
#
|
1652
|
+
# @example Request syntax with placeholder values
|
1653
|
+
#
|
1654
|
+
# resp = client.describe_standards_controls({
|
1655
|
+
# standards_subscription_arn: "NonEmptyString", # required
|
1656
|
+
# next_token: "NextToken",
|
1657
|
+
# max_results: 1,
|
1658
|
+
# })
|
1659
|
+
#
|
1660
|
+
# @example Response structure
|
1661
|
+
#
|
1662
|
+
# resp.controls #=> Array
|
1663
|
+
# resp.controls[0].standards_control_arn #=> String
|
1664
|
+
# resp.controls[0].control_status #=> String, one of "ENABLED", "DISABLED"
|
1665
|
+
# resp.controls[0].disabled_reason #=> String
|
1666
|
+
# resp.controls[0].control_status_updated_at #=> Time
|
1667
|
+
# resp.controls[0].control_id #=> String
|
1668
|
+
# resp.controls[0].title #=> String
|
1669
|
+
# resp.controls[0].description #=> String
|
1670
|
+
# resp.controls[0].remediation_url #=> String
|
1671
|
+
# resp.controls[0].severity_rating #=> String, one of "LOW", "MEDIUM", "HIGH", "CRITICAL"
|
1672
|
+
# resp.next_token #=> String
|
1673
|
+
#
|
1674
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DescribeStandardsControls AWS API Documentation
|
1675
|
+
#
|
1676
|
+
# @overload describe_standards_controls(params = {})
|
1677
|
+
# @param [Hash] params ({})
|
1678
|
+
def describe_standards_controls(params = {}, options = {})
|
1679
|
+
req = build_request(:describe_standards_controls, params)
|
1680
|
+
req.send_request(options)
|
1681
|
+
end
|
1682
|
+
|
1629
1683
|
# Disables the integration of the specified product with Security Hub.
|
1630
1684
|
# Findings from that product are no longer sent to Security Hub after
|
1631
1685
|
# the integration is disabled.
|
@@ -4485,6 +4539,38 @@ module Aws::SecurityHub
|
|
4485
4539
|
req.send_request(options)
|
4486
4540
|
end
|
4487
4541
|
|
4542
|
+
# Used to control whether an individual compliance standard control is
|
4543
|
+
# enabled or disabled.
|
4544
|
+
#
|
4545
|
+
# @option params [required, String] :standards_control_arn
|
4546
|
+
# The ARN of the compliance standard control to enable or disable.
|
4547
|
+
#
|
4548
|
+
# @option params [String] :control_status
|
4549
|
+
# The updated status of the compliance standard control.
|
4550
|
+
#
|
4551
|
+
# @option params [String] :disabled_reason
|
4552
|
+
# A description of the reason why you are disabling a compliance
|
4553
|
+
# standard control.
|
4554
|
+
#
|
4555
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4556
|
+
#
|
4557
|
+
# @example Request syntax with placeholder values
|
4558
|
+
#
|
4559
|
+
# resp = client.update_standards_control({
|
4560
|
+
# standards_control_arn: "NonEmptyString", # required
|
4561
|
+
# control_status: "ENABLED", # accepts ENABLED, DISABLED
|
4562
|
+
# disabled_reason: "NonEmptyString",
|
4563
|
+
# })
|
4564
|
+
#
|
4565
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UpdateStandardsControl AWS API Documentation
|
4566
|
+
#
|
4567
|
+
# @overload update_standards_control(params = {})
|
4568
|
+
# @param [Hash] params ({})
|
4569
|
+
def update_standards_control(params = {}, options = {})
|
4570
|
+
req = build_request(:update_standards_control, params)
|
4571
|
+
req.send_request(options)
|
4572
|
+
end
|
4573
|
+
|
4488
4574
|
# @!endgroup
|
4489
4575
|
|
4490
4576
|
# @param params ({})
|
@@ -4498,7 +4584,7 @@ module Aws::SecurityHub
|
|
4498
4584
|
params: params,
|
4499
4585
|
config: config)
|
4500
4586
|
context[:gem_name] = 'aws-sdk-securityhub'
|
4501
|
-
context[:gem_version] = '1.
|
4587
|
+
context[:gem_version] = '1.16.0'
|
4502
4588
|
Seahorse::Client::Request.new(handlers, context)
|
4503
4589
|
end
|
4504
4590
|
|
@@ -63,6 +63,7 @@ module Aws::SecurityHub
|
|
63
63
|
Compliance = Shapes::StructureShape.new(name: 'Compliance')
|
64
64
|
ComplianceStatus = Shapes::StringShape.new(name: 'ComplianceStatus')
|
65
65
|
ContainerDetails = Shapes::StructureShape.new(name: 'ContainerDetails')
|
66
|
+
ControlStatus = Shapes::StringShape.new(name: 'ControlStatus')
|
66
67
|
CreateActionTargetRequest = Shapes::StructureShape.new(name: 'CreateActionTargetRequest')
|
67
68
|
CreateActionTargetResponse = Shapes::StructureShape.new(name: 'CreateActionTargetResponse')
|
68
69
|
CreateInsightRequest = Shapes::StructureShape.new(name: 'CreateInsightRequest')
|
@@ -89,6 +90,8 @@ module Aws::SecurityHub
|
|
89
90
|
DescribeHubResponse = Shapes::StructureShape.new(name: 'DescribeHubResponse')
|
90
91
|
DescribeProductsRequest = Shapes::StructureShape.new(name: 'DescribeProductsRequest')
|
91
92
|
DescribeProductsResponse = Shapes::StructureShape.new(name: 'DescribeProductsResponse')
|
93
|
+
DescribeStandardsControlsRequest = Shapes::StructureShape.new(name: 'DescribeStandardsControlsRequest')
|
94
|
+
DescribeStandardsControlsResponse = Shapes::StructureShape.new(name: 'DescribeStandardsControlsResponse')
|
92
95
|
DisableImportFindingsForProductRequest = Shapes::StructureShape.new(name: 'DisableImportFindingsForProductRequest')
|
93
96
|
DisableImportFindingsForProductResponse = Shapes::StructureShape.new(name: 'DisableImportFindingsForProductResponse')
|
94
97
|
DisableSecurityHubRequest = Shapes::StructureShape.new(name: 'DisableSecurityHubRequest')
|
@@ -185,9 +188,12 @@ module Aws::SecurityHub
|
|
185
188
|
ResultList = Shapes::ListShape.new(name: 'ResultList')
|
186
189
|
SecurityGroups = Shapes::ListShape.new(name: 'SecurityGroups')
|
187
190
|
Severity = Shapes::StructureShape.new(name: 'Severity')
|
191
|
+
SeverityRating = Shapes::StringShape.new(name: 'SeverityRating')
|
188
192
|
SortCriteria = Shapes::ListShape.new(name: 'SortCriteria')
|
189
193
|
SortCriterion = Shapes::StructureShape.new(name: 'SortCriterion')
|
190
194
|
SortOrder = Shapes::StringShape.new(name: 'SortOrder')
|
195
|
+
StandardsControl = Shapes::StructureShape.new(name: 'StandardsControl')
|
196
|
+
StandardsControls = Shapes::ListShape.new(name: 'StandardsControls')
|
191
197
|
StandardsInputParameterMap = Shapes::MapShape.new(name: 'StandardsInputParameterMap')
|
192
198
|
StandardsStatus = Shapes::StringShape.new(name: 'StandardsStatus')
|
193
199
|
StandardsSubscription = Shapes::StructureShape.new(name: 'StandardsSubscription')
|
@@ -219,6 +225,8 @@ module Aws::SecurityHub
|
|
219
225
|
UpdateFindingsResponse = Shapes::StructureShape.new(name: 'UpdateFindingsResponse')
|
220
226
|
UpdateInsightRequest = Shapes::StructureShape.new(name: 'UpdateInsightRequest')
|
221
227
|
UpdateInsightResponse = Shapes::StructureShape.new(name: 'UpdateInsightResponse')
|
228
|
+
UpdateStandardsControlRequest = Shapes::StructureShape.new(name: 'UpdateStandardsControlRequest')
|
229
|
+
UpdateStandardsControlResponse = Shapes::StructureShape.new(name: 'UpdateStandardsControlResponse')
|
222
230
|
VerificationState = Shapes::StringShape.new(name: 'VerificationState')
|
223
231
|
WorkflowState = Shapes::StringShape.new(name: 'WorkflowState')
|
224
232
|
|
@@ -637,6 +645,15 @@ module Aws::SecurityHub
|
|
637
645
|
DescribeProductsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
638
646
|
DescribeProductsResponse.struct_class = Types::DescribeProductsResponse
|
639
647
|
|
648
|
+
DescribeStandardsControlsRequest.add_member(:standards_subscription_arn, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location: "uri", location_name: "StandardsSubscriptionArn"))
|
649
|
+
DescribeStandardsControlsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
|
650
|
+
DescribeStandardsControlsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "MaxResults"))
|
651
|
+
DescribeStandardsControlsRequest.struct_class = Types::DescribeStandardsControlsRequest
|
652
|
+
|
653
|
+
DescribeStandardsControlsResponse.add_member(:controls, Shapes::ShapeRef.new(shape: StandardsControls, location_name: "Controls"))
|
654
|
+
DescribeStandardsControlsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
655
|
+
DescribeStandardsControlsResponse.struct_class = Types::DescribeStandardsControlsResponse
|
656
|
+
|
640
657
|
DisableImportFindingsForProductRequest.add_member(:product_subscription_arn, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location: "uri", location_name: "ProductSubscriptionArn"))
|
641
658
|
DisableImportFindingsForProductRequest.struct_class = Types::DisableImportFindingsForProductRequest
|
642
659
|
|
@@ -962,6 +979,19 @@ module Aws::SecurityHub
|
|
962
979
|
SortCriterion.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location_name: "SortOrder"))
|
963
980
|
SortCriterion.struct_class = Types::SortCriterion
|
964
981
|
|
982
|
+
StandardsControl.add_member(:standards_control_arn, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "StandardsControlArn"))
|
983
|
+
StandardsControl.add_member(:control_status, Shapes::ShapeRef.new(shape: ControlStatus, location_name: "ControlStatus"))
|
984
|
+
StandardsControl.add_member(:disabled_reason, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "DisabledReason"))
|
985
|
+
StandardsControl.add_member(:control_status_updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ControlStatusUpdatedAt"))
|
986
|
+
StandardsControl.add_member(:control_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "ControlId"))
|
987
|
+
StandardsControl.add_member(:title, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Title"))
|
988
|
+
StandardsControl.add_member(:description, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Description"))
|
989
|
+
StandardsControl.add_member(:remediation_url, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "RemediationUrl"))
|
990
|
+
StandardsControl.add_member(:severity_rating, Shapes::ShapeRef.new(shape: SeverityRating, location_name: "SeverityRating"))
|
991
|
+
StandardsControl.struct_class = Types::StandardsControl
|
992
|
+
|
993
|
+
StandardsControls.member = Shapes::ShapeRef.new(shape: StandardsControl)
|
994
|
+
|
965
995
|
StandardsInputParameterMap.key = Shapes::ShapeRef.new(shape: NonEmptyString)
|
966
996
|
StandardsInputParameterMap.value = Shapes::ShapeRef.new(shape: NonEmptyString)
|
967
997
|
|
@@ -1040,6 +1070,13 @@ module Aws::SecurityHub
|
|
1040
1070
|
|
1041
1071
|
UpdateInsightResponse.struct_class = Types::UpdateInsightResponse
|
1042
1072
|
|
1073
|
+
UpdateStandardsControlRequest.add_member(:standards_control_arn, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location: "uri", location_name: "StandardsControlArn"))
|
1074
|
+
UpdateStandardsControlRequest.add_member(:control_status, Shapes::ShapeRef.new(shape: ControlStatus, location_name: "ControlStatus"))
|
1075
|
+
UpdateStandardsControlRequest.add_member(:disabled_reason, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "DisabledReason"))
|
1076
|
+
UpdateStandardsControlRequest.struct_class = Types::UpdateStandardsControlRequest
|
1077
|
+
|
1078
|
+
UpdateStandardsControlResponse.struct_class = Types::UpdateStandardsControlResponse
|
1079
|
+
|
1043
1080
|
|
1044
1081
|
# @api private
|
1045
1082
|
API = Seahorse::Model::Api.new.tap do |api|
|
@@ -1258,6 +1295,18 @@ module Aws::SecurityHub
|
|
1258
1295
|
)
|
1259
1296
|
end)
|
1260
1297
|
|
1298
|
+
api.add_operation(:describe_standards_controls, Seahorse::Model::Operation.new.tap do |o|
|
1299
|
+
o.name = "DescribeStandardsControls"
|
1300
|
+
o.http_method = "GET"
|
1301
|
+
o.http_request_uri = "/standards/controls/{StandardsSubscriptionArn+}"
|
1302
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeStandardsControlsRequest)
|
1303
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeStandardsControlsResponse)
|
1304
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
1305
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1306
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidAccessException)
|
1307
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1308
|
+
end)
|
1309
|
+
|
1261
1310
|
api.add_operation(:disable_import_findings_for_product, Seahorse::Model::Operation.new.tap do |o|
|
1262
1311
|
o.name = "DisableImportFindingsForProduct"
|
1263
1312
|
o.http_method = "DELETE"
|
@@ -1560,6 +1609,18 @@ module Aws::SecurityHub
|
|
1560
1609
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1561
1610
|
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1562
1611
|
end)
|
1612
|
+
|
1613
|
+
api.add_operation(:update_standards_control, Seahorse::Model::Operation.new.tap do |o|
|
1614
|
+
o.name = "UpdateStandardsControl"
|
1615
|
+
o.http_method = "PATCH"
|
1616
|
+
o.http_request_uri = "/standards/control/{StandardsControlArn+}"
|
1617
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateStandardsControlRequest)
|
1618
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateStandardsControlResponse)
|
1619
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalException)
|
1620
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInputException)
|
1621
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidAccessException)
|
1622
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1623
|
+
end)
|
1563
1624
|
end
|
1564
1625
|
|
1565
1626
|
end
|
@@ -4050,6 +4050,57 @@ module Aws::SecurityHub
|
|
4050
4050
|
include Aws::Structure
|
4051
4051
|
end
|
4052
4052
|
|
4053
|
+
# @note When making an API call, you may pass DescribeStandardsControlsRequest
|
4054
|
+
# data as a hash:
|
4055
|
+
#
|
4056
|
+
# {
|
4057
|
+
# standards_subscription_arn: "NonEmptyString", # required
|
4058
|
+
# next_token: "NextToken",
|
4059
|
+
# max_results: 1,
|
4060
|
+
# }
|
4061
|
+
#
|
4062
|
+
# @!attribute [rw] standards_subscription_arn
|
4063
|
+
# The ARN of a resource that represents your subscription to a
|
4064
|
+
# supported standard.
|
4065
|
+
# @return [String]
|
4066
|
+
#
|
4067
|
+
# @!attribute [rw] next_token
|
4068
|
+
# For requests to get the next page of results, the pagination token
|
4069
|
+
# that was returned with the previous set of results. The initial
|
4070
|
+
# request does not include a pagination token.
|
4071
|
+
# @return [String]
|
4072
|
+
#
|
4073
|
+
# @!attribute [rw] max_results
|
4074
|
+
# The maximum number of compliance standard controls to return.
|
4075
|
+
# @return [Integer]
|
4076
|
+
#
|
4077
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DescribeStandardsControlsRequest AWS API Documentation
|
4078
|
+
#
|
4079
|
+
class DescribeStandardsControlsRequest < Struct.new(
|
4080
|
+
:standards_subscription_arn,
|
4081
|
+
:next_token,
|
4082
|
+
:max_results)
|
4083
|
+
include Aws::Structure
|
4084
|
+
end
|
4085
|
+
|
4086
|
+
# @!attribute [rw] controls
|
4087
|
+
# A list of compliance standards controls.
|
4088
|
+
# @return [Array<Types::StandardsControl>]
|
4089
|
+
#
|
4090
|
+
# @!attribute [rw] next_token
|
4091
|
+
# If there are more compliance standards control remaining in the
|
4092
|
+
# results, then this is the pagination token to use to request the
|
4093
|
+
# next page of compliance standard controls.
|
4094
|
+
# @return [String]
|
4095
|
+
#
|
4096
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DescribeStandardsControlsResponse AWS API Documentation
|
4097
|
+
#
|
4098
|
+
class DescribeStandardsControlsResponse < Struct.new(
|
4099
|
+
:controls,
|
4100
|
+
:next_token)
|
4101
|
+
include Aws::Structure
|
4102
|
+
end
|
4103
|
+
|
4053
4104
|
# @note When making an API call, you may pass DisableImportFindingsForProductRequest
|
4054
4105
|
# data as a hash:
|
4055
4106
|
#
|
@@ -6467,6 +6518,69 @@ module Aws::SecurityHub
|
|
6467
6518
|
include Aws::Structure
|
6468
6519
|
end
|
6469
6520
|
|
6521
|
+
# Details for an individual compliance standard control.
|
6522
|
+
#
|
6523
|
+
# @!attribute [rw] standards_control_arn
|
6524
|
+
# The ARN of the compliance standard control.
|
6525
|
+
# @return [String]
|
6526
|
+
#
|
6527
|
+
# @!attribute [rw] control_status
|
6528
|
+
# The current status of the compliance standard control. Indicates
|
6529
|
+
# whether the control is enabled or disabled. Security Hub does not
|
6530
|
+
# check against disabled controls.
|
6531
|
+
# @return [String]
|
6532
|
+
#
|
6533
|
+
# @!attribute [rw] disabled_reason
|
6534
|
+
# The reason provided for the most recent change in status for the
|
6535
|
+
# control.
|
6536
|
+
# @return [String]
|
6537
|
+
#
|
6538
|
+
# @!attribute [rw] control_status_updated_at
|
6539
|
+
# The date and time that the status of the compliance standard control
|
6540
|
+
# was most recently updated.
|
6541
|
+
# @return [Time]
|
6542
|
+
#
|
6543
|
+
# @!attribute [rw] control_id
|
6544
|
+
# The identifier of the compliance standard control.
|
6545
|
+
# @return [String]
|
6546
|
+
#
|
6547
|
+
# @!attribute [rw] title
|
6548
|
+
# The title of the compliance standard control.
|
6549
|
+
# @return [String]
|
6550
|
+
#
|
6551
|
+
# @!attribute [rw] description
|
6552
|
+
# The longer description of the compliance standard control. Provides
|
6553
|
+
# information about what the control is checking for.
|
6554
|
+
# @return [String]
|
6555
|
+
#
|
6556
|
+
# @!attribute [rw] remediation_url
|
6557
|
+
# A link to remediation information for the control in the Security
|
6558
|
+
# Hub user documentation
|
6559
|
+
# @return [String]
|
6560
|
+
#
|
6561
|
+
# @!attribute [rw] severity_rating
|
6562
|
+
# The severity of findings generated from this compliance standard
|
6563
|
+
# control.
|
6564
|
+
#
|
6565
|
+
# The finding severity is based on an assessment of how easy it would
|
6566
|
+
# be to compromise AWS resources if the compliance issue is detected.
|
6567
|
+
# @return [String]
|
6568
|
+
#
|
6569
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/StandardsControl AWS API Documentation
|
6570
|
+
#
|
6571
|
+
class StandardsControl < Struct.new(
|
6572
|
+
:standards_control_arn,
|
6573
|
+
:control_status,
|
6574
|
+
:disabled_reason,
|
6575
|
+
:control_status_updated_at,
|
6576
|
+
:control_id,
|
6577
|
+
:title,
|
6578
|
+
:description,
|
6579
|
+
:remediation_url,
|
6580
|
+
:severity_rating)
|
6581
|
+
include Aws::Structure
|
6582
|
+
end
|
6583
|
+
|
6470
6584
|
# A resource that represents your subscription to a supported standard.
|
6471
6585
|
#
|
6472
6586
|
# @!attribute [rw] standards_subscription_arn
|
@@ -7879,5 +7993,40 @@ module Aws::SecurityHub
|
|
7879
7993
|
#
|
7880
7994
|
class UpdateInsightResponse < Aws::EmptyStructure; end
|
7881
7995
|
|
7996
|
+
# @note When making an API call, you may pass UpdateStandardsControlRequest
|
7997
|
+
# data as a hash:
|
7998
|
+
#
|
7999
|
+
# {
|
8000
|
+
# standards_control_arn: "NonEmptyString", # required
|
8001
|
+
# control_status: "ENABLED", # accepts ENABLED, DISABLED
|
8002
|
+
# disabled_reason: "NonEmptyString",
|
8003
|
+
# }
|
8004
|
+
#
|
8005
|
+
# @!attribute [rw] standards_control_arn
|
8006
|
+
# The ARN of the compliance standard control to enable or disable.
|
8007
|
+
# @return [String]
|
8008
|
+
#
|
8009
|
+
# @!attribute [rw] control_status
|
8010
|
+
# The updated status of the compliance standard control.
|
8011
|
+
# @return [String]
|
8012
|
+
#
|
8013
|
+
# @!attribute [rw] disabled_reason
|
8014
|
+
# A description of the reason why you are disabling a compliance
|
8015
|
+
# standard control.
|
8016
|
+
# @return [String]
|
8017
|
+
#
|
8018
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UpdateStandardsControlRequest AWS API Documentation
|
8019
|
+
#
|
8020
|
+
class UpdateStandardsControlRequest < Struct.new(
|
8021
|
+
:standards_control_arn,
|
8022
|
+
:control_status,
|
8023
|
+
:disabled_reason)
|
8024
|
+
include Aws::Structure
|
8025
|
+
end
|
8026
|
+
|
8027
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UpdateStandardsControlResponse AWS API Documentation
|
8028
|
+
#
|
8029
|
+
class UpdateStandardsControlResponse < Aws::EmptyStructure; end
|
8030
|
+
|
7882
8031
|
end
|
7883
8032
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-securityhub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|