aws-sdk-securityhub 1.161.0 → 1.163.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 +194 -1
- data/lib/aws-sdk-securityhub/client_api.rb +59 -0
- data/lib/aws-sdk-securityhub/types.rb +125 -0
- data/lib/aws-sdk-securityhub.rb +1 -1
- data/sig/client.rbs +14 -0
- data/sig/types.rbs +29 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be585dab38b6766a0e3f3c81ab74c1e010da1e46fa3943926790f21329b89570
|
|
4
|
+
data.tar.gz: 6dae5b1fe0b8005e6a578fa5020642755274da81be204e2461ab61b590e0cf0b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 891568035eb8c97bf8532bcc806fe47b344ab945db4f015543758651a59b2473c856af42fd833a75c98d1a8c6c26c8acc92f6e50ba36e3ea4cd9eeb13ab6dfd3
|
|
7
|
+
data.tar.gz: eb3c3de3241414ce13dc963467883d1ee12f2eab2a3b0d127b31f0217cace1f39dd82391c94998e9ef828ab6eb36fe00ea9e4329dea2136508bd5201d70d983a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.163.0 (2026-08-06)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Security Hub is adding a new public API, ListFreeTrialStatusesV2 to describe the free trial statuses of the Security Hub service and its opt-in features.
|
|
8
|
+
|
|
9
|
+
1.162.0 (2026-07-21)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Security Hub standard and control multicloud API documentation updates
|
|
13
|
+
|
|
4
14
|
1.161.0 (2026-07-14)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.163.0
|
|
@@ -675,7 +675,9 @@ module Aws::SecurityHub
|
|
|
675
675
|
# {
|
|
676
676
|
# standards_subscriptions: [
|
|
677
677
|
# {
|
|
678
|
+
# provider: "AWS",
|
|
678
679
|
# standards_arn: "arn:aws:securityhub:eu-central-1::standards/pci-dss/v/3.2.1",
|
|
680
|
+
# standards_controls_updatable: "NOT_READY_FOR_UPDATES",
|
|
679
681
|
# standards_input: {
|
|
680
682
|
# },
|
|
681
683
|
# standards_status: "DELETING",
|
|
@@ -746,7 +748,9 @@ module Aws::SecurityHub
|
|
|
746
748
|
# {
|
|
747
749
|
# standards_subscriptions: [
|
|
748
750
|
# {
|
|
751
|
+
# provider: "AWS",
|
|
749
752
|
# standards_arn: "arn:aws:securityhub:us-west-1::standards/pci-dss/v/3.2.1",
|
|
753
|
+
# standards_controls_updatable: "NOT_READY_FOR_UPDATES",
|
|
750
754
|
# standards_input: {
|
|
751
755
|
# },
|
|
752
756
|
# standards_status: "PENDING",
|
|
@@ -1232,6 +1236,7 @@ module Aws::SecurityHub
|
|
|
1232
1236
|
# value_type: "DEFAULT",
|
|
1233
1237
|
# },
|
|
1234
1238
|
# },
|
|
1239
|
+
# provider: "AWS",
|
|
1235
1240
|
# remediation_url: "https://docs.aws.amazon.com/console/securityhub/ACM.1/remediation",
|
|
1236
1241
|
# security_control_arn: "arn:aws:securityhub:us-west-2:123456789012:security-control/ACM.1",
|
|
1237
1242
|
# security_control_id: "ACM.1",
|
|
@@ -1251,6 +1256,7 @@ module Aws::SecurityHub
|
|
|
1251
1256
|
# value_type: "CUSTOM",
|
|
1252
1257
|
# },
|
|
1253
1258
|
# },
|
|
1259
|
+
# provider: "AWS",
|
|
1254
1260
|
# remediation_url: "https://docs.aws.amazon.com/console/securityhub/APIGateway.1/remediation",
|
|
1255
1261
|
# security_control_arn: "arn:aws:securityhub:us-west-2:123456789012:security-control/APIGateway.1",
|
|
1256
1262
|
# security_control_id: "APIGateway.1",
|
|
@@ -5371,25 +5377,83 @@ module Aws::SecurityHub
|
|
|
5371
5377
|
# description: "The AWS Foundational Security Best Practices standard is a set of automated security checks that detect when AWS accounts and deployed resources do not align to security best practices. The standard is defined by AWS security experts. This curated set of controls helps improve your security posture in AWS, and cover AWS's most popular and foundational services.",
|
|
5372
5378
|
# enabled_by_default: true,
|
|
5373
5379
|
# name: "AWS Foundational Security Best Practices v1.0.0",
|
|
5380
|
+
# provider: "AWS",
|
|
5374
5381
|
# standards_arn: "arn:aws:securityhub:us-west-1::standards/aws-foundational-security-best-practices/v/1.0.0",
|
|
5382
|
+
# standards_managed_by: {
|
|
5383
|
+
# company: "AWS",
|
|
5384
|
+
# product: "Security Hub",
|
|
5385
|
+
# },
|
|
5375
5386
|
# },
|
|
5376
5387
|
# {
|
|
5377
5388
|
# description: "The Center for Internet Security (CIS) AWS Foundations Benchmark v1.2.0 is a set of security configuration best practices for AWS. This Security Hub standard automatically checks for your compliance readiness against a subset of CIS requirements.",
|
|
5378
5389
|
# enabled_by_default: true,
|
|
5379
5390
|
# name: "CIS AWS Foundations Benchmark v1.2.0",
|
|
5391
|
+
# provider: "AWS",
|
|
5380
5392
|
# standards_arn: "arn:aws:securityhub:us-west-1::ruleset/cis-aws-foundations-benchmark/v/1.2.0",
|
|
5393
|
+
# standards_managed_by: {
|
|
5394
|
+
# company: "AWS",
|
|
5395
|
+
# product: "Security Hub",
|
|
5396
|
+
# },
|
|
5381
5397
|
# },
|
|
5382
5398
|
# {
|
|
5383
5399
|
# description: "The Center for Internet Security (CIS) AWS Foundations Benchmark v1.4.0 is a set of security configuration best practices for AWS. This Security Hub standard automatically checks for your compliance readiness against a subset of CIS requirements.",
|
|
5384
5400
|
# enabled_by_default: false,
|
|
5385
5401
|
# name: "CIS AWS Foundations Benchmark v1.4.0",
|
|
5402
|
+
# provider: "AWS",
|
|
5386
5403
|
# standards_arn: "arn:aws::securityhub:us-west-1::standards/cis-aws-foundations-benchmark/v/1.4.0",
|
|
5404
|
+
# standards_managed_by: {
|
|
5405
|
+
# company: "AWS",
|
|
5406
|
+
# product: "Security Hub",
|
|
5407
|
+
# },
|
|
5387
5408
|
# },
|
|
5388
5409
|
# {
|
|
5389
5410
|
# description: "The Payment Card Industry Data Security Standard (PCI DSS) v3.2.1 is an information security standard for entities that store, process, and/or transmit cardholder data. This Security Hub standard automatically checks for your compliance readiness against a subset of PCI DSS requirements.",
|
|
5390
5411
|
# enabled_by_default: false,
|
|
5391
5412
|
# name: "PCI DSS v3.2.1",
|
|
5413
|
+
# provider: "AWS",
|
|
5392
5414
|
# standards_arn: "arn:aws:securityhub:us-west-1::standards/pci-dss/v/3.2.1",
|
|
5415
|
+
# standards_managed_by: {
|
|
5416
|
+
# company: "AWS",
|
|
5417
|
+
# product: "Security Hub",
|
|
5418
|
+
# },
|
|
5419
|
+
# },
|
|
5420
|
+
# {
|
|
5421
|
+
# description: "The Center for Internet Security (CIS) Microsoft Azure Foundations Benchmark v4.0.0 is a set of security configuration best practices for Azure. This Security Hub standard automatically checks your compliance readiness against a subset of CIS requirements.",
|
|
5422
|
+
# enabled_by_default: false,
|
|
5423
|
+
# name: "CIS Azure Foundations Benchmark v4.0.0",
|
|
5424
|
+
# provider: "Azure",
|
|
5425
|
+
# standards_arn: "arn:aws:securityhub:us-west-1::standards/cis-azure-foundations-benchmark/v/4.0.0",
|
|
5426
|
+
# standards_managed_by: {
|
|
5427
|
+
# company: "AWS",
|
|
5428
|
+
# product: "Security Hub",
|
|
5429
|
+
# },
|
|
5430
|
+
# },
|
|
5431
|
+
# ],
|
|
5432
|
+
# }
|
|
5433
|
+
#
|
|
5434
|
+
# @example Example: To get available Azure security standards
|
|
5435
|
+
#
|
|
5436
|
+
# # The following example returns a list of available security standards from a specified provider.
|
|
5437
|
+
#
|
|
5438
|
+
# resp = client.describe_standards({
|
|
5439
|
+
# providers: [
|
|
5440
|
+
# "Azure",
|
|
5441
|
+
# ],
|
|
5442
|
+
# })
|
|
5443
|
+
#
|
|
5444
|
+
# resp.to_h outputs the following:
|
|
5445
|
+
# {
|
|
5446
|
+
# standards: [
|
|
5447
|
+
# {
|
|
5448
|
+
# description: "The Center for Internet Security (CIS) Microsoft Azure Foundations Benchmark v4.0.0 is a set of security configuration best practices for Azure. This Security Hub standard automatically checks your compliance readiness against a subset of CIS requirements.",
|
|
5449
|
+
# enabled_by_default: false,
|
|
5450
|
+
# name: "CIS Azure Foundations Benchmark v4.0.0",
|
|
5451
|
+
# provider: "Azure",
|
|
5452
|
+
# standards_arn: "arn:aws:securityhub:us-west-1::standards/cis-azure-foundations-benchmark/v/4.0.0",
|
|
5453
|
+
# standards_managed_by: {
|
|
5454
|
+
# company: "AWS",
|
|
5455
|
+
# product: "Security Hub",
|
|
5456
|
+
# },
|
|
5393
5457
|
# },
|
|
5394
5458
|
# ],
|
|
5395
5459
|
# }
|
|
@@ -6598,6 +6662,7 @@ module Aws::SecurityHub
|
|
|
6598
6662
|
# {
|
|
6599
6663
|
# standards_subscriptions: [
|
|
6600
6664
|
# {
|
|
6665
|
+
# provider: "AWS",
|
|
6601
6666
|
# standards_arn: "arn:aws:securityhub:us-west-1::standards/pci-dss/v/3.2.1",
|
|
6602
6667
|
# standards_input: {
|
|
6603
6668
|
# },
|
|
@@ -9357,6 +9422,7 @@ module Aws::SecurityHub
|
|
|
9357
9422
|
# description: "Number of days the EC2 instance is allowed to be in a stopped state before generating a failed finding",
|
|
9358
9423
|
# },
|
|
9359
9424
|
# },
|
|
9425
|
+
# provider: "AWS",
|
|
9360
9426
|
# remediation_url: "https://docs.aws.amazon.com/console/securityhub/EC2.4/remediation",
|
|
9361
9427
|
# security_control_id: "EC2.4",
|
|
9362
9428
|
# severity_rating: "MEDIUM",
|
|
@@ -10124,6 +10190,68 @@ module Aws::SecurityHub
|
|
|
10124
10190
|
req.send_request(options)
|
|
10125
10191
|
end
|
|
10126
10192
|
|
|
10193
|
+
# Lists the free trial status of Security Hub features. A delegated
|
|
10194
|
+
# Security Hub administrator can list the status for accounts in its
|
|
10195
|
+
# organization. Any other account can list the status only for itself.
|
|
10196
|
+
# Free trial status remains available after a feature is disabled.
|
|
10197
|
+
#
|
|
10198
|
+
# @option params [Array<String>] :account_ids
|
|
10199
|
+
# The Amazon Web Services account identifiers to list free trial status
|
|
10200
|
+
# for. You can specify accounts other than your own only if you are a
|
|
10201
|
+
# delegated Security Hub administrator.
|
|
10202
|
+
#
|
|
10203
|
+
# @option params [Array<String>] :statuses
|
|
10204
|
+
# The free trial statuses to filter the results by. Valid values:
|
|
10205
|
+
#
|
|
10206
|
+
# * `ACTIVE` returns only features with an ongoing free trial period.
|
|
10207
|
+
#
|
|
10208
|
+
# * `INACTIVE` returns only features whose free trial period has ended,
|
|
10209
|
+
# or that never started.
|
|
10210
|
+
#
|
|
10211
|
+
# @option params [Integer] :max_results
|
|
10212
|
+
# The maximum number of results to return. If you don't specify a
|
|
10213
|
+
# value, Security Hub returns up to 100 results.
|
|
10214
|
+
#
|
|
10215
|
+
# @option params [String] :next_token
|
|
10216
|
+
# The pagination token to request the next page of results.
|
|
10217
|
+
#
|
|
10218
|
+
# @return [Types::ListFreeTrialStatusesV2Response] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
10219
|
+
#
|
|
10220
|
+
# * {Types::ListFreeTrialStatusesV2Response#account_free_trial_statuses #account_free_trial_statuses} => Array<Types::AccountFreeTrialStatus>
|
|
10221
|
+
# * {Types::ListFreeTrialStatusesV2Response#next_token #next_token} => String
|
|
10222
|
+
#
|
|
10223
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
10224
|
+
#
|
|
10225
|
+
# @example Request syntax with placeholder values
|
|
10226
|
+
#
|
|
10227
|
+
# resp = client.list_free_trial_statuses_v2({
|
|
10228
|
+
# account_ids: ["FreeTrialAccountId"],
|
|
10229
|
+
# statuses: ["ACTIVE"], # accepts ACTIVE, INACTIVE
|
|
10230
|
+
# max_results: 1,
|
|
10231
|
+
# next_token: "NextToken",
|
|
10232
|
+
# })
|
|
10233
|
+
#
|
|
10234
|
+
# @example Response structure
|
|
10235
|
+
#
|
|
10236
|
+
# resp.account_free_trial_statuses #=> Array
|
|
10237
|
+
# resp.account_free_trial_statuses[0].account_id #=> String
|
|
10238
|
+
# resp.account_free_trial_statuses[0].evaluated_at #=> Time
|
|
10239
|
+
# resp.account_free_trial_statuses[0].free_trial_statuses #=> Array
|
|
10240
|
+
# resp.account_free_trial_statuses[0].free_trial_statuses[0].feature_type #=> String, one of "SECURITY_HUB_V2", "SECURITY_HUB_V2_MULTI_CLOUD_AZURE"
|
|
10241
|
+
# resp.account_free_trial_statuses[0].free_trial_statuses[0].status #=> String, one of "ACTIVE", "INACTIVE"
|
|
10242
|
+
# resp.account_free_trial_statuses[0].free_trial_statuses[0].started_at #=> Time
|
|
10243
|
+
# resp.account_free_trial_statuses[0].free_trial_statuses[0].expires_at #=> Time
|
|
10244
|
+
# resp.next_token #=> String
|
|
10245
|
+
#
|
|
10246
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListFreeTrialStatusesV2 AWS API Documentation
|
|
10247
|
+
#
|
|
10248
|
+
# @overload list_free_trial_statuses_v2(params = {})
|
|
10249
|
+
# @param [Hash] params ({})
|
|
10250
|
+
def list_free_trial_statuses_v2(params = {}, options = {})
|
|
10251
|
+
req = build_request(:list_free_trial_statuses_v2, params)
|
|
10252
|
+
req.send_request(options)
|
|
10253
|
+
end
|
|
10254
|
+
|
|
10127
10255
|
# <note markdown="1"> We recommend using Organizations instead of Security Hub CSPM
|
|
10128
10256
|
# invitations to manage your member accounts. For information, see
|
|
10129
10257
|
# [Managing Security Hub CSPM administrator and member accounts with
|
|
@@ -10425,6 +10553,7 @@ module Aws::SecurityHub
|
|
|
10425
10553
|
# "Parameters",
|
|
10426
10554
|
# ],
|
|
10427
10555
|
# 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.",
|
|
10556
|
+
# provider: "AWS",
|
|
10428
10557
|
# remediation_url: "https://docs.aws.amazon.com/console/securityhub/ACM.1/remediation",
|
|
10429
10558
|
# security_control_id: "ACM.1",
|
|
10430
10559
|
# severity_rating: "MEDIUM",
|
|
@@ -10436,6 +10565,7 @@ module Aws::SecurityHub
|
|
|
10436
10565
|
# "Parameters",
|
|
10437
10566
|
# ],
|
|
10438
10567
|
# 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.",
|
|
10568
|
+
# provider: "AWS",
|
|
10439
10569
|
# remediation_url: "https://docs.aws.amazon.com/console/securityhub/APIGateway.1/remediation",
|
|
10440
10570
|
# security_control_id: "APIGateway.1",
|
|
10441
10571
|
# severity_rating: "MEDIUM",
|
|
@@ -10444,11 +10574,74 @@ module Aws::SecurityHub
|
|
|
10444
10574
|
# {
|
|
10445
10575
|
# current_region_availability: "AVAILABLE",
|
|
10446
10576
|
# 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.",
|
|
10577
|
+
# provider: "AWS",
|
|
10447
10578
|
# remediation_url: "https://docs.aws.amazon.com/console/securityhub/APIGateway.2/remediation",
|
|
10448
10579
|
# security_control_id: "APIGateway.2",
|
|
10449
10580
|
# severity_rating: "MEDIUM",
|
|
10450
10581
|
# title: "API Gateway REST API stages should be configured to use SSL certificates for backend authentication",
|
|
10451
10582
|
# },
|
|
10583
|
+
# {
|
|
10584
|
+
# current_region_availability: "AVAILABLE",
|
|
10585
|
+
# customizable_properties: [
|
|
10586
|
+
# ],
|
|
10587
|
+
# description: "This control checks whether Azure Container Apps have managed identity enabled. The control fails if the Container App has a system-assigned or user-assigned managed identity enabled.",
|
|
10588
|
+
# provider: "Azure",
|
|
10589
|
+
# remediation_url: "https://docs.aws.amazon.com/console/securityhub/Azure.App.1/remediation",
|
|
10590
|
+
# security_control_id: "Azure.App.1",
|
|
10591
|
+
# severity_rating: "MEDIUM",
|
|
10592
|
+
# title: "Azure Container Apps with managed identity enabled should follow least privilege",
|
|
10593
|
+
# },
|
|
10594
|
+
# ],
|
|
10595
|
+
# }
|
|
10596
|
+
#
|
|
10597
|
+
# @example Example: To list Azure security control definitions
|
|
10598
|
+
#
|
|
10599
|
+
# # The following example lists security control definitions for a specified provider.
|
|
10600
|
+
#
|
|
10601
|
+
# resp = client.list_security_control_definitions({
|
|
10602
|
+
# max_results: 3,
|
|
10603
|
+
# providers: [
|
|
10604
|
+
# "Azure",
|
|
10605
|
+
# ],
|
|
10606
|
+
# })
|
|
10607
|
+
#
|
|
10608
|
+
# resp.to_h outputs the following:
|
|
10609
|
+
# {
|
|
10610
|
+
# next_token: "U2FsdGVkX1...",
|
|
10611
|
+
# security_control_definitions: [
|
|
10612
|
+
# {
|
|
10613
|
+
# current_region_availability: "AVAILABLE",
|
|
10614
|
+
# customizable_properties: [
|
|
10615
|
+
# ],
|
|
10616
|
+
# description: "This control checks whether Azure Container Apps have managed identity enabled. The control fails if the Container App has a system-assigned or user-assigned managed identity enabled.",
|
|
10617
|
+
# provider: "Azure",
|
|
10618
|
+
# remediation_url: "https://docs.aws.amazon.com/console/securityhub/Azure.App.1/remediation",
|
|
10619
|
+
# security_control_id: "Azure.App.1",
|
|
10620
|
+
# severity_rating: "MEDIUM",
|
|
10621
|
+
# title: "Azure Container Apps with managed identity enabled should follow least privilege",
|
|
10622
|
+
# },
|
|
10623
|
+
# {
|
|
10624
|
+
# current_region_availability: "AVAILABLE",
|
|
10625
|
+
# customizable_properties: [
|
|
10626
|
+
# ],
|
|
10627
|
+
# description: "This control checks whether an Azure Container App passes Azure SDK credentials as plain-text container environment variables. The control fails if any container (including initContainers) defines AZURE_CLIENT_SECRET, AZURE_CLIENT_CERTIFICATE_PASSWORD, or AZURE_PASSWORD as a plain-text environment variable instead of referencing a secret via secretRef.",
|
|
10628
|
+
# provider: "Azure",
|
|
10629
|
+
# remediation_url: "https://docs.aws.amazon.com/console/securityhub/Azure.App.2/remediation",
|
|
10630
|
+
# security_control_id: "Azure.App.2",
|
|
10631
|
+
# severity_rating: "CRITICAL",
|
|
10632
|
+
# title: "Azure Container Apps should not pass Azure SDK credentials as environment variables",
|
|
10633
|
+
# },
|
|
10634
|
+
# {
|
|
10635
|
+
# current_region_availability: "AVAILABLE",
|
|
10636
|
+
# customizable_properties: [
|
|
10637
|
+
# ],
|
|
10638
|
+
# description: "This control checks whether Azure Container Apps have external ingress configured. The control fails if the Container App ingress is set to accept traffic from anywhere (external).",
|
|
10639
|
+
# provider: "Azure",
|
|
10640
|
+
# remediation_url: "https://docs.aws.amazon.com/console/securityhub/Azure.App.3/remediation",
|
|
10641
|
+
# security_control_id: "Azure.App.3",
|
|
10642
|
+
# severity_rating: "HIGH",
|
|
10643
|
+
# title: "Azure Container Apps should not have external ingress enabled",
|
|
10644
|
+
# },
|
|
10452
10645
|
# ],
|
|
10453
10646
|
# }
|
|
10454
10647
|
#
|
|
@@ -13416,7 +13609,7 @@ module Aws::SecurityHub
|
|
|
13416
13609
|
tracer: tracer
|
|
13417
13610
|
)
|
|
13418
13611
|
context[:gem_name] = 'aws-sdk-securityhub'
|
|
13419
|
-
context[:gem_version] = '1.
|
|
13612
|
+
context[:gem_version] = '1.163.0'
|
|
13420
13613
|
Seahorse::Client::Request.new(handlers, context)
|
|
13421
13614
|
end
|
|
13422
13615
|
|
|
@@ -22,6 +22,8 @@ module Aws::SecurityHub
|
|
|
22
22
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
|
23
23
|
AccountDetails = Shapes::StructureShape.new(name: 'AccountDetails')
|
|
24
24
|
AccountDetailsList = Shapes::ListShape.new(name: 'AccountDetailsList')
|
|
25
|
+
AccountFreeTrialStatus = Shapes::StructureShape.new(name: 'AccountFreeTrialStatus')
|
|
26
|
+
AccountFreeTrialStatusList = Shapes::ListShape.new(name: 'AccountFreeTrialStatusList')
|
|
25
27
|
AccountId = Shapes::StringShape.new(name: 'AccountId')
|
|
26
28
|
AccountIdList = Shapes::ListShape.new(name: 'AccountIdList')
|
|
27
29
|
Action = Shapes::StructureShape.new(name: 'Action')
|
|
@@ -960,6 +962,13 @@ module Aws::SecurityHub
|
|
|
960
962
|
FirewallPolicyStatelessCustomActionsList = Shapes::ListShape.new(name: 'FirewallPolicyStatelessCustomActionsList')
|
|
961
963
|
FirewallPolicyStatelessRuleGroupReferencesDetails = Shapes::StructureShape.new(name: 'FirewallPolicyStatelessRuleGroupReferencesDetails')
|
|
962
964
|
FirewallPolicyStatelessRuleGroupReferencesList = Shapes::ListShape.new(name: 'FirewallPolicyStatelessRuleGroupReferencesList')
|
|
965
|
+
FreeTrialAccountId = Shapes::StringShape.new(name: 'FreeTrialAccountId')
|
|
966
|
+
FreeTrialAccountIdList = Shapes::ListShape.new(name: 'FreeTrialAccountIdList')
|
|
967
|
+
FreeTrialStatus = Shapes::StructureShape.new(name: 'FreeTrialStatus')
|
|
968
|
+
FreeTrialStatusList = Shapes::ListShape.new(name: 'FreeTrialStatusList')
|
|
969
|
+
FreeTrialStatusValue = Shapes::StringShape.new(name: 'FreeTrialStatusValue')
|
|
970
|
+
FreeTrialStatusValueList = Shapes::ListShape.new(name: 'FreeTrialStatusValueList')
|
|
971
|
+
FreeTrialType = Shapes::StringShape.new(name: 'FreeTrialType')
|
|
963
972
|
GenerateRecommendedPolicyV2Request = Shapes::StructureShape.new(name: 'GenerateRecommendedPolicyV2Request')
|
|
964
973
|
GenerateRecommendedPolicyV2Response = Shapes::StructureShape.new(name: 'GenerateRecommendedPolicyV2Response')
|
|
965
974
|
GeneratorDetails = Shapes::StructureShape.new(name: 'GeneratorDetails')
|
|
@@ -1080,6 +1089,8 @@ module Aws::SecurityHub
|
|
|
1080
1089
|
ListEnabledProductsForImportResponse = Shapes::StructureShape.new(name: 'ListEnabledProductsForImportResponse')
|
|
1081
1090
|
ListFindingAggregatorsRequest = Shapes::StructureShape.new(name: 'ListFindingAggregatorsRequest')
|
|
1082
1091
|
ListFindingAggregatorsResponse = Shapes::StructureShape.new(name: 'ListFindingAggregatorsResponse')
|
|
1092
|
+
ListFreeTrialStatusesV2Request = Shapes::StructureShape.new(name: 'ListFreeTrialStatusesV2Request')
|
|
1093
|
+
ListFreeTrialStatusesV2Response = Shapes::StructureShape.new(name: 'ListFreeTrialStatusesV2Response')
|
|
1083
1094
|
ListInvitationsRequest = Shapes::StructureShape.new(name: 'ListInvitationsRequest')
|
|
1084
1095
|
ListInvitationsResponse = Shapes::StructureShape.new(name: 'ListInvitationsResponse')
|
|
1085
1096
|
ListMembersRequest = Shapes::StructureShape.new(name: 'ListMembersRequest')
|
|
@@ -1497,6 +1508,13 @@ module Aws::SecurityHub
|
|
|
1497
1508
|
|
|
1498
1509
|
AccountDetailsList.member = Shapes::ShapeRef.new(shape: AccountDetails)
|
|
1499
1510
|
|
|
1511
|
+
AccountFreeTrialStatus.add_member(:account_id, Shapes::ShapeRef.new(shape: FreeTrialAccountId, required: true, location_name: "AccountId"))
|
|
1512
|
+
AccountFreeTrialStatus.add_member(:evaluated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EvaluatedAt"))
|
|
1513
|
+
AccountFreeTrialStatus.add_member(:free_trial_statuses, Shapes::ShapeRef.new(shape: FreeTrialStatusList, required: true, location_name: "FreeTrialStatuses"))
|
|
1514
|
+
AccountFreeTrialStatus.struct_class = Types::AccountFreeTrialStatus
|
|
1515
|
+
|
|
1516
|
+
AccountFreeTrialStatusList.member = Shapes::ShapeRef.new(shape: AccountFreeTrialStatus)
|
|
1517
|
+
|
|
1500
1518
|
AccountIdList.member = Shapes::ShapeRef.new(shape: NonEmptyString)
|
|
1501
1519
|
|
|
1502
1520
|
Action.add_member(:action_type, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "ActionType"))
|
|
@@ -6272,6 +6290,18 @@ module Aws::SecurityHub
|
|
|
6272
6290
|
|
|
6273
6291
|
FirewallPolicyStatelessRuleGroupReferencesList.member = Shapes::ShapeRef.new(shape: FirewallPolicyStatelessRuleGroupReferencesDetails)
|
|
6274
6292
|
|
|
6293
|
+
FreeTrialAccountIdList.member = Shapes::ShapeRef.new(shape: FreeTrialAccountId)
|
|
6294
|
+
|
|
6295
|
+
FreeTrialStatus.add_member(:feature_type, Shapes::ShapeRef.new(shape: FreeTrialType, required: true, location_name: "FeatureType"))
|
|
6296
|
+
FreeTrialStatus.add_member(:status, Shapes::ShapeRef.new(shape: FreeTrialStatusValue, required: true, location_name: "Status"))
|
|
6297
|
+
FreeTrialStatus.add_member(:started_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartedAt"))
|
|
6298
|
+
FreeTrialStatus.add_member(:expires_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "ExpiresAt"))
|
|
6299
|
+
FreeTrialStatus.struct_class = Types::FreeTrialStatus
|
|
6300
|
+
|
|
6301
|
+
FreeTrialStatusList.member = Shapes::ShapeRef.new(shape: FreeTrialStatus)
|
|
6302
|
+
|
|
6303
|
+
FreeTrialStatusValueList.member = Shapes::ShapeRef.new(shape: FreeTrialStatusValue)
|
|
6304
|
+
|
|
6275
6305
|
GenerateRecommendedPolicyV2Request.add_member(:metadata_uid, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location: "uri", location_name: "MetadataUid"))
|
|
6276
6306
|
GenerateRecommendedPolicyV2Request.struct_class = Types::GenerateRecommendedPolicyV2Request
|
|
6277
6307
|
|
|
@@ -6759,6 +6789,16 @@ module Aws::SecurityHub
|
|
|
6759
6789
|
ListFindingAggregatorsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
6760
6790
|
ListFindingAggregatorsResponse.struct_class = Types::ListFindingAggregatorsResponse
|
|
6761
6791
|
|
|
6792
|
+
ListFreeTrialStatusesV2Request.add_member(:account_ids, Shapes::ShapeRef.new(shape: FreeTrialAccountIdList, location_name: "AccountIds"))
|
|
6793
|
+
ListFreeTrialStatusesV2Request.add_member(:statuses, Shapes::ShapeRef.new(shape: FreeTrialStatusValueList, location_name: "Statuses"))
|
|
6794
|
+
ListFreeTrialStatusesV2Request.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
|
6795
|
+
ListFreeTrialStatusesV2Request.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
6796
|
+
ListFreeTrialStatusesV2Request.struct_class = Types::ListFreeTrialStatusesV2Request
|
|
6797
|
+
|
|
6798
|
+
ListFreeTrialStatusesV2Response.add_member(:account_free_trial_statuses, Shapes::ShapeRef.new(shape: AccountFreeTrialStatusList, required: true, location_name: "AccountFreeTrialStatuses"))
|
|
6799
|
+
ListFreeTrialStatusesV2Response.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
|
6800
|
+
ListFreeTrialStatusesV2Response.struct_class = Types::ListFreeTrialStatusesV2Response
|
|
6801
|
+
|
|
6762
6802
|
ListInvitationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: CrossAccountMaxResults, location: "querystring", location_name: "MaxResults"))
|
|
6763
6803
|
ListInvitationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "NextToken"))
|
|
6764
6804
|
ListInvitationsRequest.struct_class = Types::ListInvitationsRequest
|
|
@@ -9569,6 +9609,25 @@ module Aws::SecurityHub
|
|
|
9569
9609
|
)
|
|
9570
9610
|
end)
|
|
9571
9611
|
|
|
9612
|
+
api.add_operation(:list_free_trial_statuses_v2, Seahorse::Model::Operation.new.tap do |o|
|
|
9613
|
+
o.name = "ListFreeTrialStatusesV2"
|
|
9614
|
+
o.http_method = "POST"
|
|
9615
|
+
o.http_request_uri = "/freetrial/statusv2/list"
|
|
9616
|
+
o.input = Shapes::ShapeRef.new(shape: ListFreeTrialStatusesV2Request)
|
|
9617
|
+
o.output = Shapes::ShapeRef.new(shape: ListFreeTrialStatusesV2Response)
|
|
9618
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
9619
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
9620
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
9621
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
9622
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
9623
|
+
o[:pager] = Aws::Pager.new(
|
|
9624
|
+
limit_key: "max_results",
|
|
9625
|
+
tokens: {
|
|
9626
|
+
"next_token" => "next_token"
|
|
9627
|
+
}
|
|
9628
|
+
)
|
|
9629
|
+
end)
|
|
9630
|
+
|
|
9572
9631
|
api.add_operation(:list_invitations, Seahorse::Model::Operation.new.tap do |o|
|
|
9573
9632
|
o.name = "ListInvitations"
|
|
9574
9633
|
o.http_method = "GET"
|
|
@@ -194,6 +194,35 @@ module Aws::SecurityHub
|
|
|
194
194
|
include Aws::Structure
|
|
195
195
|
end
|
|
196
196
|
|
|
197
|
+
# The free trial status of each Security Hub feature for an account.
|
|
198
|
+
#
|
|
199
|
+
# @!attribute [rw] account_id
|
|
200
|
+
# The Amazon Web Services account identifier that the free trial
|
|
201
|
+
# statuses apply to.
|
|
202
|
+
# @return [String]
|
|
203
|
+
#
|
|
204
|
+
# @!attribute [rw] evaluated_at
|
|
205
|
+
# The date and time at which Security Hub evaluated the free trial
|
|
206
|
+
# statuses for this account. Every status in `FreeTrialStatuses`
|
|
207
|
+
# reflects this point in time.
|
|
208
|
+
# @return [Time]
|
|
209
|
+
#
|
|
210
|
+
# @!attribute [rw] free_trial_statuses
|
|
211
|
+
# An array of free trial statuses, one for each feature that has a
|
|
212
|
+
# free trial period for the account. The array is empty if the account
|
|
213
|
+
# has no free trial to report.
|
|
214
|
+
# @return [Array<Types::FreeTrialStatus>]
|
|
215
|
+
#
|
|
216
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AccountFreeTrialStatus AWS API Documentation
|
|
217
|
+
#
|
|
218
|
+
class AccountFreeTrialStatus < Struct.new(
|
|
219
|
+
:account_id,
|
|
220
|
+
:evaluated_at,
|
|
221
|
+
:free_trial_statuses)
|
|
222
|
+
SENSITIVE = []
|
|
223
|
+
include Aws::Structure
|
|
224
|
+
end
|
|
225
|
+
|
|
197
226
|
# Provides details about one of the following actions that affects or
|
|
198
227
|
# that was taken on a resource:
|
|
199
228
|
#
|
|
@@ -25866,6 +25895,49 @@ module Aws::SecurityHub
|
|
|
25866
25895
|
include Aws::Structure
|
|
25867
25896
|
end
|
|
25868
25897
|
|
|
25898
|
+
# The free trial period for a Security Hub feature, and whether the
|
|
25899
|
+
# trial is currently active.
|
|
25900
|
+
#
|
|
25901
|
+
# @!attribute [rw] feature_type
|
|
25902
|
+
# The feature that the free trial period applies to. Valid values:
|
|
25903
|
+
#
|
|
25904
|
+
# * `SECURITY_HUB_V2` specifies Security Hub.
|
|
25905
|
+
#
|
|
25906
|
+
# * `SECURITY_HUB_V2_MULTI_CLOUD_AZURE` specifies Security Hub
|
|
25907
|
+
# coverage for Microsoft Azure resources.
|
|
25908
|
+
# @return [String]
|
|
25909
|
+
#
|
|
25910
|
+
# @!attribute [rw] status
|
|
25911
|
+
# Whether the free trial period is currently active. Valid values:
|
|
25912
|
+
#
|
|
25913
|
+
# * `ACTIVE` specifies that the free trial period is ongoing.
|
|
25914
|
+
#
|
|
25915
|
+
# * `INACTIVE` specifies that the free trial period has ended, or that
|
|
25916
|
+
# it never started.
|
|
25917
|
+
#
|
|
25918
|
+
# To determine whether a trial has expired, compare `ExpiresAt` to the
|
|
25919
|
+
# current time.
|
|
25920
|
+
# @return [String]
|
|
25921
|
+
#
|
|
25922
|
+
# @!attribute [rw] started_at
|
|
25923
|
+
# The date and time at which the free trial period began.
|
|
25924
|
+
# @return [Time]
|
|
25925
|
+
#
|
|
25926
|
+
# @!attribute [rw] expires_at
|
|
25927
|
+
# The date and time at which the free trial period ends.
|
|
25928
|
+
# @return [Time]
|
|
25929
|
+
#
|
|
25930
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/FreeTrialStatus AWS API Documentation
|
|
25931
|
+
#
|
|
25932
|
+
class FreeTrialStatus < Struct.new(
|
|
25933
|
+
:feature_type,
|
|
25934
|
+
:status,
|
|
25935
|
+
:started_at,
|
|
25936
|
+
:expires_at)
|
|
25937
|
+
SENSITIVE = []
|
|
25938
|
+
include Aws::Structure
|
|
25939
|
+
end
|
|
25940
|
+
|
|
25869
25941
|
# @!attribute [rw] metadata_uid
|
|
25870
25942
|
# The unique identifier (ID) of Security Hub OCSF findings found under
|
|
25871
25943
|
# the `metadata.uid` field of the finding.
|
|
@@ -28243,6 +28315,59 @@ module Aws::SecurityHub
|
|
|
28243
28315
|
include Aws::Structure
|
|
28244
28316
|
end
|
|
28245
28317
|
|
|
28318
|
+
# @!attribute [rw] account_ids
|
|
28319
|
+
# The Amazon Web Services account identifiers to list free trial
|
|
28320
|
+
# status for. You can specify accounts other than your own only if you
|
|
28321
|
+
# are a delegated Security Hub administrator.
|
|
28322
|
+
# @return [Array<String>]
|
|
28323
|
+
#
|
|
28324
|
+
# @!attribute [rw] statuses
|
|
28325
|
+
# The free trial statuses to filter the results by. Valid values:
|
|
28326
|
+
#
|
|
28327
|
+
# * `ACTIVE` returns only features with an ongoing free trial period.
|
|
28328
|
+
#
|
|
28329
|
+
# * `INACTIVE` returns only features whose free trial period has
|
|
28330
|
+
# ended, or that never started.
|
|
28331
|
+
# @return [Array<String>]
|
|
28332
|
+
#
|
|
28333
|
+
# @!attribute [rw] max_results
|
|
28334
|
+
# The maximum number of results to return. If you don't specify a
|
|
28335
|
+
# value, Security Hub returns up to 100 results.
|
|
28336
|
+
# @return [Integer]
|
|
28337
|
+
#
|
|
28338
|
+
# @!attribute [rw] next_token
|
|
28339
|
+
# The pagination token to request the next page of results.
|
|
28340
|
+
# @return [String]
|
|
28341
|
+
#
|
|
28342
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListFreeTrialStatusesV2Request AWS API Documentation
|
|
28343
|
+
#
|
|
28344
|
+
class ListFreeTrialStatusesV2Request < Struct.new(
|
|
28345
|
+
:account_ids,
|
|
28346
|
+
:statuses,
|
|
28347
|
+
:max_results,
|
|
28348
|
+
:next_token)
|
|
28349
|
+
SENSITIVE = []
|
|
28350
|
+
include Aws::Structure
|
|
28351
|
+
end
|
|
28352
|
+
|
|
28353
|
+
# @!attribute [rw] account_free_trial_statuses
|
|
28354
|
+
# An array of free trial statuses, one for each account in scope.
|
|
28355
|
+
# @return [Array<Types::AccountFreeTrialStatus>]
|
|
28356
|
+
#
|
|
28357
|
+
# @!attribute [rw] next_token
|
|
28358
|
+
# The pagination token to use to request the next page of results. If
|
|
28359
|
+
# there are no additional results, this value is null.
|
|
28360
|
+
# @return [String]
|
|
28361
|
+
#
|
|
28362
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListFreeTrialStatusesV2Response AWS API Documentation
|
|
28363
|
+
#
|
|
28364
|
+
class ListFreeTrialStatusesV2Response < Struct.new(
|
|
28365
|
+
:account_free_trial_statuses,
|
|
28366
|
+
:next_token)
|
|
28367
|
+
SENSITIVE = []
|
|
28368
|
+
include Aws::Structure
|
|
28369
|
+
end
|
|
28370
|
+
|
|
28246
28371
|
# @!attribute [rw] max_results
|
|
28247
28372
|
# The maximum number of items to return in the response.
|
|
28248
28373
|
# @return [Integer]
|
data/lib/aws-sdk-securityhub.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -5166,6 +5166,20 @@ module Aws
|
|
|
5166
5166
|
) -> _ListFindingAggregatorsResponseSuccess
|
|
5167
5167
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFindingAggregatorsResponseSuccess
|
|
5168
5168
|
|
|
5169
|
+
interface _ListFreeTrialStatusesV2ResponseSuccess
|
|
5170
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListFreeTrialStatusesV2Response]
|
|
5171
|
+
def account_free_trial_statuses: () -> ::Array[Types::AccountFreeTrialStatus]
|
|
5172
|
+
def next_token: () -> ::String
|
|
5173
|
+
end
|
|
5174
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityHub/Client.html#list_free_trial_statuses_v2-instance_method
|
|
5175
|
+
def list_free_trial_statuses_v2: (
|
|
5176
|
+
?account_ids: Array[::String],
|
|
5177
|
+
?statuses: Array[("ACTIVE" | "INACTIVE")],
|
|
5178
|
+
?max_results: ::Integer,
|
|
5179
|
+
?next_token: ::String
|
|
5180
|
+
) -> _ListFreeTrialStatusesV2ResponseSuccess
|
|
5181
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListFreeTrialStatusesV2ResponseSuccess
|
|
5182
|
+
|
|
5169
5183
|
interface _ListInvitationsResponseSuccess
|
|
5170
5184
|
include ::Seahorse::Client::_ResponseSuccess[Types::ListInvitationsResponse]
|
|
5171
5185
|
def invitations: () -> ::Array[Types::Invitation]
|
data/sig/types.rbs
CHANGED
|
@@ -53,6 +53,13 @@ module Aws::SecurityHub
|
|
|
53
53
|
SENSITIVE: []
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
+
class AccountFreeTrialStatus
|
|
57
|
+
attr_accessor account_id: ::String
|
|
58
|
+
attr_accessor evaluated_at: ::Time
|
|
59
|
+
attr_accessor free_trial_statuses: ::Array[Types::FreeTrialStatus]
|
|
60
|
+
SENSITIVE: []
|
|
61
|
+
end
|
|
62
|
+
|
|
56
63
|
class Action
|
|
57
64
|
attr_accessor action_type: ::String
|
|
58
65
|
attr_accessor network_connection_action: Types::NetworkConnectionAction
|
|
@@ -5816,6 +5823,14 @@ module Aws::SecurityHub
|
|
|
5816
5823
|
SENSITIVE: []
|
|
5817
5824
|
end
|
|
5818
5825
|
|
|
5826
|
+
class FreeTrialStatus
|
|
5827
|
+
attr_accessor feature_type: ("SECURITY_HUB_V2" | "SECURITY_HUB_V2_MULTI_CLOUD_AZURE")
|
|
5828
|
+
attr_accessor status: ("ACTIVE" | "INACTIVE")
|
|
5829
|
+
attr_accessor started_at: ::Time
|
|
5830
|
+
attr_accessor expires_at: ::Time
|
|
5831
|
+
SENSITIVE: []
|
|
5832
|
+
end
|
|
5833
|
+
|
|
5819
5834
|
class GenerateRecommendedPolicyV2Request
|
|
5820
5835
|
attr_accessor metadata_uid: ::String
|
|
5821
5836
|
SENSITIVE: []
|
|
@@ -6465,6 +6480,20 @@ module Aws::SecurityHub
|
|
|
6465
6480
|
SENSITIVE: []
|
|
6466
6481
|
end
|
|
6467
6482
|
|
|
6483
|
+
class ListFreeTrialStatusesV2Request
|
|
6484
|
+
attr_accessor account_ids: ::Array[::String]
|
|
6485
|
+
attr_accessor statuses: ::Array[("ACTIVE" | "INACTIVE")]
|
|
6486
|
+
attr_accessor max_results: ::Integer
|
|
6487
|
+
attr_accessor next_token: ::String
|
|
6488
|
+
SENSITIVE: []
|
|
6489
|
+
end
|
|
6490
|
+
|
|
6491
|
+
class ListFreeTrialStatusesV2Response
|
|
6492
|
+
attr_accessor account_free_trial_statuses: ::Array[Types::AccountFreeTrialStatus]
|
|
6493
|
+
attr_accessor next_token: ::String
|
|
6494
|
+
SENSITIVE: []
|
|
6495
|
+
end
|
|
6496
|
+
|
|
6468
6497
|
class ListInvitationsRequest
|
|
6469
6498
|
attr_accessor max_results: ::Integer
|
|
6470
6499
|
attr_accessor next_token: ::String
|