aws-sdk-securityhub 1.164.0 → 1.166.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/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-securityhub/client.rb +227 -1
- data/lib/aws-sdk-securityhub/client_api.rb +238 -0
- data/lib/aws-sdk-securityhub/types.rb +813 -2
- data/lib/aws-sdk-securityhub.rb +1 -1
- data/sig/client.rbs +47 -0
- data/sig/types.rbs +191 -0
- metadata +3 -3
data/lib/aws-sdk-securityhub.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -4954,6 +4954,36 @@ module Aws
|
|
|
4954
4954
|
) -> _GetRecommendedPolicyV2ResponseSuccess
|
|
4955
4955
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetRecommendedPolicyV2ResponseSuccess
|
|
4956
4956
|
|
|
4957
|
+
interface _GetRemediationsV2ResponseSuccess
|
|
4958
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetRemediationsV2Response]
|
|
4959
|
+
def items: () -> ::Array[Types::RemediationV2Item]
|
|
4960
|
+
def next_token: () -> ::String
|
|
4961
|
+
end
|
|
4962
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityHub/Client.html#get_remediations_v2-instance_method
|
|
4963
|
+
def get_remediations_v2: (
|
|
4964
|
+
?target_uid: ::String,
|
|
4965
|
+
?metadata_uid: ::String,
|
|
4966
|
+
?filters: {
|
|
4967
|
+
composite_filters: Array[
|
|
4968
|
+
{
|
|
4969
|
+
string_filters: Array[
|
|
4970
|
+
{
|
|
4971
|
+
field_name: ("Resource.Type" | "Priority" | "Status" | "Resource.Id" | "Resource.ResourceOwnerAccountId" | "Resource.CloudProvider"),
|
|
4972
|
+
filter: {
|
|
4973
|
+
value: ::String
|
|
4974
|
+
}
|
|
4975
|
+
}
|
|
4976
|
+
]?
|
|
4977
|
+
}
|
|
4978
|
+
]?
|
|
4979
|
+
},
|
|
4980
|
+
?show_guidance: bool,
|
|
4981
|
+
?guidance_format: ("All" | "AwsCli" | "Cli" | "Python" | "Terraform" | "Cdk" | "CloudFormation" | "IaC" | "Template"),
|
|
4982
|
+
?max_results: ::Integer,
|
|
4983
|
+
?next_token: ::String
|
|
4984
|
+
) -> _GetRemediationsV2ResponseSuccess
|
|
4985
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetRemediationsV2ResponseSuccess
|
|
4986
|
+
|
|
4957
4987
|
interface _GetResourcesStatisticsV2ResponseSuccess
|
|
4958
4988
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetResourcesStatisticsV2Response]
|
|
4959
4989
|
def group_by_results: () -> ::Array[Types::GroupByResult]
|
|
@@ -5154,6 +5184,23 @@ module Aws
|
|
|
5154
5184
|
) -> _ListEnabledProductsForImportResponseSuccess
|
|
5155
5185
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEnabledProductsForImportResponseSuccess
|
|
5156
5186
|
|
|
5187
|
+
interface _ListExposuresByRemediationV2ResponseSuccess
|
|
5188
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListExposuresByRemediationV2Response]
|
|
5189
|
+
def items: () -> ::Array[Types::ExposureFinding]
|
|
5190
|
+
def target_uid: () -> ::String
|
|
5191
|
+
def resource: () -> Types::RemediationResource
|
|
5192
|
+
def total_count: () -> ::Integer
|
|
5193
|
+
def trait: () -> Types::RemediationTrait
|
|
5194
|
+
def next_token: () -> ::String
|
|
5195
|
+
end
|
|
5196
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityHub/Client.html#list_exposures_by_remediation_v2-instance_method
|
|
5197
|
+
def list_exposures_by_remediation_v2: (
|
|
5198
|
+
target_uid: ::String,
|
|
5199
|
+
?max_results: ::Integer,
|
|
5200
|
+
?next_token: ::String
|
|
5201
|
+
) -> _ListExposuresByRemediationV2ResponseSuccess
|
|
5202
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListExposuresByRemediationV2ResponseSuccess
|
|
5203
|
+
|
|
5157
5204
|
interface _ListFindingAggregatorsResponseSuccess
|
|
5158
5205
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListFindingAggregatorsResponse]
|
|
5159
5206
|
def finding_aggregators: () -> ::Array[Types::FindingAggregator]
|
data/sig/types.rbs
CHANGED
|
@@ -5711,6 +5711,15 @@ module Aws::SecurityHub
|
|
|
5711
5711
|
SENSITIVE: []
|
|
5712
5712
|
end
|
|
5713
5713
|
|
|
5714
|
+
class ExposureFinding
|
|
5715
|
+
attr_accessor metadata_uid: ::String
|
|
5716
|
+
attr_accessor title: ::String
|
|
5717
|
+
attr_accessor previous_severity: ("Informational" | "Low" | "Medium" | "High" | "Critical")
|
|
5718
|
+
attr_accessor projected_severity: ("Informational" | "Low" | "Medium" | "High" | "Critical")
|
|
5719
|
+
attr_accessor impact: ("Reduces" | "Resolves" | "Unchanged")
|
|
5720
|
+
SENSITIVE: []
|
|
5721
|
+
end
|
|
5722
|
+
|
|
5714
5723
|
class ExternalIntegrationConfiguration
|
|
5715
5724
|
attr_accessor connector_arn: ::String
|
|
5716
5725
|
SENSITIVE: []
|
|
@@ -6130,6 +6139,23 @@ module Aws::SecurityHub
|
|
|
6130
6139
|
SENSITIVE: []
|
|
6131
6140
|
end
|
|
6132
6141
|
|
|
6142
|
+
class GetRemediationsV2Request
|
|
6143
|
+
attr_accessor target_uid: ::String
|
|
6144
|
+
attr_accessor metadata_uid: ::String
|
|
6145
|
+
attr_accessor filters: Types::RemediationFilters
|
|
6146
|
+
attr_accessor show_guidance: bool
|
|
6147
|
+
attr_accessor guidance_format: ("All" | "AwsCli" | "Cli" | "Python" | "Terraform" | "Cdk" | "CloudFormation" | "IaC" | "Template")
|
|
6148
|
+
attr_accessor max_results: ::Integer
|
|
6149
|
+
attr_accessor next_token: ::String
|
|
6150
|
+
SENSITIVE: []
|
|
6151
|
+
end
|
|
6152
|
+
|
|
6153
|
+
class GetRemediationsV2Response
|
|
6154
|
+
attr_accessor items: ::Array[Types::RemediationV2Item]
|
|
6155
|
+
attr_accessor next_token: ::String
|
|
6156
|
+
SENSITIVE: []
|
|
6157
|
+
end
|
|
6158
|
+
|
|
6133
6159
|
class GetResourcesStatisticsV2Request
|
|
6134
6160
|
attr_accessor group_by_rules: ::Array[Types::ResourceGroupByRule]
|
|
6135
6161
|
attr_accessor scopes: Types::ResourceScopes
|
|
@@ -6354,6 +6380,12 @@ module Aws::SecurityHub
|
|
|
6354
6380
|
SENSITIVE: []
|
|
6355
6381
|
end
|
|
6356
6382
|
|
|
6383
|
+
class KbArticle
|
|
6384
|
+
attr_accessor title: ::String
|
|
6385
|
+
attr_accessor url: ::String
|
|
6386
|
+
SENSITIVE: []
|
|
6387
|
+
end
|
|
6388
|
+
|
|
6357
6389
|
class KeywordFilter
|
|
6358
6390
|
attr_accessor value: ::String
|
|
6359
6391
|
SENSITIVE: []
|
|
@@ -6468,6 +6500,23 @@ module Aws::SecurityHub
|
|
|
6468
6500
|
SENSITIVE: []
|
|
6469
6501
|
end
|
|
6470
6502
|
|
|
6503
|
+
class ListExposuresByRemediationV2Request
|
|
6504
|
+
attr_accessor target_uid: ::String
|
|
6505
|
+
attr_accessor max_results: ::Integer
|
|
6506
|
+
attr_accessor next_token: ::String
|
|
6507
|
+
SENSITIVE: []
|
|
6508
|
+
end
|
|
6509
|
+
|
|
6510
|
+
class ListExposuresByRemediationV2Response
|
|
6511
|
+
attr_accessor items: ::Array[Types::ExposureFinding]
|
|
6512
|
+
attr_accessor target_uid: ::String
|
|
6513
|
+
attr_accessor resource: Types::RemediationResource
|
|
6514
|
+
attr_accessor total_count: ::Integer
|
|
6515
|
+
attr_accessor trait: Types::RemediationTrait
|
|
6516
|
+
attr_accessor next_token: ::String
|
|
6517
|
+
SENSITIVE: []
|
|
6518
|
+
end
|
|
6519
|
+
|
|
6471
6520
|
class ListFindingAggregatorsRequest
|
|
6472
6521
|
attr_accessor next_token: ::String
|
|
6473
6522
|
attr_accessor max_results: ::Integer
|
|
@@ -7037,6 +7086,148 @@ module Aws::SecurityHub
|
|
|
7037
7086
|
SENSITIVE: []
|
|
7038
7087
|
end
|
|
7039
7088
|
|
|
7089
|
+
class RemediationCompositeFilter
|
|
7090
|
+
attr_accessor string_filters: ::Array[Types::RemediationStringFilter]
|
|
7091
|
+
SENSITIVE: []
|
|
7092
|
+
end
|
|
7093
|
+
|
|
7094
|
+
class RemediationFilters
|
|
7095
|
+
attr_accessor composite_filters: ::Array[Types::RemediationCompositeFilter]
|
|
7096
|
+
SENSITIVE: []
|
|
7097
|
+
end
|
|
7098
|
+
|
|
7099
|
+
class RemediationGuidance
|
|
7100
|
+
attr_accessor target_type_name: ::String
|
|
7101
|
+
attr_accessor pattern: ::String
|
|
7102
|
+
attr_accessor version: ::String
|
|
7103
|
+
attr_accessor context: Types::RemediationGuidanceContext
|
|
7104
|
+
attr_accessor specification: Types::RemediationGuidanceSpecification
|
|
7105
|
+
attr_accessor examples: Types::RemediationGuidanceExamples
|
|
7106
|
+
attr_accessor metadata: Types::RemediationGuidanceMetadata
|
|
7107
|
+
SENSITIVE: []
|
|
7108
|
+
end
|
|
7109
|
+
|
|
7110
|
+
class RemediationGuidanceContext
|
|
7111
|
+
attr_accessor problem_statement: ::String
|
|
7112
|
+
attr_accessor risk_assessment: ::String
|
|
7113
|
+
attr_accessor affected_scope: ::String
|
|
7114
|
+
attr_accessor prerequisites: ::Array[::String]
|
|
7115
|
+
SENSITIVE: []
|
|
7116
|
+
end
|
|
7117
|
+
|
|
7118
|
+
class RemediationGuidanceExamples
|
|
7119
|
+
attr_accessor aws_cli: ::String
|
|
7120
|
+
attr_accessor cli: ::String
|
|
7121
|
+
attr_accessor python: ::String
|
|
7122
|
+
attr_accessor terraform: ::String
|
|
7123
|
+
attr_accessor cdk: ::String
|
|
7124
|
+
attr_accessor cloud_formation: ::String
|
|
7125
|
+
attr_accessor ia_c: ::String
|
|
7126
|
+
attr_accessor template: ::String
|
|
7127
|
+
SENSITIVE: []
|
|
7128
|
+
end
|
|
7129
|
+
|
|
7130
|
+
class RemediationGuidanceMetadata
|
|
7131
|
+
attr_accessor resource_type: ::String
|
|
7132
|
+
attr_accessor exposure_type: ::String
|
|
7133
|
+
attr_accessor trait_titles: ::Array[::String]
|
|
7134
|
+
attr_accessor reversibility: ::String
|
|
7135
|
+
attr_accessor fix_effect: ::String
|
|
7136
|
+
attr_accessor risk_level: ::String
|
|
7137
|
+
attr_accessor automation_level: ::String
|
|
7138
|
+
attr_accessor human_review_required: bool
|
|
7139
|
+
attr_accessor generated_at: ::Time
|
|
7140
|
+
attr_accessor verification_status: ::String
|
|
7141
|
+
SENSITIVE: []
|
|
7142
|
+
end
|
|
7143
|
+
|
|
7144
|
+
class RemediationGuidanceSpecification
|
|
7145
|
+
attr_accessor parameters: ::Array[Types::RemediationParameter]
|
|
7146
|
+
attr_accessor steps: ::Array[Types::RemediationStep]
|
|
7147
|
+
attr_accessor expected_end_state: ::String
|
|
7148
|
+
attr_accessor required_permissions: ::Array[::String]
|
|
7149
|
+
SENSITIVE: []
|
|
7150
|
+
end
|
|
7151
|
+
|
|
7152
|
+
class RemediationOutcome
|
|
7153
|
+
attr_accessor resolved_findings_count: ::Integer
|
|
7154
|
+
attr_accessor severity_reduction_findings_count: ::Integer
|
|
7155
|
+
attr_accessor severity_unchanged_count: ::Integer
|
|
7156
|
+
SENSITIVE: []
|
|
7157
|
+
end
|
|
7158
|
+
|
|
7159
|
+
class RemediationParameter
|
|
7160
|
+
attr_accessor name: ::String
|
|
7161
|
+
attr_accessor type: ::String
|
|
7162
|
+
attr_accessor description: ::String
|
|
7163
|
+
attr_accessor required: bool
|
|
7164
|
+
SENSITIVE: []
|
|
7165
|
+
end
|
|
7166
|
+
|
|
7167
|
+
class RemediationResource
|
|
7168
|
+
attr_accessor account_id: ::String
|
|
7169
|
+
attr_accessor region: ::String
|
|
7170
|
+
attr_accessor resource_owner_account_id: ::String
|
|
7171
|
+
attr_accessor resource_owner_org_id: ::String
|
|
7172
|
+
attr_accessor type: ::String
|
|
7173
|
+
attr_accessor name: ::String
|
|
7174
|
+
attr_accessor id: ::String
|
|
7175
|
+
attr_accessor resource_guid: ::String
|
|
7176
|
+
attr_accessor resource_region: ::String
|
|
7177
|
+
attr_accessor cloud_provider: ("Azure" | "AWS")
|
|
7178
|
+
SENSITIVE: []
|
|
7179
|
+
end
|
|
7180
|
+
|
|
7181
|
+
class RemediationStep
|
|
7182
|
+
attr_accessor phase: ::String
|
|
7183
|
+
attr_accessor description: ::String
|
|
7184
|
+
attr_accessor service: ::String
|
|
7185
|
+
attr_accessor action: ::String
|
|
7186
|
+
attr_accessor logic: ::String
|
|
7187
|
+
attr_accessor inverse: ::String
|
|
7188
|
+
attr_accessor verify_after: ::String
|
|
7189
|
+
SENSITIVE: []
|
|
7190
|
+
end
|
|
7191
|
+
|
|
7192
|
+
class RemediationStringFilter
|
|
7193
|
+
attr_accessor field_name: ("Resource.Type" | "Priority" | "Status" | "Resource.Id" | "Resource.ResourceOwnerAccountId" | "Resource.CloudProvider")
|
|
7194
|
+
attr_accessor filter: Types::RemediationStringFilterCondition
|
|
7195
|
+
SENSITIVE: []
|
|
7196
|
+
end
|
|
7197
|
+
|
|
7198
|
+
class RemediationStringFilterCondition
|
|
7199
|
+
attr_accessor value: ::String
|
|
7200
|
+
SENSITIVE: []
|
|
7201
|
+
end
|
|
7202
|
+
|
|
7203
|
+
class RemediationSummaryDetail
|
|
7204
|
+
attr_accessor action: ::String
|
|
7205
|
+
attr_accessor description: ::String
|
|
7206
|
+
attr_accessor is_immediate: bool
|
|
7207
|
+
attr_accessor post_remediation_steps: ::Array[::String]
|
|
7208
|
+
attr_accessor kb_articles: ::Array[Types::KbArticle]
|
|
7209
|
+
SENSITIVE: []
|
|
7210
|
+
end
|
|
7211
|
+
|
|
7212
|
+
class RemediationTrait
|
|
7213
|
+
attr_accessor type: ::String
|
|
7214
|
+
attr_accessor title: ::String
|
|
7215
|
+
SENSITIVE: []
|
|
7216
|
+
end
|
|
7217
|
+
|
|
7218
|
+
class RemediationV2Item
|
|
7219
|
+
attr_accessor target_uid: ::String
|
|
7220
|
+
attr_accessor outcome: Types::RemediationOutcome
|
|
7221
|
+
attr_accessor priority: ("Critical" | "High" | "Medium" | "Low")
|
|
7222
|
+
attr_accessor remediation_summary: Types::RemediationSummaryDetail
|
|
7223
|
+
attr_accessor resource: Types::RemediationResource
|
|
7224
|
+
attr_accessor status: ("New" | "Updated" | "Resolved")
|
|
7225
|
+
attr_accessor trait: Types::RemediationTrait
|
|
7226
|
+
attr_accessor guidance: Types::RemediationGuidance
|
|
7227
|
+
attr_accessor updated_at: ::Time
|
|
7228
|
+
SENSITIVE: []
|
|
7229
|
+
end
|
|
7230
|
+
|
|
7040
7231
|
class Resource
|
|
7041
7232
|
attr_accessor type: ::String
|
|
7042
7233
|
attr_accessor id: ::String
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.166.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
@@ -18,7 +18,7 @@ dependencies:
|
|
|
18
18
|
version: '3'
|
|
19
19
|
- - ">="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.
|
|
21
|
+
version: 3.256.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -28,7 +28,7 @@ dependencies:
|
|
|
28
28
|
version: '3'
|
|
29
29
|
- - ">="
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
|
-
version: 3.
|
|
31
|
+
version: 3.256.0
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: aws-sigv4
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|