aws-sdk-securityhub 1.90.0 → 1.91.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-securityhub/client.rb +9 -8
- data/lib/aws-sdk-securityhub/client_api.rb +27 -0
- data/lib/aws-sdk-securityhub/types.rb +122 -4
- data/lib/aws-sdk-securityhub.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5711ac047fe6550301be8891499185af700b529c304fe8a6ab774c5db77ec369
|
4
|
+
data.tar.gz: 456b59d3a98611f196a1befe3c7b4305f13780d4b3149da57aca07df6afb60d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 772a55939b1b62429f8d71cd552a44fcee093e0da1458bec5f081b11ee47cf8cc1960c6578c114fc09ee15f719854a05a3f80e6f687c06229f22f1e60c073faa
|
7
|
+
data.tar.gz: 0e8eda805fc735e599ba0e5db294ee26efeb00c8d28113e87d83f533ee5f111c45d450bac32d8d904f2f725d4babac09ca8c29fabd1d1261875ccf995500b596
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.91.0 (2023-08-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Added Inspector Lambda code Vulnerability section to ASFF, including GeneratorDetails, EpssScore, ExploitAvailable, and CodeVulnerabilities.
|
8
|
+
|
4
9
|
1.90.0 (2023-07-25)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.91.0
|
@@ -3561,8 +3561,9 @@ module Aws::SecurityHub
|
|
3561
3561
|
|
3562
3562
|
# Deletes the specified member accounts from Security Hub.
|
3563
3563
|
#
|
3564
|
-
#
|
3565
|
-
#
|
3564
|
+
# You can invoke this API only to delete accounts that became members
|
3565
|
+
# through invitation. You can't invoke this API to delete accounts that
|
3566
|
+
# belong to an Organizations organization.
|
3566
3567
|
#
|
3567
3568
|
# @option params [required, Array<String>] :account_ids
|
3568
3569
|
# The list of account IDs for the member accounts to delete.
|
@@ -4143,12 +4144,12 @@ module Aws::SecurityHub
|
|
4143
4144
|
req.send_request(options)
|
4144
4145
|
end
|
4145
4146
|
|
4146
|
-
# Disables Security Hub in your account only in the current
|
4147
|
-
# disable Security Hub in all Regions, you must
|
4148
|
-
# Region where you have enabled Security Hub.
|
4147
|
+
# Disables Security Hub in your account only in the current Amazon Web
|
4148
|
+
# Services Region. To disable Security Hub in all Regions, you must
|
4149
|
+
# submit one request per Region where you have enabled Security Hub.
|
4149
4150
|
#
|
4150
|
-
#
|
4151
|
-
#
|
4151
|
+
# You can't disable Security Hub in an account that is currently the
|
4152
|
+
# Security Hub administrator.
|
4152
4153
|
#
|
4153
4154
|
# When you disable Security Hub, your existing findings and insights and
|
4154
4155
|
# any Security Hub configuration settings are deleted after 90 days and
|
@@ -8702,7 +8703,7 @@ module Aws::SecurityHub
|
|
8702
8703
|
params: params,
|
8703
8704
|
config: config)
|
8704
8705
|
context[:gem_name] = 'aws-sdk-securityhub'
|
8705
|
-
context[:gem_version] = '1.
|
8706
|
+
context[:gem_version] = '1.91.0'
|
8706
8707
|
Seahorse::Client::Request.new(handlers, context)
|
8707
8708
|
end
|
8708
8709
|
|
@@ -693,6 +693,7 @@ module Aws::SecurityHub
|
|
693
693
|
City = Shapes::StructureShape.new(name: 'City')
|
694
694
|
ClassificationResult = Shapes::StructureShape.new(name: 'ClassificationResult')
|
695
695
|
ClassificationStatus = Shapes::StructureShape.new(name: 'ClassificationStatus')
|
696
|
+
CodeVulnerabilitiesFilePath = Shapes::StructureShape.new(name: 'CodeVulnerabilitiesFilePath')
|
696
697
|
Compliance = Shapes::StructureShape.new(name: 'Compliance')
|
697
698
|
ComplianceStatus = Shapes::StringShape.new(name: 'ComplianceStatus')
|
698
699
|
ContainerDetails = Shapes::StructureShape.new(name: 'ContainerDetails')
|
@@ -784,6 +785,7 @@ module Aws::SecurityHub
|
|
784
785
|
FirewallPolicyStatelessCustomActionsList = Shapes::ListShape.new(name: 'FirewallPolicyStatelessCustomActionsList')
|
785
786
|
FirewallPolicyStatelessRuleGroupReferencesDetails = Shapes::StructureShape.new(name: 'FirewallPolicyStatelessRuleGroupReferencesDetails')
|
786
787
|
FirewallPolicyStatelessRuleGroupReferencesList = Shapes::ListShape.new(name: 'FirewallPolicyStatelessRuleGroupReferencesList')
|
788
|
+
GeneratorDetails = Shapes::StructureShape.new(name: 'GeneratorDetails')
|
787
789
|
GeoLocation = Shapes::StructureShape.new(name: 'GeoLocation')
|
788
790
|
GetAdministratorAccountRequest = Shapes::StructureShape.new(name: 'GetAdministratorAccountRequest')
|
789
791
|
GetAdministratorAccountResponse = Shapes::StructureShape.new(name: 'GetAdministratorAccountResponse')
|
@@ -1049,6 +1051,9 @@ module Aws::SecurityHub
|
|
1049
1051
|
VpcInfoIpv6CidrBlockSetList = Shapes::ListShape.new(name: 'VpcInfoIpv6CidrBlockSetList')
|
1050
1052
|
VpcInfoPeeringOptionsDetails = Shapes::StructureShape.new(name: 'VpcInfoPeeringOptionsDetails')
|
1051
1053
|
Vulnerability = Shapes::StructureShape.new(name: 'Vulnerability')
|
1054
|
+
VulnerabilityCodeVulnerabilities = Shapes::StructureShape.new(name: 'VulnerabilityCodeVulnerabilities')
|
1055
|
+
VulnerabilityCodeVulnerabilitiesList = Shapes::ListShape.new(name: 'VulnerabilityCodeVulnerabilitiesList')
|
1056
|
+
VulnerabilityExploitAvailable = Shapes::StringShape.new(name: 'VulnerabilityExploitAvailable')
|
1052
1057
|
VulnerabilityFixAvailable = Shapes::StringShape.new(name: 'VulnerabilityFixAvailable')
|
1053
1058
|
VulnerabilityList = Shapes::ListShape.new(name: 'VulnerabilityList')
|
1054
1059
|
VulnerabilityVendor = Shapes::StructureShape.new(name: 'VulnerabilityVendor')
|
@@ -4314,6 +4319,7 @@ module Aws::SecurityHub
|
|
4314
4319
|
AwsSecurityFinding.add_member(:action, Shapes::ShapeRef.new(shape: Action, location_name: "Action"))
|
4315
4320
|
AwsSecurityFinding.add_member(:finding_provider_fields, Shapes::ShapeRef.new(shape: FindingProviderFields, location_name: "FindingProviderFields"))
|
4316
4321
|
AwsSecurityFinding.add_member(:sample, Shapes::ShapeRef.new(shape: Boolean, location_name: "Sample"))
|
4322
|
+
AwsSecurityFinding.add_member(:generator_details, Shapes::ShapeRef.new(shape: GeneratorDetails, location_name: "GeneratorDetails"))
|
4317
4323
|
AwsSecurityFinding.struct_class = Types::AwsSecurityFinding
|
4318
4324
|
|
4319
4325
|
AwsSecurityFindingFilters.add_member(:product_arn, Shapes::ShapeRef.new(shape: StringFilterList, location_name: "ProductArn"))
|
@@ -4834,6 +4840,12 @@ module Aws::SecurityHub
|
|
4834
4840
|
ClassificationStatus.add_member(:reason, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Reason"))
|
4835
4841
|
ClassificationStatus.struct_class = Types::ClassificationStatus
|
4836
4842
|
|
4843
|
+
CodeVulnerabilitiesFilePath.add_member(:end_line, Shapes::ShapeRef.new(shape: Integer, location_name: "EndLine"))
|
4844
|
+
CodeVulnerabilitiesFilePath.add_member(:file_name, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "FileName"))
|
4845
|
+
CodeVulnerabilitiesFilePath.add_member(:file_path, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "FilePath"))
|
4846
|
+
CodeVulnerabilitiesFilePath.add_member(:start_line, Shapes::ShapeRef.new(shape: Integer, location_name: "StartLine"))
|
4847
|
+
CodeVulnerabilitiesFilePath.struct_class = Types::CodeVulnerabilitiesFilePath
|
4848
|
+
|
4837
4849
|
Compliance.add_member(:status, Shapes::ShapeRef.new(shape: ComplianceStatus, location_name: "Status"))
|
4838
4850
|
Compliance.add_member(:related_requirements, Shapes::ShapeRef.new(shape: RelatedRequirementsList, location_name: "RelatedRequirements"))
|
4839
4851
|
Compliance.add_member(:status_reasons, Shapes::ShapeRef.new(shape: StatusReasonsList, location_name: "StatusReasons"))
|
@@ -5143,6 +5155,11 @@ module Aws::SecurityHub
|
|
5143
5155
|
|
5144
5156
|
FirewallPolicyStatelessRuleGroupReferencesList.member = Shapes::ShapeRef.new(shape: FirewallPolicyStatelessRuleGroupReferencesDetails)
|
5145
5157
|
|
5158
|
+
GeneratorDetails.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Name"))
|
5159
|
+
GeneratorDetails.add_member(:description, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Description"))
|
5160
|
+
GeneratorDetails.add_member(:labels, Shapes::ShapeRef.new(shape: TypeList, location_name: "Labels"))
|
5161
|
+
GeneratorDetails.struct_class = Types::GeneratorDetails
|
5162
|
+
|
5146
5163
|
GeoLocation.add_member(:lon, Shapes::ShapeRef.new(shape: Double, location_name: "Lon"))
|
5147
5164
|
GeoLocation.add_member(:lat, Shapes::ShapeRef.new(shape: Double, location_name: "Lat"))
|
5148
5165
|
GeoLocation.struct_class = Types::GeoLocation
|
@@ -6162,8 +6179,18 @@ module Aws::SecurityHub
|
|
6162
6179
|
Vulnerability.add_member(:vendor, Shapes::ShapeRef.new(shape: VulnerabilityVendor, location_name: "Vendor"))
|
6163
6180
|
Vulnerability.add_member(:reference_urls, Shapes::ShapeRef.new(shape: StringList, location_name: "ReferenceUrls"))
|
6164
6181
|
Vulnerability.add_member(:fix_available, Shapes::ShapeRef.new(shape: VulnerabilityFixAvailable, location_name: "FixAvailable"))
|
6182
|
+
Vulnerability.add_member(:epss_score, Shapes::ShapeRef.new(shape: Double, location_name: "EpssScore"))
|
6183
|
+
Vulnerability.add_member(:exploit_available, Shapes::ShapeRef.new(shape: VulnerabilityExploitAvailable, location_name: "ExploitAvailable"))
|
6184
|
+
Vulnerability.add_member(:code_vulnerabilities, Shapes::ShapeRef.new(shape: VulnerabilityCodeVulnerabilitiesList, location_name: "CodeVulnerabilities"))
|
6165
6185
|
Vulnerability.struct_class = Types::Vulnerability
|
6166
6186
|
|
6187
|
+
VulnerabilityCodeVulnerabilities.add_member(:cwes, Shapes::ShapeRef.new(shape: TypeList, location_name: "Cwes"))
|
6188
|
+
VulnerabilityCodeVulnerabilities.add_member(:file_path, Shapes::ShapeRef.new(shape: CodeVulnerabilitiesFilePath, location_name: "FilePath"))
|
6189
|
+
VulnerabilityCodeVulnerabilities.add_member(:source_arn, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "SourceArn"))
|
6190
|
+
VulnerabilityCodeVulnerabilities.struct_class = Types::VulnerabilityCodeVulnerabilities
|
6191
|
+
|
6192
|
+
VulnerabilityCodeVulnerabilitiesList.member = Shapes::ShapeRef.new(shape: VulnerabilityCodeVulnerabilities)
|
6193
|
+
|
6167
6194
|
VulnerabilityList.member = Shapes::ShapeRef.new(shape: Vulnerability)
|
6168
6195
|
|
6169
6196
|
VulnerabilityVendor.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "Name"))
|
@@ -17721,6 +17721,15 @@ module Aws::SecurityHub
|
|
17721
17721
|
# Indicates whether the finding is a sample finding.
|
17722
17722
|
# @return [Boolean]
|
17723
17723
|
#
|
17724
|
+
# @!attribute [rw] generator_details
|
17725
|
+
# Provides metadata for the Amazon CodeGuru detector associated with a
|
17726
|
+
# finding. This field pertains to findings that relate to Lambda
|
17727
|
+
# functions. Amazon Inspector identifies policy violations and
|
17728
|
+
# vulnerabilities in Lambda function code based on internal detectors
|
17729
|
+
# developed in collaboration with Amazon CodeGuru. Security Hub
|
17730
|
+
# receives those findings.
|
17731
|
+
# @return [Types::GeneratorDetails]
|
17732
|
+
#
|
17724
17733
|
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsSecurityFinding AWS API Documentation
|
17725
17734
|
#
|
17726
17735
|
class AwsSecurityFinding < Struct.new(
|
@@ -17764,7 +17773,8 @@ module Aws::SecurityHub
|
|
17764
17773
|
:patch_summary,
|
17765
17774
|
:action,
|
17766
17775
|
:finding_provider_fields,
|
17767
|
-
:sample
|
17776
|
+
:sample,
|
17777
|
+
:generator_details)
|
17768
17778
|
SENSITIVE = []
|
17769
17779
|
include Aws::Structure
|
17770
17780
|
end
|
@@ -20662,6 +20672,38 @@ module Aws::SecurityHub
|
|
20662
20672
|
include Aws::Structure
|
20663
20673
|
end
|
20664
20674
|
|
20675
|
+
# Provides details about where a code vulnerability is located in your
|
20676
|
+
# Lambda function.
|
20677
|
+
#
|
20678
|
+
# @!attribute [rw] end_line
|
20679
|
+
# The line number of the last line of code in which the vulnerability
|
20680
|
+
# is located.
|
20681
|
+
# @return [Integer]
|
20682
|
+
#
|
20683
|
+
# @!attribute [rw] file_name
|
20684
|
+
# The name of the file in which the code vulnerability is located.
|
20685
|
+
# @return [String]
|
20686
|
+
#
|
20687
|
+
# @!attribute [rw] file_path
|
20688
|
+
# The file path to the code in which the vulnerability is located.
|
20689
|
+
# @return [String]
|
20690
|
+
#
|
20691
|
+
# @!attribute [rw] start_line
|
20692
|
+
# The line number of the first line of code in which the vulnerability
|
20693
|
+
# is located.
|
20694
|
+
# @return [Integer]
|
20695
|
+
#
|
20696
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/CodeVulnerabilitiesFilePath AWS API Documentation
|
20697
|
+
#
|
20698
|
+
class CodeVulnerabilitiesFilePath < Struct.new(
|
20699
|
+
:end_line,
|
20700
|
+
:file_name,
|
20701
|
+
:file_path,
|
20702
|
+
:start_line)
|
20703
|
+
SENSITIVE = []
|
20704
|
+
include Aws::Structure
|
20705
|
+
end
|
20706
|
+
|
20665
20707
|
# Contains finding details that are specific to control-based findings.
|
20666
20708
|
# Only returned for findings generated from controls.
|
20667
20709
|
#
|
@@ -22193,6 +22235,37 @@ module Aws::SecurityHub
|
|
22193
22235
|
include Aws::Structure
|
22194
22236
|
end
|
22195
22237
|
|
22238
|
+
# Provides metadata for the Amazon CodeGuru detector associated with a
|
22239
|
+
# finding. This field pertains to findings that relate to Lambda
|
22240
|
+
# functions. Amazon Inspector identifies policy violations and
|
22241
|
+
# vulnerabilities in Lambda function code based on internal detectors
|
22242
|
+
# developed in collaboration with Amazon CodeGuru. Security Hub receives
|
22243
|
+
# those findings.
|
22244
|
+
#
|
22245
|
+
# @!attribute [rw] name
|
22246
|
+
# The name of the detector used to identify the code vulnerability.
|
22247
|
+
# @return [String]
|
22248
|
+
#
|
22249
|
+
# @!attribute [rw] description
|
22250
|
+
# The description of the detector used to identify the code
|
22251
|
+
# vulnerability.
|
22252
|
+
# @return [String]
|
22253
|
+
#
|
22254
|
+
# @!attribute [rw] labels
|
22255
|
+
# An array of tags used to identify the detector associated with the
|
22256
|
+
# finding.
|
22257
|
+
# @return [Array<String>]
|
22258
|
+
#
|
22259
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GeneratorDetails AWS API Documentation
|
22260
|
+
#
|
22261
|
+
class GeneratorDetails < Struct.new(
|
22262
|
+
:name,
|
22263
|
+
:description,
|
22264
|
+
:labels)
|
22265
|
+
SENSITIVE = []
|
22266
|
+
include Aws::Structure
|
22267
|
+
end
|
22268
|
+
|
22196
22269
|
# Provides the latitude and longitude coordinates of a location.
|
22197
22270
|
#
|
22198
22271
|
# @!attribute [rw] lon
|
@@ -27193,6 +27266,20 @@ module Aws::SecurityHub
|
|
27193
27266
|
# * `PARTIAL` otherwise
|
27194
27267
|
# @return [String]
|
27195
27268
|
#
|
27269
|
+
# @!attribute [rw] epss_score
|
27270
|
+
# The Exploit Prediction Scoring System (EPSS) score for a finding.
|
27271
|
+
# @return [Float]
|
27272
|
+
#
|
27273
|
+
# @!attribute [rw] exploit_available
|
27274
|
+
# Whether an exploit is available for a finding.
|
27275
|
+
# @return [String]
|
27276
|
+
#
|
27277
|
+
# @!attribute [rw] code_vulnerabilities
|
27278
|
+
# The vulnerabilities found in your Lambda function code. This field
|
27279
|
+
# pertains to findings that Security Hub receives from Amazon
|
27280
|
+
# Inspector.
|
27281
|
+
# @return [Array<Types::VulnerabilityCodeVulnerabilities>]
|
27282
|
+
#
|
27196
27283
|
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/Vulnerability AWS API Documentation
|
27197
27284
|
#
|
27198
27285
|
class Vulnerability < Struct.new(
|
@@ -27202,7 +27289,39 @@ module Aws::SecurityHub
|
|
27202
27289
|
:related_vulnerabilities,
|
27203
27290
|
:vendor,
|
27204
27291
|
:reference_urls,
|
27205
|
-
:fix_available
|
27292
|
+
:fix_available,
|
27293
|
+
:epss_score,
|
27294
|
+
:exploit_available,
|
27295
|
+
:code_vulnerabilities)
|
27296
|
+
SENSITIVE = []
|
27297
|
+
include Aws::Structure
|
27298
|
+
end
|
27299
|
+
|
27300
|
+
# Provides details about the vulnerabilities found in your Lambda
|
27301
|
+
# function code. This field pertains to findings that Security Hub
|
27302
|
+
# receives from Amazon Inspector.
|
27303
|
+
#
|
27304
|
+
# @!attribute [rw] cwes
|
27305
|
+
# The Common Weakness Enumeration (CWE) item associated with the
|
27306
|
+
# detected code vulnerability.
|
27307
|
+
# @return [Array<String>]
|
27308
|
+
#
|
27309
|
+
# @!attribute [rw] file_path
|
27310
|
+
# Provides details about where a code vulnerability is located in your
|
27311
|
+
# Lambda function.
|
27312
|
+
# @return [Types::CodeVulnerabilitiesFilePath]
|
27313
|
+
#
|
27314
|
+
# @!attribute [rw] source_arn
|
27315
|
+
# The Amazon Resource Name (ARN) of the Lambda layer in which the code
|
27316
|
+
# vulnerability is located.
|
27317
|
+
# @return [String]
|
27318
|
+
#
|
27319
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/VulnerabilityCodeVulnerabilities AWS API Documentation
|
27320
|
+
#
|
27321
|
+
class VulnerabilityCodeVulnerabilities < Struct.new(
|
27322
|
+
:cwes,
|
27323
|
+
:file_path,
|
27324
|
+
:source_arn)
|
27206
27325
|
SENSITIVE = []
|
27207
27326
|
include Aws::Structure
|
27208
27327
|
end
|
@@ -27317,8 +27436,7 @@ module Aws::SecurityHub
|
|
27317
27436
|
include Aws::Structure
|
27318
27437
|
end
|
27319
27438
|
|
27320
|
-
# Provides
|
27321
|
-
# finding.
|
27439
|
+
# Provides details about the status of the investigation into a finding.
|
27322
27440
|
#
|
27323
27441
|
# @!attribute [rw] status
|
27324
27442
|
# The status of the investigation into the finding. The workflow
|
data/lib/aws-sdk-securityhub.rb
CHANGED
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.91.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: 2023-
|
11
|
+
date: 2023-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|