aws-sdk-securityhub 1.173.0 → 1.174.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-securityhub/client.rb +368 -1
- data/lib/aws-sdk-securityhub/client_api.rb +161 -0
- data/lib/aws-sdk-securityhub/types.rb +434 -0
- data/lib/aws-sdk-securityhub.rb +1 -1
- data/sig/client.rbs +82 -0
- data/sig/params.rbs +35 -0
- data/sig/types.rbs +97 -0
- metadata +3 -3
|
@@ -27799,6 +27799,225 @@ module Aws::SecurityHub
|
|
|
27799
27799
|
include Aws::Structure
|
|
27800
27800
|
end
|
|
27801
27801
|
|
|
27802
|
+
# @!attribute [rw] package_name
|
|
27803
|
+
# The name of the software package, for example `openssl`. This value
|
|
27804
|
+
# must match the `PackageName` returned by `GetSoftwareV2`.
|
|
27805
|
+
# @return [String]
|
|
27806
|
+
#
|
|
27807
|
+
# @!attribute [rw] package_type
|
|
27808
|
+
# The type of the software package, for example `operating-system`,
|
|
27809
|
+
# `application`, or `library`. This value must match the `PackageType`
|
|
27810
|
+
# returned by `GetSoftwareV2`.
|
|
27811
|
+
# @return [String]
|
|
27812
|
+
#
|
|
27813
|
+
# @!attribute [rw] package_version
|
|
27814
|
+
# The version of the software package, for example `3.0.8`. If you
|
|
27815
|
+
# omit this value, the response includes resources that contain any
|
|
27816
|
+
# version of the package.
|
|
27817
|
+
# @return [String]
|
|
27818
|
+
#
|
|
27819
|
+
# @!attribute [rw] filters
|
|
27820
|
+
# Filters the returned resources based on a set of criteria. You can
|
|
27821
|
+
# nest composite filters up to three levels deep.
|
|
27822
|
+
# @return [Types::SoftwareFilters]
|
|
27823
|
+
#
|
|
27824
|
+
# @!attribute [rw] scopes
|
|
27825
|
+
# Limits the results to resources from specific organizational units
|
|
27826
|
+
# or from the delegated administrator's organization. Only the
|
|
27827
|
+
# delegated administrator account can use this parameter. Other
|
|
27828
|
+
# accounts receive an `AccessDeniedException`.
|
|
27829
|
+
#
|
|
27830
|
+
# This parameter is optional. If you omit it, the delegated
|
|
27831
|
+
# administrator sees resources from all accounts across the entire
|
|
27832
|
+
# organization. Other accounts see only their own resources.
|
|
27833
|
+
#
|
|
27834
|
+
# You can specify up to 10 entries in `Scopes.AwsOrganizations`. If
|
|
27835
|
+
# multiple entries are specified, the entries are combined using OR
|
|
27836
|
+
# logic.
|
|
27837
|
+
# @return [Types::SoftwareScopes]
|
|
27838
|
+
#
|
|
27839
|
+
# @!attribute [rw] sort_criteria
|
|
27840
|
+
# The resource attribute used to sort the list of returned resources,
|
|
27841
|
+
# for example `Region` or `ResourceType`. You can specify one sort
|
|
27842
|
+
# criterion.
|
|
27843
|
+
# @return [Array<Types::SortCriterion>]
|
|
27844
|
+
#
|
|
27845
|
+
# @!attribute [rw] next_token
|
|
27846
|
+
# The token required for pagination. On your first call, set the value
|
|
27847
|
+
# of this parameter to `NULL`. For subsequent calls, to continue
|
|
27848
|
+
# listing data, set the value of this parameter to the value returned
|
|
27849
|
+
# in the previous response.
|
|
27850
|
+
#
|
|
27851
|
+
# A token expires one hour after it's issued. If you change the
|
|
27852
|
+
# request parameters between calls, the token is no longer valid and
|
|
27853
|
+
# the request fails with a `ValidationException`.
|
|
27854
|
+
# @return [String]
|
|
27855
|
+
#
|
|
27856
|
+
# @!attribute [rw] max_results
|
|
27857
|
+
# The maximum number of results to return. Valid values are 1–100. The
|
|
27858
|
+
# default is 100.
|
|
27859
|
+
# @return [Integer]
|
|
27860
|
+
#
|
|
27861
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetSoftwareResourcesV2Request AWS API Documentation
|
|
27862
|
+
#
|
|
27863
|
+
class GetSoftwareResourcesV2Request < Struct.new(
|
|
27864
|
+
:package_name,
|
|
27865
|
+
:package_type,
|
|
27866
|
+
:package_version,
|
|
27867
|
+
:filters,
|
|
27868
|
+
:scopes,
|
|
27869
|
+
:sort_criteria,
|
|
27870
|
+
:next_token,
|
|
27871
|
+
:max_results)
|
|
27872
|
+
SENSITIVE = []
|
|
27873
|
+
include Aws::Structure
|
|
27874
|
+
end
|
|
27875
|
+
|
|
27876
|
+
# @!attribute [rw] software_resources
|
|
27877
|
+
# An array of resources that contain the specified software package.
|
|
27878
|
+
# @return [Array<Types::SoftwareResourceResult>]
|
|
27879
|
+
#
|
|
27880
|
+
# @!attribute [rw] next_token
|
|
27881
|
+
# The pagination token to use to request the next page of results.
|
|
27882
|
+
# Otherwise, this parameter is null.
|
|
27883
|
+
# @return [String]
|
|
27884
|
+
#
|
|
27885
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetSoftwareResourcesV2Response AWS API Documentation
|
|
27886
|
+
#
|
|
27887
|
+
class GetSoftwareResourcesV2Response < Struct.new(
|
|
27888
|
+
:software_resources,
|
|
27889
|
+
:next_token)
|
|
27890
|
+
SENSITIVE = []
|
|
27891
|
+
include Aws::Structure
|
|
27892
|
+
end
|
|
27893
|
+
|
|
27894
|
+
# @!attribute [rw] group_by_rules
|
|
27895
|
+
# How software statistics should be aggregated and organized in the
|
|
27896
|
+
# response.
|
|
27897
|
+
# @return [Array<Types::SoftwareGroupByRule>]
|
|
27898
|
+
#
|
|
27899
|
+
# @!attribute [rw] scopes
|
|
27900
|
+
# Limits the results to software on resources from specific
|
|
27901
|
+
# organizational units or from the delegated administrator's
|
|
27902
|
+
# organization. Only the delegated administrator account can use this
|
|
27903
|
+
# parameter. Other accounts receive an `AccessDeniedException`.
|
|
27904
|
+
#
|
|
27905
|
+
# This parameter is optional. If you omit it, the delegated
|
|
27906
|
+
# administrator sees statistics from all accounts across the entire
|
|
27907
|
+
# organization. Other accounts see only statistics for software on
|
|
27908
|
+
# their own resources.
|
|
27909
|
+
#
|
|
27910
|
+
# You can specify up to 10 entries in `Scopes.AwsOrganizations`. If
|
|
27911
|
+
# multiple entries are specified, the entries are combined using OR
|
|
27912
|
+
# logic.
|
|
27913
|
+
# @return [Types::SoftwareScopes]
|
|
27914
|
+
#
|
|
27915
|
+
# @!attribute [rw] sort_order
|
|
27916
|
+
# Sorts aggregated statistics by count. The default is descending,
|
|
27917
|
+
# which returns the values with the highest counts first.
|
|
27918
|
+
# @return [String]
|
|
27919
|
+
#
|
|
27920
|
+
# @!attribute [rw] max_statistic_results
|
|
27921
|
+
# The maximum number of grouping values to return. Valid values are
|
|
27922
|
+
# 1–400. The default is 400.
|
|
27923
|
+
# @return [Integer]
|
|
27924
|
+
#
|
|
27925
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetSoftwareStatisticsV2Request AWS API Documentation
|
|
27926
|
+
#
|
|
27927
|
+
class GetSoftwareStatisticsV2Request < Struct.new(
|
|
27928
|
+
:group_by_rules,
|
|
27929
|
+
:scopes,
|
|
27930
|
+
:sort_order,
|
|
27931
|
+
:max_statistic_results)
|
|
27932
|
+
SENSITIVE = []
|
|
27933
|
+
include Aws::Structure
|
|
27934
|
+
end
|
|
27935
|
+
|
|
27936
|
+
# @!attribute [rw] group_by_results
|
|
27937
|
+
# The aggregated statistics about software based on the specified
|
|
27938
|
+
# grouping rule.
|
|
27939
|
+
# @return [Array<Types::GroupByResult>]
|
|
27940
|
+
#
|
|
27941
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetSoftwareStatisticsV2Response AWS API Documentation
|
|
27942
|
+
#
|
|
27943
|
+
class GetSoftwareStatisticsV2Response < Struct.new(
|
|
27944
|
+
:group_by_results)
|
|
27945
|
+
SENSITIVE = []
|
|
27946
|
+
include Aws::Structure
|
|
27947
|
+
end
|
|
27948
|
+
|
|
27949
|
+
# @!attribute [rw] filters
|
|
27950
|
+
# Filters software packages based on a set of criteria. You can nest
|
|
27951
|
+
# composite filters up to three levels deep.
|
|
27952
|
+
# @return [Types::SoftwareFilters]
|
|
27953
|
+
#
|
|
27954
|
+
# @!attribute [rw] scopes
|
|
27955
|
+
# Limits the results to software on resources from specific
|
|
27956
|
+
# organizational units or from the delegated administrator's
|
|
27957
|
+
# organization. Only the delegated administrator account can use this
|
|
27958
|
+
# parameter. Other accounts receive an `AccessDeniedException`.
|
|
27959
|
+
#
|
|
27960
|
+
# This parameter is optional. If you omit it, the delegated
|
|
27961
|
+
# administrator sees software from all accounts across the entire
|
|
27962
|
+
# organization. Other accounts see only software on their own
|
|
27963
|
+
# resources.
|
|
27964
|
+
#
|
|
27965
|
+
# You can specify up to 10 entries in `Scopes.AwsOrganizations`. If
|
|
27966
|
+
# multiple entries are specified, the entries are combined using OR
|
|
27967
|
+
# logic.
|
|
27968
|
+
# @return [Types::SoftwareScopes]
|
|
27969
|
+
#
|
|
27970
|
+
# @!attribute [rw] sort_criteria
|
|
27971
|
+
# The software attributes used to sort the list of returned software
|
|
27972
|
+
# packages. You can't sort by `ResourceCount`.
|
|
27973
|
+
# @return [Array<Types::SortCriterion>]
|
|
27974
|
+
#
|
|
27975
|
+
# @!attribute [rw] next_token
|
|
27976
|
+
# The token required for pagination. On your first call, set the value
|
|
27977
|
+
# of this parameter to `NULL`. For subsequent calls, to continue
|
|
27978
|
+
# listing data, set the value of this parameter to the value returned
|
|
27979
|
+
# in the previous response.
|
|
27980
|
+
#
|
|
27981
|
+
# A token expires one hour after it's issued. If you change `Filters`
|
|
27982
|
+
# or `SortCriteria` between calls, the token is no longer valid and
|
|
27983
|
+
# the request fails with a `ValidationException`.
|
|
27984
|
+
# @return [String]
|
|
27985
|
+
#
|
|
27986
|
+
# @!attribute [rw] max_results
|
|
27987
|
+
# The maximum number of results to return. Valid values are 1–100. The
|
|
27988
|
+
# default is 100.
|
|
27989
|
+
# @return [Integer]
|
|
27990
|
+
#
|
|
27991
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetSoftwareV2Request AWS API Documentation
|
|
27992
|
+
#
|
|
27993
|
+
class GetSoftwareV2Request < Struct.new(
|
|
27994
|
+
:filters,
|
|
27995
|
+
:scopes,
|
|
27996
|
+
:sort_criteria,
|
|
27997
|
+
:next_token,
|
|
27998
|
+
:max_results)
|
|
27999
|
+
SENSITIVE = []
|
|
28000
|
+
include Aws::Structure
|
|
28001
|
+
end
|
|
28002
|
+
|
|
28003
|
+
# @!attribute [rw] software
|
|
28004
|
+
# An array of software packages returned by the operation.
|
|
28005
|
+
# @return [Array<Types::SoftwareResult>]
|
|
28006
|
+
#
|
|
28007
|
+
# @!attribute [rw] next_token
|
|
28008
|
+
# The pagination token to use to request the next page of results.
|
|
28009
|
+
# Otherwise, this parameter is null.
|
|
28010
|
+
# @return [String]
|
|
28011
|
+
#
|
|
28012
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetSoftwareV2Response AWS API Documentation
|
|
28013
|
+
#
|
|
28014
|
+
class GetSoftwareV2Response < Struct.new(
|
|
28015
|
+
:software,
|
|
28016
|
+
:next_token)
|
|
28017
|
+
SENSITIVE = []
|
|
28018
|
+
include Aws::Structure
|
|
28019
|
+
end
|
|
28020
|
+
|
|
27802
28021
|
# Represents finding statistics grouped by `GroupedByField`.
|
|
27803
28022
|
#
|
|
27804
28023
|
# @!attribute [rw] group_by_field
|
|
@@ -34559,6 +34778,81 @@ module Aws::SecurityHub
|
|
|
34559
34778
|
include Aws::Structure
|
|
34560
34779
|
end
|
|
34561
34780
|
|
|
34781
|
+
# Enables the creation of criteria for software packages in Security
|
|
34782
|
+
# Hub.
|
|
34783
|
+
#
|
|
34784
|
+
# @!attribute [rw] string_filters
|
|
34785
|
+
# Enables filtering based on string field values.
|
|
34786
|
+
# @return [Array<Types::SoftwareStringFilter>]
|
|
34787
|
+
#
|
|
34788
|
+
# @!attribute [rw] nested_composite_filters
|
|
34789
|
+
# Provides an additional level of filtering, creating a three-layer
|
|
34790
|
+
# nested structure. The first layer is a `CompositeFilters` array with
|
|
34791
|
+
# a `CompositeOperator` (`AND`/`OR`). The second layer is a
|
|
34792
|
+
# `CompositeFilter` object that contains direct filters and
|
|
34793
|
+
# `NestedCompositeFilters`. The third layer is
|
|
34794
|
+
# `NestedCompositeFilters`, which contains additional filter
|
|
34795
|
+
# conditions.
|
|
34796
|
+
# @return [Array<Types::SoftwareCompositeFilter>]
|
|
34797
|
+
#
|
|
34798
|
+
# @!attribute [rw] operator
|
|
34799
|
+
# The logical operator used to combine multiple filter conditions.
|
|
34800
|
+
# @return [String]
|
|
34801
|
+
#
|
|
34802
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/SoftwareCompositeFilter AWS API Documentation
|
|
34803
|
+
#
|
|
34804
|
+
class SoftwareCompositeFilter < Struct.new(
|
|
34805
|
+
:string_filters,
|
|
34806
|
+
:nested_composite_filters,
|
|
34807
|
+
:operator)
|
|
34808
|
+
SENSITIVE = []
|
|
34809
|
+
include Aws::Structure
|
|
34810
|
+
end
|
|
34811
|
+
|
|
34812
|
+
# Enables filtering of software packages and the resources that contain
|
|
34813
|
+
# them.
|
|
34814
|
+
#
|
|
34815
|
+
# @!attribute [rw] composite_filters
|
|
34816
|
+
# A collection of complex filtering conditions that can be applied to
|
|
34817
|
+
# software packages.
|
|
34818
|
+
# @return [Array<Types::SoftwareCompositeFilter>]
|
|
34819
|
+
#
|
|
34820
|
+
# @!attribute [rw] composite_operator
|
|
34821
|
+
# The logical operator used to combine multiple filter conditions in
|
|
34822
|
+
# the structure.
|
|
34823
|
+
# @return [String]
|
|
34824
|
+
#
|
|
34825
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/SoftwareFilters AWS API Documentation
|
|
34826
|
+
#
|
|
34827
|
+
class SoftwareFilters < Struct.new(
|
|
34828
|
+
:composite_filters,
|
|
34829
|
+
:composite_operator)
|
|
34830
|
+
SENSITIVE = []
|
|
34831
|
+
include Aws::Structure
|
|
34832
|
+
end
|
|
34833
|
+
|
|
34834
|
+
# Defines the configuration for organizing and categorizing software
|
|
34835
|
+
# packages installed on your resources.
|
|
34836
|
+
#
|
|
34837
|
+
# @!attribute [rw] group_by_field
|
|
34838
|
+
# Specifies the attribute that software statistics should be grouped
|
|
34839
|
+
# by.
|
|
34840
|
+
# @return [String]
|
|
34841
|
+
#
|
|
34842
|
+
# @!attribute [rw] filters
|
|
34843
|
+
# The criteria used to select the software packages included in the
|
|
34844
|
+
# statistics. You can nest composite filters up to three levels deep.
|
|
34845
|
+
# @return [Types::SoftwareFilters]
|
|
34846
|
+
#
|
|
34847
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/SoftwareGroupByRule AWS API Documentation
|
|
34848
|
+
#
|
|
34849
|
+
class SoftwareGroupByRule < Struct.new(
|
|
34850
|
+
:group_by_field,
|
|
34851
|
+
:filters)
|
|
34852
|
+
SENSITIVE = []
|
|
34853
|
+
include Aws::Structure
|
|
34854
|
+
end
|
|
34855
|
+
|
|
34562
34856
|
# Information about a software package.
|
|
34563
34857
|
#
|
|
34564
34858
|
# @!attribute [rw] name
|
|
@@ -34625,6 +34919,146 @@ module Aws::SecurityHub
|
|
|
34625
34919
|
include Aws::Structure
|
|
34626
34920
|
end
|
|
34627
34921
|
|
|
34922
|
+
# Provides information about a resource that contains a software
|
|
34923
|
+
# package.
|
|
34924
|
+
#
|
|
34925
|
+
# @!attribute [rw] account_id
|
|
34926
|
+
# The Amazon Web Services account that recorded the resource data in
|
|
34927
|
+
# Security Hub.
|
|
34928
|
+
# @return [String]
|
|
34929
|
+
#
|
|
34930
|
+
# @!attribute [rw] resource_type
|
|
34931
|
+
# The type of resource, for example `AWS::EC2::Instance` or
|
|
34932
|
+
# `AWS::Lambda::Function`.
|
|
34933
|
+
# @return [String]
|
|
34934
|
+
#
|
|
34935
|
+
# @!attribute [rw] region
|
|
34936
|
+
# The Amazon Web Services Region that recorded the resource data in
|
|
34937
|
+
# Security Hub.
|
|
34938
|
+
# @return [String]
|
|
34939
|
+
#
|
|
34940
|
+
# @!attribute [rw] resource_id
|
|
34941
|
+
# The unique identifier for a resource.
|
|
34942
|
+
# @return [String]
|
|
34943
|
+
#
|
|
34944
|
+
# @!attribute [rw] resource_provider
|
|
34945
|
+
# The cloud provider where the resource exists. Valid values are `AWS`
|
|
34946
|
+
# and `Azure`.
|
|
34947
|
+
# @return [String]
|
|
34948
|
+
#
|
|
34949
|
+
# @!attribute [rw] resource_owner_org_id
|
|
34950
|
+
# The identifier of the cloud organization that owns the resource. For
|
|
34951
|
+
# Amazon Web Services resources, this is the Organizations ID. For
|
|
34952
|
+
# Azure resources, this is the Azure tenant ID.
|
|
34953
|
+
# @return [String]
|
|
34954
|
+
#
|
|
34955
|
+
# @!attribute [rw] resource_owner_account_id
|
|
34956
|
+
# The identifier of the cloud account that owns the resource. For
|
|
34957
|
+
# Amazon Web Services resources, this is the Amazon Web Services
|
|
34958
|
+
# account ID. For Azure resources, this is the Azure subscription ID.
|
|
34959
|
+
# @return [String]
|
|
34960
|
+
#
|
|
34961
|
+
# @!attribute [rw] resource_cloud_partition
|
|
34962
|
+
# The cloud partition where the resource exists. For Amazon Web
|
|
34963
|
+
# Services, valid values include `aws`, `aws-cn`, and `aws-us-gov`.
|
|
34964
|
+
# This field isn't returned for cloud providers that don't use
|
|
34965
|
+
# partitions.
|
|
34966
|
+
# @return [String]
|
|
34967
|
+
#
|
|
34968
|
+
# @!attribute [rw] resource_region
|
|
34969
|
+
# The native cloud region where the resource is located. For Amazon
|
|
34970
|
+
# Web Services, this is an Amazon Web Services Region (for example,
|
|
34971
|
+
# `us-east-1`). For Azure resources, this is the Azure region (for
|
|
34972
|
+
# example, `westus2`).
|
|
34973
|
+
# @return [String]
|
|
34974
|
+
#
|
|
34975
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/SoftwareResourceResult AWS API Documentation
|
|
34976
|
+
#
|
|
34977
|
+
class SoftwareResourceResult < Struct.new(
|
|
34978
|
+
:account_id,
|
|
34979
|
+
:resource_type,
|
|
34980
|
+
:region,
|
|
34981
|
+
:resource_id,
|
|
34982
|
+
:resource_provider,
|
|
34983
|
+
:resource_owner_org_id,
|
|
34984
|
+
:resource_owner_account_id,
|
|
34985
|
+
:resource_cloud_partition,
|
|
34986
|
+
:resource_region)
|
|
34987
|
+
SENSITIVE = []
|
|
34988
|
+
include Aws::Structure
|
|
34989
|
+
end
|
|
34990
|
+
|
|
34991
|
+
# Provides information about a software package installed on one or more
|
|
34992
|
+
# of your resources.
|
|
34993
|
+
#
|
|
34994
|
+
# @!attribute [rw] package_name
|
|
34995
|
+
# The name of the software package.
|
|
34996
|
+
# @return [String]
|
|
34997
|
+
#
|
|
34998
|
+
# @!attribute [rw] package_version
|
|
34999
|
+
# The version of the software package.
|
|
35000
|
+
# @return [String]
|
|
35001
|
+
#
|
|
35002
|
+
# @!attribute [rw] package_type
|
|
35003
|
+
# The type of the software package, for example `operating-system`,
|
|
35004
|
+
# `application`, or `library`.
|
|
35005
|
+
# @return [String]
|
|
35006
|
+
#
|
|
35007
|
+
# @!attribute [rw] resource_count
|
|
35008
|
+
# The number of resources that contain this software package. To list
|
|
35009
|
+
# these resources, call `GetSoftwareResourcesV2`.
|
|
35010
|
+
# @return [Integer]
|
|
35011
|
+
#
|
|
35012
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/SoftwareResult AWS API Documentation
|
|
35013
|
+
#
|
|
35014
|
+
class SoftwareResult < Struct.new(
|
|
35015
|
+
:package_name,
|
|
35016
|
+
:package_version,
|
|
35017
|
+
:package_type,
|
|
35018
|
+
:resource_count)
|
|
35019
|
+
SENSITIVE = []
|
|
35020
|
+
include Aws::Structure
|
|
35021
|
+
end
|
|
35022
|
+
|
|
35023
|
+
# Defines the data boundary for a software query. Scopes determine which
|
|
35024
|
+
# organizational units or organizations to retrieve data from.
|
|
35025
|
+
#
|
|
35026
|
+
# @!attribute [rw] aws_organizations
|
|
35027
|
+
# A list of Organizations scopes to include in the query results. Each
|
|
35028
|
+
# entry in the list specifies an organization or organizational unit
|
|
35029
|
+
# to include for the delegated administrator's account. If the list
|
|
35030
|
+
# specifies multiple entries, the entries are combined using OR logic.
|
|
35031
|
+
# @return [Array<Types::AwsOrganizationScope>]
|
|
35032
|
+
#
|
|
35033
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/SoftwareScopes AWS API Documentation
|
|
35034
|
+
#
|
|
35035
|
+
class SoftwareScopes < Struct.new(
|
|
35036
|
+
:aws_organizations)
|
|
35037
|
+
SENSITIVE = []
|
|
35038
|
+
include Aws::Structure
|
|
35039
|
+
end
|
|
35040
|
+
|
|
35041
|
+
# Enables filtering of software packages based on string field values.
|
|
35042
|
+
#
|
|
35043
|
+
# @!attribute [rw] field_name
|
|
35044
|
+
# The name of the field.
|
|
35045
|
+
# @return [String]
|
|
35046
|
+
#
|
|
35047
|
+
# @!attribute [rw] filter
|
|
35048
|
+
# The string value and comparison operator to filter on. Supported
|
|
35049
|
+
# comparisons are `EQUALS`, `NOT_EQUALS`, `PREFIX`, and
|
|
35050
|
+
# `PREFIX_NOT_EQUALS`.
|
|
35051
|
+
# @return [Types::StringFilter]
|
|
35052
|
+
#
|
|
35053
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/SoftwareStringFilter AWS API Documentation
|
|
35054
|
+
#
|
|
35055
|
+
class SoftwareStringFilter < Struct.new(
|
|
35056
|
+
:field_name,
|
|
35057
|
+
:filter)
|
|
35058
|
+
SENSITIVE = []
|
|
35059
|
+
include Aws::Structure
|
|
35060
|
+
end
|
|
35061
|
+
|
|
34628
35062
|
# A collection of finding attributes used to sort findings.
|
|
34629
35063
|
#
|
|
34630
35064
|
# @!attribute [rw] field
|
data/lib/aws-sdk-securityhub.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -5099,6 +5099,88 @@ module Aws
|
|
|
5099
5099
|
) -> _GetSecurityControlDefinitionResponseSuccess
|
|
5100
5100
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetSecurityControlDefinitionResponseSuccess
|
|
5101
5101
|
|
|
5102
|
+
interface _GetSoftwareResourcesV2ResponseSuccess
|
|
5103
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetSoftwareResourcesV2Response]
|
|
5104
|
+
def software_resources: () -> ::Array[Types::SoftwareResourceResult]
|
|
5105
|
+
def next_token: () -> ::String
|
|
5106
|
+
end
|
|
5107
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityHub/Client.html#get_software_resources_v2-instance_method
|
|
5108
|
+
def get_software_resources_v2: (
|
|
5109
|
+
package_name: ::String,
|
|
5110
|
+
package_type: ::String,
|
|
5111
|
+
?package_version: ::String,
|
|
5112
|
+
?filters: Params::software_filters,
|
|
5113
|
+
?scopes: {
|
|
5114
|
+
aws_organizations: Array[
|
|
5115
|
+
{
|
|
5116
|
+
organization_id: ::String?,
|
|
5117
|
+
organizational_unit_id: ::String?
|
|
5118
|
+
}
|
|
5119
|
+
]?
|
|
5120
|
+
},
|
|
5121
|
+
?sort_criteria: Array[
|
|
5122
|
+
{
|
|
5123
|
+
field: ::String?,
|
|
5124
|
+
sort_order: ("asc" | "desc")?
|
|
5125
|
+
}
|
|
5126
|
+
],
|
|
5127
|
+
?next_token: ::String,
|
|
5128
|
+
?max_results: ::Integer
|
|
5129
|
+
) -> _GetSoftwareResourcesV2ResponseSuccess
|
|
5130
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetSoftwareResourcesV2ResponseSuccess
|
|
5131
|
+
|
|
5132
|
+
interface _GetSoftwareStatisticsV2ResponseSuccess
|
|
5133
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetSoftwareStatisticsV2Response]
|
|
5134
|
+
def group_by_results: () -> ::Array[Types::GroupByResult]
|
|
5135
|
+
end
|
|
5136
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityHub/Client.html#get_software_statistics_v2-instance_method
|
|
5137
|
+
def get_software_statistics_v2: (
|
|
5138
|
+
group_by_rules: Array[
|
|
5139
|
+
{
|
|
5140
|
+
group_by_field: ("AccountId" | "PackageName" | "PackageVersion" | "PackageType" | "Region" | "ResourceRegion" | "ResourceType" | "ResourceId" | "ResourceProvider" | "ResourceOwnerAccountId" | "ResourceOwnerOrgId" | "ResourceCloudPartition"),
|
|
5141
|
+
filters: Params::software_filters?
|
|
5142
|
+
}
|
|
5143
|
+
],
|
|
5144
|
+
?scopes: {
|
|
5145
|
+
aws_organizations: Array[
|
|
5146
|
+
{
|
|
5147
|
+
organization_id: ::String?,
|
|
5148
|
+
organizational_unit_id: ::String?
|
|
5149
|
+
}
|
|
5150
|
+
]?
|
|
5151
|
+
},
|
|
5152
|
+
?sort_order: ("asc" | "desc"),
|
|
5153
|
+
?max_statistic_results: ::Integer
|
|
5154
|
+
) -> _GetSoftwareStatisticsV2ResponseSuccess
|
|
5155
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetSoftwareStatisticsV2ResponseSuccess
|
|
5156
|
+
|
|
5157
|
+
interface _GetSoftwareV2ResponseSuccess
|
|
5158
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetSoftwareV2Response]
|
|
5159
|
+
def software: () -> ::Array[Types::SoftwareResult]
|
|
5160
|
+
def next_token: () -> ::String
|
|
5161
|
+
end
|
|
5162
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SecurityHub/Client.html#get_software_v2-instance_method
|
|
5163
|
+
def get_software_v2: (
|
|
5164
|
+
?filters: Params::software_filters,
|
|
5165
|
+
?scopes: {
|
|
5166
|
+
aws_organizations: Array[
|
|
5167
|
+
{
|
|
5168
|
+
organization_id: ::String?,
|
|
5169
|
+
organizational_unit_id: ::String?
|
|
5170
|
+
}
|
|
5171
|
+
]?
|
|
5172
|
+
},
|
|
5173
|
+
?sort_criteria: Array[
|
|
5174
|
+
{
|
|
5175
|
+
field: ::String?,
|
|
5176
|
+
sort_order: ("asc" | "desc")?
|
|
5177
|
+
}
|
|
5178
|
+
],
|
|
5179
|
+
?next_token: ::String,
|
|
5180
|
+
?max_results: ::Integer
|
|
5181
|
+
) -> _GetSoftwareV2ResponseSuccess
|
|
5182
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetSoftwareV2ResponseSuccess
|
|
5183
|
+
|
|
5102
5184
|
interface _InviteMembersResponseSuccess
|
|
5103
5185
|
include ::Seahorse::Client::_ResponseSuccess[Types::InviteMembersResponse]
|
|
5104
5186
|
def unprocessed_accounts: () -> ::Array[Types::Result]
|
data/sig/params.rbs
CHANGED
|
@@ -1492,6 +1492,41 @@ module Aws
|
|
|
1492
1492
|
operator: ("AND" | "OR")?
|
|
1493
1493
|
}
|
|
1494
1494
|
|
|
1495
|
+
type software_filters = {
|
|
1496
|
+
composite_filters: Array[
|
|
1497
|
+
Params::software_composite_filter
|
|
1498
|
+
]?,
|
|
1499
|
+
composite_operator: ("AND" | "OR")?
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
type software_composite_filter = {
|
|
1503
|
+
string_filters: Array[
|
|
1504
|
+
{
|
|
1505
|
+
field_name: ("AccountId" | "PackageName" | "PackageVersion" | "PackageType" | "Region" | "ResourceRegion" | "ResourceType" | "ResourceId" | "ResourceProvider" | "ResourceOwnerAccountId" | "ResourceOwnerOrgId" | "ResourceCloudPartition")?,
|
|
1506
|
+
filter: {
|
|
1507
|
+
value: ::String?,
|
|
1508
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS" | "PREFIX_NOT_EQUALS" | "CONTAINS" | "NOT_CONTAINS" | "CONTAINS_WORD")?
|
|
1509
|
+
}?
|
|
1510
|
+
}
|
|
1511
|
+
]?,
|
|
1512
|
+
nested_composite_filters: Array[
|
|
1513
|
+
{
|
|
1514
|
+
string_filters: Array[
|
|
1515
|
+
{
|
|
1516
|
+
field_name: ("AccountId" | "PackageName" | "PackageVersion" | "PackageType" | "Region" | "ResourceRegion" | "ResourceType" | "ResourceId" | "ResourceProvider" | "ResourceOwnerAccountId" | "ResourceOwnerOrgId" | "ResourceCloudPartition")?,
|
|
1517
|
+
filter: {
|
|
1518
|
+
value: ::String?,
|
|
1519
|
+
comparison: ("EQUALS" | "PREFIX" | "NOT_EQUALS" | "PREFIX_NOT_EQUALS" | "CONTAINS" | "NOT_CONTAINS" | "CONTAINS_WORD")?
|
|
1520
|
+
}?
|
|
1521
|
+
}
|
|
1522
|
+
]?,
|
|
1523
|
+
nested_composite_filters: untyped?,
|
|
1524
|
+
operator: ("AND" | "OR")?
|
|
1525
|
+
}
|
|
1526
|
+
]?,
|
|
1527
|
+
operator: ("AND" | "OR")?
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1495
1530
|
end
|
|
1496
1531
|
end
|
|
1497
1532
|
end
|