Class: Aws::SecurityHub::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::SecurityHub::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb
Overview
An API client for SecurityHub. To construct a client, you need to configure a :region and :credentials.
client = Aws::SecurityHub::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#accept_administrator_invitation(params = {}) ⇒ Struct
We recommend using Organizations instead of Security Hub invitations to manage your member accounts. -
#accept_invitation(params = {}) ⇒ Struct
This method is deprecated.
-
#batch_delete_automation_rules(params = {}) ⇒ Types::BatchDeleteAutomationRulesResponse
Deletes one or more automation rules.
-
#batch_disable_standards(params = {}) ⇒ Types::BatchDisableStandardsResponse
Disables the standards specified by the provided
StandardsSubscriptionArns. -
#batch_enable_standards(params = {}) ⇒ Types::BatchEnableStandardsResponse
Enables the standards specified by the provided
StandardsArn. -
#batch_get_automation_rules(params = {}) ⇒ Types::BatchGetAutomationRulesResponse
Retrieves a list of details for automation rules based on rule Amazon Resource Names (ARNs).
-
#batch_get_configuration_policy_associations(params = {}) ⇒ Types::BatchGetConfigurationPolicyAssociationsResponse
Returns associations between an Security Hub configuration and a batch of target accounts, organizational units, or the root.
-
#batch_get_security_controls(params = {}) ⇒ Types::BatchGetSecurityControlsResponse
Provides details about a batch of security controls for the current Amazon Web Services account and Amazon Web Services Region.
-
#batch_get_standards_control_associations(params = {}) ⇒ Types::BatchGetStandardsControlAssociationsResponse
For a batch of security controls and standards, identifies whether each control is currently enabled or disabled in a standard.
-
#batch_import_findings(params = {}) ⇒ Types::BatchImportFindingsResponse
Imports security findings generated by a finding provider into Security Hub.
-
#batch_update_automation_rules(params = {}) ⇒ Types::BatchUpdateAutomationRulesResponse
Updates one or more automation rules based on rule Amazon Resource Names (ARNs) and input parameters.
-
#batch_update_findings(params = {}) ⇒ Types::BatchUpdateFindingsResponse
Used by Security Hub customers to update information about their investigation into one or more findings.
-
#batch_update_findings_v2(params = {}) ⇒ Types::BatchUpdateFindingsV2Response
Used by customers to update information about their investigation into a finding.
-
#batch_update_standards_control_associations(params = {}) ⇒ Types::BatchUpdateStandardsControlAssociationsResponse
For a batch of security controls and standards, this operation updates the enablement status of a control in a standard.
-
#create_action_target(params = {}) ⇒ Types::CreateActionTargetResponse
Creates a custom action target in Security Hub.
-
#create_aggregator_v2(params = {}) ⇒ Types::CreateAggregatorV2Response
Enables aggregation across Amazon Web Services Regions.
-
#create_automation_rule(params = {}) ⇒ Types::CreateAutomationRuleResponse
Creates an automation rule based on input parameters.
-
#create_automation_rule_v2(params = {}) ⇒ Types::CreateAutomationRuleV2Response
Creates a V2 automation rule.
-
#create_configuration_policy(params = {}) ⇒ Types::CreateConfigurationPolicyResponse
Creates a configuration policy with the defined configuration.
-
#create_connector_v2(params = {}) ⇒ Types::CreateConnectorV2Response
Grants permission to create a connectorV2 based on input parameters.
-
#create_finding_aggregator(params = {}) ⇒ Types::CreateFindingAggregatorResponse
The aggregation Region is now called the home Region. -
#create_insight(params = {}) ⇒ Types::CreateInsightResponse
Creates a custom insight in Security Hub.
-
#create_members(params = {}) ⇒ Types::CreateMembersResponse
Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the administrator account.
-
#create_ticket_v2(params = {}) ⇒ Types::CreateTicketV2Response
Grants permission to create a ticket in the chosen ITSM based on finding information for the provided finding metadata UID.
-
#decline_invitations(params = {}) ⇒ Types::DeclineInvitationsResponse
We recommend using Organizations instead of Security Hub invitations to manage your member accounts. -
#delete_action_target(params = {}) ⇒ Types::DeleteActionTargetResponse
Deletes a custom action target from Security Hub.
-
#delete_aggregator_v2(params = {}) ⇒ Struct
Deletes the Aggregator V2.
-
#delete_automation_rule_v2(params = {}) ⇒ Struct
Deletes a V2 automation rule.
-
#delete_configuration_policy(params = {}) ⇒ Struct
Deletes a configuration policy.
-
#delete_connector_v2(params = {}) ⇒ Struct
Grants permission to delete a connectorV2.
-
#delete_finding_aggregator(params = {}) ⇒ Struct
The aggregation Region is now called the home Region. -
#delete_insight(params = {}) ⇒ Types::DeleteInsightResponse
Deletes the insight specified by the
InsightArn. -
#delete_invitations(params = {}) ⇒ Types::DeleteInvitationsResponse
We recommend using Organizations instead of Security Hub invitations to manage your member accounts. -
#delete_members(params = {}) ⇒ Types::DeleteMembersResponse
Deletes the specified member accounts from Security Hub.
-
#describe_action_targets(params = {}) ⇒ Types::DescribeActionTargetsResponse
Returns a list of the custom action targets in Security Hub in your account.
-
#describe_hub(params = {}) ⇒ Types::DescribeHubResponse
Returns details about the Hub resource in your account, including the
HubArnand the time when you enabled Security Hub. -
#describe_organization_configuration(params = {}) ⇒ Types::DescribeOrganizationConfigurationResponse
Returns information about the way your organization is configured in Security Hub.
-
#describe_products(params = {}) ⇒ Types::DescribeProductsResponse
Returns information about product integrations in Security Hub.
-
#describe_products_v2(params = {}) ⇒ Types::DescribeProductsV2Response
Gets information about the product integration.
-
#describe_security_hub_v2(params = {}) ⇒ Types::DescribeSecurityHubV2Response
Returns details about the service resource in your account.
-
#describe_standards(params = {}) ⇒ Types::DescribeStandardsResponse
Returns a list of the available standards in Security Hub.
-
#describe_standards_controls(params = {}) ⇒ Types::DescribeStandardsControlsResponse
Returns a list of security standards controls.
-
#disable_import_findings_for_product(params = {}) ⇒ Struct
Disables the integration of the specified product with Security Hub.
-
#disable_organization_admin_account(params = {}) ⇒ Struct
Disables a Security Hub administrator account.
-
#disable_security_hub(params = {}) ⇒ Struct
Disables Security Hub in your account only in the current Amazon Web Services Region.
-
#disable_security_hub_v2(params = {}) ⇒ Struct
Disable the service for the current Amazon Web Services Region or specified Amazon Web Services Region.
-
#disassociate_from_administrator_account(params = {}) ⇒ Struct
Disassociates the current Security Hub member account from the associated administrator account.
-
#disassociate_from_master_account(params = {}) ⇒ Struct
This method is deprecated.
-
#disassociate_members(params = {}) ⇒ Struct
Disassociates the specified member accounts from the associated administrator account.
-
#enable_import_findings_for_product(params = {}) ⇒ Types::EnableImportFindingsForProductResponse
Enables the integration of a partner product with Security Hub.
-
#enable_organization_admin_account(params = {}) ⇒ Types::EnableOrganizationAdminAccountResponse
Designates the Security Hub administrator account for an organization.
-
#enable_security_hub(params = {}) ⇒ Struct
Enables Security Hub for your account in the current Region or the Region you specify in the request.
-
#enable_security_hub_v2(params = {}) ⇒ Types::EnableSecurityHubV2Response
Enables the service in account for the current Amazon Web Services Region or specified Amazon Web Services Region.
-
#get_administrator_account(params = {}) ⇒ Types::GetAdministratorAccountResponse
Provides the details for the Security Hub administrator account for the current member account.
-
#get_aggregator_v2(params = {}) ⇒ Types::GetAggregatorV2Response
Returns the configuration of the specified Aggregator V2.
-
#get_automation_rule_v2(params = {}) ⇒ Types::GetAutomationRuleV2Response
Returns an automation rule for the V2 service.
-
#get_configuration_policy(params = {}) ⇒ Types::GetConfigurationPolicyResponse
Provides information about a configuration policy.
-
#get_configuration_policy_association(params = {}) ⇒ Types::GetConfigurationPolicyAssociationResponse
Returns the association between a configuration and a target account, organizational unit, or the root.
-
#get_connector_v2(params = {}) ⇒ Types::GetConnectorV2Response
Grants permission to retrieve details for a connectorV2 based on connector id.
-
#get_enabled_standards(params = {}) ⇒ Types::GetEnabledStandardsResponse
Returns a list of the standards that are currently enabled.
-
#get_finding_aggregator(params = {}) ⇒ Types::GetFindingAggregatorResponse
The aggregation Region is now called the home Region. -
#get_finding_history(params = {}) ⇒ Types::GetFindingHistoryResponse
Returns the history of a Security Hub finding.
-
#get_finding_statistics_v2(params = {}) ⇒ Types::GetFindingStatisticsV2Response
Returns aggregated statistical data about findings.
-
#get_findings(params = {}) ⇒ Types::GetFindingsResponse
Returns a list of findings that match the specified criteria.
-
#get_findings_trends_v2(params = {}) ⇒ Types::GetFindingsTrendsV2Response
Returns findings trend data based on the specified criteria.
-
#get_findings_v2(params = {}) ⇒ Types::GetFindingsV2Response
Return a list of findings that match the specified criteria.
-
#get_insight_results(params = {}) ⇒ Types::GetInsightResultsResponse
Lists the results of the Security Hub insight specified by the insight ARN.
-
#get_insights(params = {}) ⇒ Types::GetInsightsResponse
Lists and describes insights for the specified insight ARNs.
-
#get_invitations_count(params = {}) ⇒ Types::GetInvitationsCountResponse
We recommend using Organizations instead of Security Hub invitations to manage your member accounts. -
#get_master_account(params = {}) ⇒ Types::GetMasterAccountResponse
This method is deprecated.
-
#get_members(params = {}) ⇒ Types::GetMembersResponse
Returns the details for the Security Hub member accounts for the specified account IDs.
-
#get_resources_statistics_v2(params = {}) ⇒ Types::GetResourcesStatisticsV2Response
Retrieves statistical information about Amazon Web Services resources and their associated security findings.
-
#get_resources_trends_v2(params = {}) ⇒ Types::GetResourcesTrendsV2Response
Returns resource trend data based on the specified criteria.
-
#get_resources_v2(params = {}) ⇒ Types::GetResourcesV2Response
Returns a list of resources.
-
#get_security_control_definition(params = {}) ⇒ Types::GetSecurityControlDefinitionResponse
Retrieves the definition of a security control.
-
#invite_members(params = {}) ⇒ Types::InviteMembersResponse
We recommend using Organizations instead of Security Hub invitations to manage your member accounts. -
#list_aggregators_v2(params = {}) ⇒ Types::ListAggregatorsV2Response
Retrieves a list of V2 aggregators.
-
#list_automation_rules(params = {}) ⇒ Types::ListAutomationRulesResponse
A list of automation rules and their metadata for the calling account.
-
#list_automation_rules_v2(params = {}) ⇒ Types::ListAutomationRulesV2Response
Returns a list of automation rules and metadata for the calling account.
-
#list_configuration_policies(params = {}) ⇒ Types::ListConfigurationPoliciesResponse
Lists the configuration policies that the Security Hub delegated administrator has created for your organization.
-
#list_configuration_policy_associations(params = {}) ⇒ Types::ListConfigurationPolicyAssociationsResponse
Provides information about the associations for your configuration policies and self-managed behavior.
-
#list_connectors_v2(params = {}) ⇒ Types::ListConnectorsV2Response
Grants permission to retrieve a list of connectorsV2 and their metadata for the calling account.
-
#list_enabled_products_for_import(params = {}) ⇒ Types::ListEnabledProductsForImportResponse
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
-
#list_finding_aggregators(params = {}) ⇒ Types::ListFindingAggregatorsResponse
If cross-Region aggregation is enabled, then
ListFindingAggregatorsreturns the Amazon Resource Name (ARN) of the finding aggregator. -
#list_invitations(params = {}) ⇒ Types::ListInvitationsResponse
We recommend using Organizations instead of Security Hub invitations to manage your member accounts. -
#list_members(params = {}) ⇒ Types::ListMembersResponse
Lists details about all member accounts for the current Security Hub administrator account.
-
#list_organization_admin_accounts(params = {}) ⇒ Types::ListOrganizationAdminAccountsResponse
Lists the Security Hub administrator accounts.
-
#list_security_control_definitions(params = {}) ⇒ Types::ListSecurityControlDefinitionsResponse
Lists all of the security controls that apply to a specified standard.
-
#list_standards_control_associations(params = {}) ⇒ Types::ListStandardsControlAssociationsResponse
Specifies whether a control is currently enabled or disabled in each enabled standard in the calling account.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Returns a list of tags associated with a resource.
-
#register_connector_v2(params = {}) ⇒ Types::RegisterConnectorV2Response
Grants permission to complete the authorization based on input parameters.
-
#start_configuration_policy_association(params = {}) ⇒ Types::StartConfigurationPolicyAssociationResponse
Associates a target account, organizational unit, or the root with a specified configuration.
-
#start_configuration_policy_disassociation(params = {}) ⇒ Struct
Disassociates a target account, organizational unit, or the root from a specified configuration.
-
#tag_resource(params = {}) ⇒ Struct
Adds one or more tags to a resource.
-
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from a resource.
-
#update_action_target(params = {}) ⇒ Struct
Updates the name and description of a custom action target in Security Hub.
-
#update_aggregator_v2(params = {}) ⇒ Types::UpdateAggregatorV2Response
Udpates the configuration for the Aggregator V2.
-
#update_automation_rule_v2(params = {}) ⇒ Struct
Updates a V2 automation rule.
-
#update_configuration_policy(params = {}) ⇒ Types::UpdateConfigurationPolicyResponse
Updates a configuration policy.
-
#update_connector_v2(params = {}) ⇒ Struct
Grants permission to update a connectorV2 based on its id and input parameters.
-
#update_finding_aggregator(params = {}) ⇒ Types::UpdateFindingAggregatorResponse
The aggregation Region is now called the home Region. -
#update_findings(params = {}) ⇒ Struct
UpdateFindingsis a deprecated operation. -
#update_insight(params = {}) ⇒ Struct
Updates the Security Hub insight identified by the specified insight ARN.
-
#update_organization_configuration(params = {}) ⇒ Struct
Updates the configuration of your organization in Security Hub.
-
#update_security_control(params = {}) ⇒ Struct
Updates the properties of a security control.
-
#update_security_hub_configuration(params = {}) ⇒ Struct
Updates configuration options for Security Hub.
-
#update_standards_control(params = {}) ⇒ Struct
Used to control whether an individual security standard control is enabled or disabled.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
473 474 475 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 473 def initialize(*args) super end |
Instance Method Details
#accept_administrator_invitation(params = {}) ⇒ Struct
Accepts the invitation to be a member account and be monitored by the Security Hub administrator account that the invitation was sent from.
This operation is only used by member accounts that are not added through Organizations.
When the member account accepts the invitation, permission is granted to the administrator account to view findings generated in the member account.
533 534 535 536 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 533 def accept_administrator_invitation(params = {}, = {}) req = build_request(:accept_administrator_invitation, params) req.send_request() end |
#accept_invitation(params = {}) ⇒ Struct
This method is deprecated. Instead, use
AcceptAdministratorInvitation.
The Security Hub console continues to use AcceptInvitation. It will
eventually change to use AcceptAdministratorInvitation. Any IAM
policies that specifically control access to this function must
continue to use AcceptInvitation. You should also add
AcceptAdministratorInvitation to your policies to ensure that the
correct permissions are in place after the console begins to use
AcceptAdministratorInvitation.
Accepts the invitation to be a member account and be monitored by the Security Hub administrator account that the invitation was sent from.
This operation is only used by member accounts that are not added through Organizations.
When the member account accepts the invitation, permission is granted to the administrator account to view findings generated in the member account.
580 581 582 583 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 580 def accept_invitation(params = {}, = {}) req = build_request(:accept_invitation, params) req.send_request() end |
#batch_delete_automation_rules(params = {}) ⇒ Types::BatchDeleteAutomationRulesResponse
Deletes one or more automation rules.
641 642 643 644 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 641 def batch_delete_automation_rules(params = {}, = {}) req = build_request(:batch_delete_automation_rules, params) req.send_request() end |
#batch_disable_standards(params = {}) ⇒ Types::BatchDisableStandardsResponse
Disables the standards specified by the provided
StandardsSubscriptionArns.
For more information, see Security Standards section of the Security Hub User Guide.
708 709 710 711 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 708 def batch_disable_standards(params = {}, = {}) req = build_request(:batch_disable_standards, params) req.send_request() end |
#batch_enable_standards(params = {}) ⇒ Types::BatchEnableStandardsResponse
Enables the standards specified by the provided StandardsArn. To
obtain the ARN for a standard, use the DescribeStandards operation.
For more information, see the Security Standards section of the Security Hub User Guide.
785 786 787 788 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 785 def batch_enable_standards(params = {}, = {}) req = build_request(:batch_enable_standards, params) req.send_request() end |
#batch_get_automation_rules(params = {}) ⇒ Types::BatchGetAutomationRulesResponse
Retrieves a list of details for automation rules based on rule Amazon Resource Names (ARNs).
1073 1074 1075 1076 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 1073 def batch_get_automation_rules(params = {}, = {}) req = build_request(:batch_get_automation_rules, params) req.send_request() end |
#batch_get_configuration_policy_associations(params = {}) ⇒ Types::BatchGetConfigurationPolicyAssociationsResponse
Returns associations between an Security Hub configuration and a batch of target accounts, organizational units, or the root. Only the Security Hub delegated administrator can invoke this operation from the home Region. A configuration can refer to a configuration policy or to a self-managed configuration.
1175 1176 1177 1178 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 1175 def batch_get_configuration_policy_associations(params = {}, = {}) req = build_request(:batch_get_configuration_policy_associations, params) req.send_request() end |
#batch_get_security_controls(params = {}) ⇒ Types::BatchGetSecurityControlsResponse
Provides details about a batch of security controls for the current Amazon Web Services account and Amazon Web Services Region.
1289 1290 1291 1292 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 1289 def batch_get_security_controls(params = {}, = {}) req = build_request(:batch_get_security_controls, params) req.send_request() end |
#batch_get_standards_control_associations(params = {}) ⇒ Types::BatchGetStandardsControlAssociationsResponse
For a batch of security controls and standards, identifies whether each control is currently enabled or disabled in a standard.
Calls to this operation return a RESOURCE_NOT_FOUND_EXCEPTION error
when the standard subscription for the association has a
NOT_READY_FOR_UPDATES value for StandardsControlsUpdatable.
1398 1399 1400 1401 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 1398 def batch_get_standards_control_associations(params = {}, = {}) req = build_request(:batch_get_standards_control_associations, params) req.send_request() end |
#batch_import_findings(params = {}) ⇒ Types::BatchImportFindingsResponse
Imports security findings generated by a finding provider into Security Hub. This action is requested by the finding provider to import its findings into Security Hub.
BatchImportFindings must be called by one of the following:
The Amazon Web Services account that is associated with a finding if you are using the default product ARN or are a partner sending findings from within a customer's Amazon Web Services account. In these cases, the identifier of the account that you are calling
BatchImportFindingsfrom needs to be the same as theAwsAccountIdattribute for the finding.An Amazon Web Services account that Security Hub has allow-listed for an official partner integration. In this case, you can call
BatchImportFindingsfrom the allow-listed account and send findings from different customer accounts in the same batch.
The maximum allowed size for a finding is 240 Kb. An error is returned for any finding larger than 240 Kb.
After a finding is created, BatchImportFindings cannot be used to
update the following finding fields and objects, which Security Hub
customers use to manage their investigation workflow.
NoteUserDefinedFieldsVerificationStateWorkflow
Finding providers also should not use BatchImportFindings to update
the following attributes.
ConfidenceCriticalityRelatedFindingsSeverityTypes
Instead, finding providers use FindingProviderFields to provide
values for these attributes.
1530 1531 1532 1533 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 1530 def batch_import_findings(params = {}, = {}) req = build_request(:batch_import_findings, params) req.send_request() end |
#batch_update_automation_rules(params = {}) ⇒ Types::BatchUpdateAutomationRulesResponse
Updates one or more automation rules based on rule Amazon Resource Names (ARNs) and input parameters.
1893 1894 1895 1896 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 1893 def batch_update_automation_rules(params = {}, = {}) req = build_request(:batch_update_automation_rules, params) req.send_request() end |
#batch_update_findings(params = {}) ⇒ Types::BatchUpdateFindingsResponse
Used by Security Hub customers to update information about their investigation into one or more findings. Requested by administrator accounts or member accounts. Administrator accounts can update findings for their account and their member accounts. A member account can update findings only for their own account. Administrator and member accounts can use this operation to update the following fields and objects for one or more findings:
ConfidenceCriticalityNoteRelatedFindingsSeverityTypesUserDefinedFieldsVerificationStateWorkflow
If you use this operation to update a finding, your updates don’t
affect the value for the UpdatedAt field of the finding. Also note
that it can take several minutes for Security Hub to process your
request and update each finding specified in the request.
You can configure IAM policies to restrict access to fields and field values. For example, you might not want member accounts to be able to suppress findings or change the finding severity. For more information see Configuring access to BatchUpdateFindings in the Security Hub User Guide.
2127 2128 2129 2130 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 2127 def batch_update_findings(params = {}, = {}) req = build_request(:batch_update_findings, params) req.send_request() end |
#batch_update_findings_v2(params = {}) ⇒ Types::BatchUpdateFindingsV2Response
Used by customers to update information about their investigation into
a finding. Requested by delegated administrator accounts or member
accounts. Delegated administrator accounts can update findings for
their account and their member accounts. Member accounts can update
findings for their account. BatchUpdateFindings and
BatchUpdateFindingV2 both use securityhub:BatchUpdateFindings in
the Action element of an IAM policy statement. You must have
permission to perform the securityhub:BatchUpdateFindings action.
Updates from BatchUpdateFindingsV2 don't affect the value of
finding_info.modified_time, finding_info.modified_time_dt, time,
time_dt for a finding.
2209 2210 2211 2212 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 2209 def batch_update_findings_v2(params = {}, = {}) req = build_request(:batch_update_findings_v2, params) req.send_request() end |
#batch_update_standards_control_associations(params = {}) ⇒ Types::BatchUpdateStandardsControlAssociationsResponse
For a batch of security controls and standards, this operation updates the enablement status of a control in a standard.
2295 2296 2297 2298 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 2295 def batch_update_standards_control_associations(params = {}, = {}) req = build_request(:batch_update_standards_control_associations, params) req.send_request() end |
#create_action_target(params = {}) ⇒ Types::CreateActionTargetResponse
Creates a custom action target in Security Hub.
You can use custom actions on findings and insights in Security Hub to trigger target actions in Amazon CloudWatch Events.
2352 2353 2354 2355 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 2352 def create_action_target(params = {}, = {}) req = build_request(:create_action_target, params) req.send_request() end |
#create_aggregator_v2(params = {}) ⇒ Types::CreateAggregatorV2Response
Enables aggregation across Amazon Web Services Regions.
2404 2405 2406 2407 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 2404 def create_aggregator_v2(params = {}, = {}) req = build_request(:create_aggregator_v2, params) req.send_request() end |
#create_automation_rule(params = {}) ⇒ Types::CreateAutomationRuleResponse
Creates an automation rule based on input parameters.
2837 2838 2839 2840 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 2837 def create_automation_rule(params = {}, = {}) req = build_request(:create_automation_rule, params) req.send_request() end |
#create_automation_rule_v2(params = {}) ⇒ Types::CreateAutomationRuleV2Response
Creates a V2 automation rule.
2984 2985 2986 2987 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 2984 def create_automation_rule_v2(params = {}, = {}) req = build_request(:create_automation_rule_v2, params) req.send_request() end |
#create_configuration_policy(params = {}) ⇒ Types::CreateConfigurationPolicyResponse
Creates a configuration policy with the defined configuration. Only the Security Hub delegated administrator can invoke this operation from the home Region.
3179 3180 3181 3182 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 3179 def create_configuration_policy(params = {}, = {}) req = build_request(:create_configuration_policy, params) req.send_request() end |
#create_connector_v2(params = {}) ⇒ Types::CreateConnectorV2Response
Grants permission to create a connectorV2 based on input parameters.
3247 3248 3249 3250 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 3247 def create_connector_v2(params = {}, = {}) req = build_request(:create_connector_v2, params) req.send_request() end |
#create_finding_aggregator(params = {}) ⇒ Types::CreateFindingAggregatorResponse
Used to enable cross-Region aggregation. This operation can be invoked from the home Region only.
For information about how cross-Region aggregation works, see Understanding cross-Region aggregation in Security Hub in the Security Hub User Guide.
3358 3359 3360 3361 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 3358 def create_finding_aggregator(params = {}, = {}) req = build_request(:create_finding_aggregator, params) req.send_request() end |
#create_insight(params = {}) ⇒ Types::CreateInsightResponse
Creates a custom insight in Security Hub. An insight is a consolidation of findings that relate to a security issue that requires attention or remediation.
To group the related findings in the insight, use the
GroupByAttribute.
4129 4130 4131 4132 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4129 def create_insight(params = {}, = {}) req = build_request(:create_insight, params) req.send_request() end |
#create_members(params = {}) ⇒ Types::CreateMembersResponse
Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the administrator account. If you are integrated with Organizations, then the administrator account is designated by the organization management account.
CreateMembers is always used to add accounts that are not
organization members.
For accounts that are managed using Organizations, CreateMembers is
only used in the following cases:
Security Hub is not configured to automatically add new organization accounts.
The account was disassociated or deleted in Security Hub.
This action can only be used by an account that has Security Hub
enabled. To enable Security Hub, you can use the EnableSecurityHub
operation.
For accounts that are not organization members, you create the account
association and then send an invitation to the member account. To send
the invitation, you use the InviteMembers operation. If the account
owner accepts the invitation, the account becomes a member account in
Security Hub.
Accounts that are managed using Organizations don't receive an invitation. They automatically become a member account in Security Hub.
If the organization account does not have Security Hub enabled, then Security Hub and the default standards are automatically enabled. Note that Security Hub cannot be enabled automatically for the organization management account. The organization management account must enable Security Hub before the administrator account enables it as a member account.
For organization accounts that already have Security Hub enabled, Security Hub does not make any other changes to those accounts. It does not change their enabled standards or controls.
A permissions policy is added that permits the administrator account to view the findings generated in the member account.
To remove the association between the administrator and member
accounts, use the DisassociateFromMasterAccount or
DisassociateMembers operation.
4236 4237 4238 4239 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4236 def create_members(params = {}, = {}) req = build_request(:create_members, params) req.send_request() end |
#create_ticket_v2(params = {}) ⇒ Types::CreateTicketV2Response
Grants permission to create a ticket in the chosen ITSM based on finding information for the provided finding metadata UID.
4284 4285 4286 4287 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4284 def create_ticket_v2(params = {}, = {}) req = build_request(:create_ticket_v2, params) req.send_request() end |
#decline_invitations(params = {}) ⇒ Types::DeclineInvitationsResponse
Declines invitations to become a Security Hub member account.
A prospective member account uses this operation to decline an invitation to become a member.
Only member accounts that aren't part of an Amazon Web Services organization should use this operation. Organization accounts don't receive invitations.
4352 4353 4354 4355 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4352 def decline_invitations(params = {}, = {}) req = build_request(:decline_invitations, params) req.send_request() end |
#delete_action_target(params = {}) ⇒ Types::DeleteActionTargetResponse
Deletes a custom action target from Security Hub.
Deleting a custom action target does not affect any findings or insights that were already sent to Amazon CloudWatch Events using the custom action.
4400 4401 4402 4403 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4400 def delete_action_target(params = {}, = {}) req = build_request(:delete_action_target, params) req.send_request() end |
#delete_aggregator_v2(params = {}) ⇒ Struct
Deletes the Aggregator V2.
4422 4423 4424 4425 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4422 def delete_aggregator_v2(params = {}, = {}) req = build_request(:delete_aggregator_v2, params) req.send_request() end |
#delete_automation_rule_v2(params = {}) ⇒ Struct
Deletes a V2 automation rule.
4444 4445 4446 4447 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4444 def delete_automation_rule_v2(params = {}, = {}) req = build_request(:delete_automation_rule_v2, params) req.send_request() end |
#delete_configuration_policy(params = {}) ⇒ Struct
Deletes a configuration policy. Only the Security Hub delegated
administrator can invoke this operation from the home Region. For the
deletion to succeed, you must first disassociate a configuration
policy from target accounts, organizational units, or the root by
invoking the StartConfigurationPolicyDisassociation operation.
4480 4481 4482 4483 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4480 def delete_configuration_policy(params = {}, = {}) req = build_request(:delete_configuration_policy, params) req.send_request() end |
#delete_connector_v2(params = {}) ⇒ Struct
Grants permission to delete a connectorV2.
4502 4503 4504 4505 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4502 def delete_connector_v2(params = {}, = {}) req = build_request(:delete_connector_v2, params) req.send_request() end |
#delete_finding_aggregator(params = {}) ⇒ Struct
Deletes a finding aggregator. When you delete the finding aggregator, you stop cross-Region aggregation. Finding replication stops occurring from the linked Regions to the home Region.
When you stop cross-Region aggregation, findings that were already replicated and sent to the home Region are still visible from the home Region. However, new findings and finding updates are no longer replicated and sent to the home Region.
4546 4547 4548 4549 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4546 def delete_finding_aggregator(params = {}, = {}) req = build_request(:delete_finding_aggregator, params) req.send_request() end |
#delete_insight(params = {}) ⇒ Types::DeleteInsightResponse
Deletes the insight specified by the InsightArn.
4588 4589 4590 4591 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4588 def delete_insight(params = {}, = {}) req = build_request(:delete_insight, params) req.send_request() end |
#delete_invitations(params = {}) ⇒ Types::DeleteInvitationsResponse
Deletes invitations to become a Security Hub member account.
A Security Hub administrator account can use this operation to delete invitations sent to one or more prospective member accounts.
This operation is only used to delete invitations that are sent to prospective member accounts that aren't part of an Amazon Web Services organization. Organization accounts don't receive invitations.
4657 4658 4659 4660 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4657 def delete_invitations(params = {}, = {}) req = build_request(:delete_invitations, params) req.send_request() end |
#delete_members(params = {}) ⇒ Types::DeleteMembersResponse
Deletes the specified member accounts from Security Hub.
You can invoke this API only to delete accounts that became members through invitation. You can't invoke this API to delete accounts that belong to an Organizations organization.
4710 4711 4712 4713 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4710 def delete_members(params = {}, = {}) req = build_request(:delete_members, params) req.send_request() end |
#describe_action_targets(params = {}) ⇒ Types::DescribeActionTargetsResponse
Returns a list of the custom action targets in Security Hub in your account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4784 4785 4786 4787 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4784 def describe_action_targets(params = {}, = {}) req = build_request(:describe_action_targets, params) req.send_request() end |
#describe_hub(params = {}) ⇒ Types::DescribeHubResponse
Returns details about the Hub resource in your account, including the
HubArn and the time when you enabled Security Hub.
4837 4838 4839 4840 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4837 def describe_hub(params = {}, = {}) req = build_request(:describe_hub, params) req.send_request() end |
#describe_organization_configuration(params = {}) ⇒ Types::DescribeOrganizationConfigurationResponse
Returns information about the way your organization is configured in Security Hub. Only the Security Hub administrator account can invoke this operation.
4886 4887 4888 4889 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4886 def describe_organization_configuration(params = {}, = {}) req = build_request(:describe_organization_configuration, params) req.send_request() end |
#describe_products(params = {}) ⇒ Types::DescribeProductsResponse
Returns information about product integrations in Security Hub.
You can optionally provide an integration ARN. If you provide an integration ARN, then the results only include that integration.
If you don't provide an integration ARN, then the results include all of the available product integrations.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4986 4987 4988 4989 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 4986 def describe_products(params = {}, = {}) req = build_request(:describe_products, params) req.send_request() end |
#describe_products_v2(params = {}) ⇒ Types::DescribeProductsV2Response
Gets information about the product integration.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5034 5035 5036 5037 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5034 def describe_products_v2(params = {}, = {}) req = build_request(:describe_products_v2, params) req.send_request() end |
#describe_security_hub_v2(params = {}) ⇒ Types::DescribeSecurityHubV2Response
Returns details about the service resource in your account.
5055 5056 5057 5058 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5055 def describe_security_hub_v2(params = {}, = {}) req = build_request(:describe_security_hub_v2, params) req.send_request() end |
#describe_standards(params = {}) ⇒ Types::DescribeStandardsResponse
Returns a list of the available standards in Security Hub.
For each standard, the results include the standard ARN, the name, and a description.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5144 5145 5146 5147 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5144 def describe_standards(params = {}, = {}) req = build_request(:describe_standards, params) req.send_request() end |
#describe_standards_controls(params = {}) ⇒ Types::DescribeStandardsControlsResponse
Returns a list of security standards controls.
For each control, the results include information about whether it is currently enabled, the severity, and a link to remediation information.
This operation returns an empty list for standard subscriptions where
StandardsControlsUpdatable has value NOT_READY_FOR_UPDATES.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
5255 5256 5257 5258 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5255 def describe_standards_controls(params = {}, = {}) req = build_request(:describe_standards_controls, params) req.send_request() end |
#disable_import_findings_for_product(params = {}) ⇒ Struct
Disables the integration of the specified product with Security Hub. After the integration is disabled, findings from that product are no longer sent to Security Hub.
5289 5290 5291 5292 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5289 def disable_import_findings_for_product(params = {}, = {}) req = build_request(:disable_import_findings_for_product, params) req.send_request() end |
#disable_organization_admin_account(params = {}) ⇒ Struct
Disables a Security Hub administrator account. Can only be called by the organization management account.
5328 5329 5330 5331 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5328 def disable_organization_admin_account(params = {}, = {}) req = build_request(:disable_organization_admin_account, params) req.send_request() end |
#disable_security_hub(params = {}) ⇒ Struct
Disables Security Hub in your account only in the current Amazon Web Services Region. To disable Security Hub in all Regions, you must submit one request per Region where you have enabled Security Hub.
You can't disable Security Hub in an account that is currently the Security Hub administrator.
When you disable Security Hub, your existing findings and insights and any Security Hub configuration settings are deleted after 90 days and cannot be recovered. Any standards that were enabled are disabled, and your administrator and member account associations are removed.
If you want to save your existing findings, you must export them before you disable Security Hub.
5362 5363 5364 5365 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5362 def disable_security_hub(params = {}, = {}) req = build_request(:disable_security_hub, params) req.send_request() end |
#disable_security_hub_v2(params = {}) ⇒ Struct
Disable the service for the current Amazon Web Services Region or specified Amazon Web Services Region.
5376 5377 5378 5379 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5376 def disable_security_hub_v2(params = {}, = {}) req = build_request(:disable_security_hub_v2, params) req.send_request() end |
#disassociate_from_administrator_account(params = {}) ⇒ Struct
Disassociates the current Security Hub member account from the associated administrator account.
This operation is only used by accounts that are not part of an organization. For organization accounts, only the administrator account can disassociate a member account.
5402 5403 5404 5405 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5402 def disassociate_from_administrator_account(params = {}, = {}) req = build_request(:disassociate_from_administrator_account, params) req.send_request() end |
#disassociate_from_master_account(params = {}) ⇒ Struct
This method is deprecated. Instead, use
DisassociateFromAdministratorAccount.
The Security Hub console continues to use
DisassociateFromMasterAccount. It will eventually change to use
DisassociateFromAdministratorAccount. Any IAM policies that
specifically control access to this function must continue to use
DisassociateFromMasterAccount. You should also add
DisassociateFromAdministratorAccount to your policies to ensure that
the correct permissions are in place after the console begins to use
DisassociateFromAdministratorAccount.
Disassociates the current Security Hub member account from the associated administrator account.
This operation is only used by accounts that are not part of an organization. For organization accounts, only the administrator account can disassociate a member account.
5432 5433 5434 5435 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5432 def disassociate_from_master_account(params = {}, = {}) req = build_request(:disassociate_from_master_account, params) req.send_request() end |
#disassociate_members(params = {}) ⇒ Struct
Disassociates the specified member accounts from the associated administrator account.
Can be used to disassociate both accounts that are managed using Organizations and accounts that were invited manually.
5471 5472 5473 5474 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5471 def disassociate_members(params = {}, = {}) req = build_request(:disassociate_members, params) req.send_request() end |
#enable_import_findings_for_product(params = {}) ⇒ Types::EnableImportFindingsForProductResponse
Enables the integration of a partner product with Security Hub. Integrated products send findings to Security Hub.
When you enable a product integration, a permissions policy that grants permission for the product to send findings to Security Hub is applied.
5519 5520 5521 5522 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5519 def enable_import_findings_for_product(params = {}, = {}) req = build_request(:enable_import_findings_for_product, params) req.send_request() end |
#enable_organization_admin_account(params = {}) ⇒ Types::EnableOrganizationAdminAccountResponse
Designates the Security Hub administrator account for an organization. Can only be called by the organization management account.
5566 5567 5568 5569 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5566 def enable_organization_admin_account(params = {}, = {}) req = build_request(:enable_organization_admin_account, params) req.send_request() end |
#enable_security_hub(params = {}) ⇒ Struct
Enables Security Hub for your account in the current Region or the Region you specify in the request.
When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from other services that are integrated with Security Hub.
When you use the EnableSecurityHub operation to enable Security Hub,
you also automatically enable the following standards:
Center for Internet Security (CIS) Amazon Web Services Foundations Benchmark v1.2.0
Amazon Web Services Foundational Security Best Practices
Other standards are not automatically enabled.
To opt out of automatically enabled standards, set
EnableDefaultStandards to false.
After you enable Security Hub, to enable a standard, use the
BatchEnableStandards operation. To disable a standard, use the
BatchDisableStandards operation.
To learn more, see the setup information in the Security Hub User Guide.
5659 5660 5661 5662 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5659 def enable_security_hub(params = {}, = {}) req = build_request(:enable_security_hub, params) req.send_request() end |
#enable_security_hub_v2(params = {}) ⇒ Types::EnableSecurityHubV2Response
Enables the service in account for the current Amazon Web Services Region or specified Amazon Web Services Region.
5690 5691 5692 5693 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5690 def enable_security_hub_v2(params = {}, = {}) req = build_request(:enable_security_hub_v2, params) req.send_request() end |
#get_administrator_account(params = {}) ⇒ Types::GetAdministratorAccountResponse
Provides the details for the Security Hub administrator account for the current member account.
Can be used by both member accounts that are managed using Organizations and accounts that were invited manually.
5734 5735 5736 5737 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5734 def get_administrator_account(params = {}, = {}) req = build_request(:get_administrator_account, params) req.send_request() end |
#get_aggregator_v2(params = {}) ⇒ Types::GetAggregatorV2Response
Returns the configuration of the specified Aggregator V2.
5769 5770 5771 5772 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5769 def get_aggregator_v2(params = {}, = {}) req = build_request(:get_aggregator_v2, params) req.send_request() end |
#get_automation_rule_v2(params = {}) ⇒ Types::GetAutomationRuleV2Response
Returns an automation rule for the V2 service.
5851 5852 5853 5854 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5851 def get_automation_rule_v2(params = {}, = {}) req = build_request(:get_automation_rule_v2, params) req.send_request() end |
#get_configuration_policy(params = {}) ⇒ Types::GetConfigurationPolicyResponse
Provides information about a configuration policy. Only the Security Hub delegated administrator can invoke this operation from the home Region.
5961 5962 5963 5964 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 5961 def get_configuration_policy(params = {}, = {}) req = build_request(:get_configuration_policy, params) req.send_request() end |
#get_configuration_policy_association(params = {}) ⇒ Types::GetConfigurationPolicyAssociationResponse
Returns the association between a configuration and a target account, organizational unit, or the root. The configuration can be a configuration policy or self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.
6033 6034 6035 6036 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 6033 def get_configuration_policy_association(params = {}, = {}) req = build_request(:get_configuration_policy_association, params) req.send_request() end |
#get_connector_v2(params = {}) ⇒ Types::GetConnectorV2Response
Grants permission to retrieve details for a connectorV2 based on connector id.
6087 6088 6089 6090 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 6087 def get_connector_v2(params = {}, = {}) req = build_request(:get_connector_v2, params) req.send_request() end |
#get_enabled_standards(params = {}) ⇒ Types::GetEnabledStandardsResponse
Returns a list of the standards that are currently enabled.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6165 6166 6167 6168 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 6165 def get_enabled_standards(params = {}, = {}) req = build_request(:get_enabled_standards, params) req.send_request() end |
#get_finding_aggregator(params = {}) ⇒ Types::GetFindingAggregatorResponse
Returns the current configuration in the calling account for cross-Region aggregation. A finding aggregator is a resource that establishes the home Region and any linked Regions.
6227 6228 6229 6230 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 6227 def get_finding_aggregator(params = {}, = {}) req = build_request(:get_finding_aggregator, params) req.send_request() end |
#get_finding_history(params = {}) ⇒ Types::GetFindingHistoryResponse
Returns the history of a Security Hub finding. The history includes
changes made to any fields in the Amazon Web Services Security Finding
Format (ASFF) except top-level timestamp fields, such as the
CreatedAt and UpdatedAt fields.
This operation might return fewer results than the maximum number of
results (MaxResults) specified in a request, even when more results
are available. If this occurs, the response includes a NextToken
value, which you should use to retrieve the next set of results in the
response. The presence of a NextToken value in a response doesn't
necessarily indicate that the results are incomplete. However, you
should continue to specify a NextToken value until you receive a
response that doesn't include this value.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
6389 6390 6391 6392 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 6389 def get_finding_history(params = {}, = {}) req = build_request(:get_finding_history, params) req.send_request() end |
#get_finding_statistics_v2(params = {}) ⇒ Types::GetFindingStatisticsV2Response
Returns aggregated statistical data about findings.
GetFindingStatisticsV2 use securityhub:GetAdhocInsightResults in
the Action element of an IAM policy statement. You must have
permission to perform the s action.
6510 6511 6512 6513 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 6510 def get_finding_statistics_v2(params = {}, = {}) req = build_request(:get_finding_statistics_v2, params) req.send_request() end |
#get_findings(params = {}) ⇒ Types::GetFindingsResponse
Returns a list of findings that match the specified criteria.
If cross-Region aggregation is enabled, then when you call
GetFindings from the home Region, the results include all of the
matching findings from both the home Region and linked Regions.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
7375 7376 7377 7378 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 7375 def get_findings(params = {}, = {}) req = build_request(:get_findings, params) req.send_request() end |
#get_findings_trends_v2(params = {}) ⇒ Types::GetFindingsTrendsV2Response
Returns findings trend data based on the specified criteria. This operation helps you analyze patterns and changes in findings over time.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
7459 7460 7461 7462 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 7459 def get_findings_trends_v2(params = {}, = {}) req = build_request(:get_findings_trends_v2, params) req.send_request() end |
#get_findings_v2(params = {}) ⇒ Types::GetFindingsV2Response
Return a list of findings that match the specified criteria.
GetFindings and GetFindingsV2 both use securityhub:GetFindings
in the Action element of an IAM policy statement. You must have
permission to perform the securityhub:GetFindings action.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
7587 7588 7589 7590 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 7587 def get_findings_v2(params = {}, = {}) req = build_request(:get_findings_v2, params) req.send_request() end |
#get_insight_results(params = {}) ⇒ Types::GetInsightResultsResponse
Lists the results of the Security Hub insight specified by the insight ARN.
7647 7648 7649 7650 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 7647 def get_insight_results(params = {}, = {}) req = build_request(:get_insight_results, params) req.send_request() end |
#get_insights(params = {}) ⇒ Types::GetInsightsResponse
Lists and describes insights for the specified insight ARNs.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
8093 8094 8095 8096 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 8093 def get_insights(params = {}, = {}) req = build_request(:get_insights, params) req.send_request() end |
#get_invitations_count(params = {}) ⇒ Types::GetInvitationsCountResponse
Returns the count of all Security Hub membership invitations that were sent to the calling member account, not including the currently accepted invitation.
8139 8140 8141 8142 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 8139 def get_invitations_count(params = {}, = {}) req = build_request(:get_invitations_count, params) req.send_request() end |
#get_master_account(params = {}) ⇒ Types::GetMasterAccountResponse
This method is deprecated. Instead, use GetAdministratorAccount.
The Security Hub console continues to use GetMasterAccount. It will
eventually change to use GetAdministratorAccount. Any IAM policies
that specifically control access to this function must continue to use
GetMasterAccount. You should also add GetAdministratorAccount to
your policies to ensure that the correct permissions are in place
after the console begins to use GetAdministratorAccount.
Provides the details for the Security Hub administrator account for the current member account.
Can be used by both member accounts that are managed using Organizations and accounts that were invited manually.
8174 8175 8176 8177 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 8174 def get_master_account(params = {}, = {}) req = build_request(:get_master_account, params) req.send_request() end |
#get_members(params = {}) ⇒ Types::GetMembersResponse
Returns the details for the Security Hub member accounts for the specified account IDs.
An administrator account can be either the delegated Security Hub administrator account for an organization or an administrator account that enabled Security Hub manually.
The results include both member accounts that are managed using Organizations and accounts that were invited manually.
8260 8261 8262 8263 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 8260 def get_members(params = {}, = {}) req = build_request(:get_members, params) req.send_request() end |
#get_resources_statistics_v2(params = {}) ⇒ Types::GetResourcesStatisticsV2Response
Retrieves statistical information about Amazon Web Services resources and their associated security findings.
8361 8362 8363 8364 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 8361 def get_resources_statistics_v2(params = {}, = {}) req = build_request(:get_resources_statistics_v2, params) req.send_request() end |
#get_resources_trends_v2(params = {}) ⇒ Types::GetResourcesTrendsV2Response
Returns resource trend data based on the specified criteria. This operation helps you analyze patterns and changes in resource compliance over time.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
8438 8439 8440 8441 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 8438 def get_resources_trends_v2(params = {}, = {}) req = build_request(:get_resources_trends_v2, params) req.send_request() end |
#get_resources_v2(params = {}) ⇒ Types::GetResourcesV2Response
Returns a list of resources.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
8568 8569 8570 8571 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 8568 def get_resources_v2(params = {}, = {}) req = build_request(:get_resources_v2, params) req.send_request() end |
#get_security_control_definition(params = {}) ⇒ Types::GetSecurityControlDefinitionResponse
Retrieves the definition of a security control. The definition includes the control title, description, Region availability, parameter definitions, and other details.
8669 8670 8671 8672 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 8669 def get_security_control_definition(params = {}, = {}) req = build_request(:get_security_control_definition, params) req.send_request() end |
#invite_members(params = {}) ⇒ Types::InviteMembersResponse
Invites other Amazon Web Services accounts to become member accounts for the Security Hub administrator account that the invitation is sent from.
This operation is only used to invite accounts that don't belong to an Amazon Web Services organization. Organization accounts don't receive invitations.
Before you can use this action to invite a member, you must first use
the CreateMembers action to create the member account in Security
Hub.
When the account owner enables Security Hub and accepts the invitation to become a member account, the administrator account can view the findings generated in the member account.
8745 8746 8747 8748 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 8745 def invite_members(params = {}, = {}) req = build_request(:invite_members, params) req.send_request() end |
#list_aggregators_v2(params = {}) ⇒ Types::ListAggregatorsV2Response
Retrieves a list of V2 aggregators.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
8785 8786 8787 8788 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 8785 def list_aggregators_v2(params = {}, = {}) req = build_request(:list_aggregators_v2, params) req.send_request() end |
#list_automation_rules(params = {}) ⇒ Types::ListAutomationRulesResponse
A list of automation rules and their metadata for the calling account.
8869 8870 8871 8872 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 8869 def list_automation_rules(params = {}, = {}) req = build_request(:list_automation_rules, params) req.send_request() end |
#list_automation_rules_v2(params = {}) ⇒ Types::ListAutomationRulesV2Response
Returns a list of automation rules and metadata for the calling account.
8917 8918 8919 8920 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 8917 def list_automation_rules_v2(params = {}, = {}) req = build_request(:list_automation_rules_v2, params) req.send_request() end |
#list_configuration_policies(params = {}) ⇒ Types::ListConfigurationPoliciesResponse
Lists the configuration policies that the Security Hub delegated administrator has created for your organization. Only the delegated administrator can invoke this operation from the home Region.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
8999 9000 9001 9002 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 8999 def list_configuration_policies(params = {}, = {}) req = build_request(:list_configuration_policies, params) req.send_request() end |
#list_configuration_policy_associations(params = {}) ⇒ Types::ListConfigurationPolicyAssociationsResponse
Provides information about the associations for your configuration policies and self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
9096 9097 9098 9099 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 9096 def list_configuration_policy_associations(params = {}, = {}) req = build_request(:list_configuration_policy_associations, params) req.send_request() end |
#list_connectors_v2(params = {}) ⇒ Types::ListConnectorsV2Response
Grants permission to retrieve a list of connectorsV2 and their metadata for the calling account.
9146 9147 9148 9149 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 9146 def list_connectors_v2(params = {}, = {}) req = build_request(:list_connectors_v2, params) req.send_request() end |
#list_enabled_products_for_import(params = {}) ⇒ Types::ListEnabledProductsForImportResponse
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
9207 9208 9209 9210 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 9207 def list_enabled_products_for_import(params = {}, = {}) req = build_request(:list_enabled_products_for_import, params) req.send_request() end |
#list_finding_aggregators(params = {}) ⇒ Types::ListFindingAggregatorsResponse
If cross-Region aggregation is enabled, then ListFindingAggregators
returns the Amazon Resource Name (ARN) of the finding aggregator. You
can run this operation from any Amazon Web Services Region.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
9265 9266 9267 9268 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 9265 def list_finding_aggregators(params = {}, = {}) req = build_request(:list_finding_aggregators, params) req.send_request() end |
#list_invitations(params = {}) ⇒ Types::ListInvitationsResponse
Lists all Security Hub membership invitations that were sent to the calling account.
Only accounts that are managed by invitation can use this operation. Accounts that are managed using the integration with Organizations don't receive invitations.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
9348 9349 9350 9351 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 9348 def list_invitations(params = {}, = {}) req = build_request(:list_invitations, params) req.send_request() end |
#list_members(params = {}) ⇒ Types::ListMembersResponse
Lists details about all member accounts for the current Security Hub administrator account.
The results include both member accounts that belong to an organization and member accounts that were invited manually.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
9444 9445 9446 9447 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 9444 def list_members(params = {}, = {}) req = build_request(:list_members, params) req.send_request() end |
#list_organization_admin_accounts(params = {}) ⇒ Types::ListOrganizationAdminAccountsResponse
Lists the Security Hub administrator accounts. Can only be called by the organization management account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
9515 9516 9517 9518 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 9515 def list_organization_admin_accounts(params = {}, = {}) req = build_request(:list_organization_admin_accounts, params) req.send_request() end |
#list_security_control_definitions(params = {}) ⇒ Types::ListSecurityControlDefinitionsResponse
Lists all of the security controls that apply to a specified standard.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
9648 9649 9650 9651 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 9648 def list_security_control_definitions(params = {}, = {}) req = build_request(:list_security_control_definitions, params) req.send_request() end |
#list_standards_control_associations(params = {}) ⇒ Types::ListStandardsControlAssociationsResponse
Specifies whether a control is currently enabled or disabled in each enabled standard in the calling account.
This operation omits standards control associations for standard
subscriptions where StandardsControlsUpdatable has value
NOT_READY_FOR_UPDATES.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
9756 9757 9758 9759 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 9756 def list_standards_control_associations(params = {}, = {}) req = build_request(:list_standards_control_associations, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Returns a list of tags associated with a resource.
9802 9803 9804 9805 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 9802 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#register_connector_v2(params = {}) ⇒ Types::RegisterConnectorV2Response
Grants permission to complete the authorization based on input parameters.
9839 9840 9841 9842 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 9839 def register_connector_v2(params = {}, = {}) req = build_request(:register_connector_v2, params) req.send_request() end |
#start_configuration_policy_association(params = {}) ⇒ Types::StartConfigurationPolicyAssociationResponse
Associates a target account, organizational unit, or the root with a specified configuration. The target can be associated with a configuration policy or self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.
9918 9919 9920 9921 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 9918 def start_configuration_policy_association(params = {}, = {}) req = build_request(:start_configuration_policy_association, params) req.send_request() end |
#start_configuration_policy_disassociation(params = {}) ⇒ Struct
Disassociates a target account, organizational unit, or the root from a specified configuration. When you disassociate a configuration from its target, the target inherits the configuration of the closest parent. If there’s no configuration to inherit, the target retains its settings but becomes a self-managed account. A target can be disassociated from a configuration policy or self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.
9971 9972 9973 9974 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 9971 def start_configuration_policy_disassociation(params = {}, = {}) req = build_request(:start_configuration_policy_disassociation, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds one or more tags to a resource.
10014 10015 10016 10017 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 10014 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes one or more tags from a resource.
10053 10054 10055 10056 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 10053 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_action_target(params = {}) ⇒ Struct
Updates the name and description of a custom action target in Security Hub.
10096 10097 10098 10099 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 10096 def update_action_target(params = {}, = {}) req = build_request(:update_action_target, params) req.send_request() end |
#update_aggregator_v2(params = {}) ⇒ Types::UpdateAggregatorV2Response
Udpates the configuration for the Aggregator V2.
10140 10141 10142 10143 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 10140 def update_aggregator_v2(params = {}, = {}) req = build_request(:update_aggregator_v2, params) req.send_request() end |
#update_automation_rule_v2(params = {}) ⇒ Struct
Updates a V2 automation rule.
10270 10271 10272 10273 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 10270 def update_automation_rule_v2(params = {}, = {}) req = build_request(:update_automation_rule_v2, params) req.send_request() end |
#update_configuration_policy(params = {}) ⇒ Types::UpdateConfigurationPolicyResponse
Updates a configuration policy. Only the Security Hub delegated administrator can invoke this operation from the home Region.
10470 10471 10472 10473 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 10470 def update_configuration_policy(params = {}, = {}) req = build_request(:update_configuration_policy, params) req.send_request() end |
#update_connector_v2(params = {}) ⇒ Struct
Grants permission to update a connectorV2 based on its id and input parameters.
10508 10509 10510 10511 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 10508 def update_connector_v2(params = {}, = {}) req = build_request(:update_connector_v2, params) req.send_request() end |
#update_finding_aggregator(params = {}) ⇒ Types::UpdateFindingAggregatorResponse
Updates cross-Region aggregation settings. You can use this operation to update the Region linking mode and the list of included or excluded Amazon Web Services Regions. However, you can't use this operation to change the home Region.
You can invoke this operation from the current home Region only.
10623 10624 10625 10626 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 10623 def update_finding_aggregator(params = {}, = {}) req = build_request(:update_finding_aggregator, params) req.send_request() end |
#update_findings(params = {}) ⇒ Struct
UpdateFindings is a deprecated operation. Instead of
UpdateFindings, use the BatchUpdateFindings operation.
The UpdateFindings operation updates the Note and RecordState of
the Security Hub aggregated findings that the filter attributes
specify. Any member account that can view the finding can also see the
update to the finding.
Finding updates made with UpdateFindings aren't persisted if the
same finding is later updated by the finding provider through the
BatchImportFindings operation. In addition, Security Hub doesn't
record updates made with UpdateFindings in the finding history.
11363 11364 11365 11366 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 11363 def update_findings(params = {}, = {}) req = build_request(:update_findings, params) req.send_request() end |
#update_insight(params = {}) ⇒ Struct
Updates the Security Hub insight identified by the specified insight ARN.
12117 12118 12119 12120 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 12117 def update_insight(params = {}, = {}) req = build_request(:update_insight, params) req.send_request() end |
#update_organization_configuration(params = {}) ⇒ Struct
Updates the configuration of your organization in Security Hub. Only the Security Hub administrator account can invoke this operation.
12197 12198 12199 12200 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 12197 def update_organization_configuration(params = {}, = {}) req = build_request(:update_organization_configuration, params) req.send_request() end |
#update_security_control(params = {}) ⇒ Struct
Updates the properties of a security control.
12265 12266 12267 12268 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 12265 def update_security_control(params = {}, = {}) req = build_request(:update_security_control, params) req.send_request() end |
#update_security_hub_configuration(params = {}) ⇒ Struct
Updates configuration options for Security Hub.
12327 12328 12329 12330 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 12327 def update_security_hub_configuration(params = {}, = {}) req = build_request(:update_security_hub_configuration, params) req.send_request() end |
#update_standards_control(params = {}) ⇒ Struct
Used to control whether an individual security standard control is enabled or disabled.
Calls to this operation return a RESOURCE_NOT_FOUND_EXCEPTION error
when the standard subscription for the control has
StandardsControlsUpdatable value NOT_READY_FOR_UPDATES.
12374 12375 12376 12377 |
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/client.rb', line 12374 def update_standards_control(params = {}, = {}) req = build_request(:update_standards_control, params) req.send_request() end |