SecurityHubClient#
Index > SecurityHub > SecurityHubClient
Auto-generated documentation for SecurityHub type annotations stubs module types-boto3-securityhub.
SecurityHubClient#
Type annotations and code completion for boto3.client("securityhub").
 boto3 documentation
# SecurityHubClient usage example
from boto3.session import Session
from types_boto3_securityhub.client import SecurityHubClient
def get_securityhub_client() -> SecurityHubClient:
    return Session().client("securityhub")Exceptions#
boto3 client exceptions are generated in runtime.
This class provides code completion for boto3.client("securityhub").exceptions structure.
# Exceptions.exceptions usage example
client = boto3.client("securityhub")
try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.InternalException,
    client.exceptions.InternalServerException,
    client.exceptions.InvalidAccessException,
    client.exceptions.InvalidInputException,
    client.exceptions.LimitExceededException,
    client.exceptions.ResourceConflictException,
    client.exceptions.ResourceInUseException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ThrottlingException,
    client.exceptions.ValidationException,
) as e:
    print(e)# Exceptions.exceptions type checking example
from types_boto3_securityhub.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...Methods#
can_paginate#
Type annotations and code completion for boto3.client("securityhub").can_paginate method.
 boto3 documentation
# can_paginate method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...generate_presigned_url#
Type annotations and code completion for boto3.client("securityhub").generate_presigned_url method.
 boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...accept_administrator_invitation#
We recommend using Organizations instead of Security Hub invitations to manage your member accounts.
Type annotations and code completion for boto3.client("securityhub").accept_administrator_invitation method.
 boto3 documentation
# accept_administrator_invitation method definition
def accept_administrator_invitation(
    self,
    *,
    AdministratorId: str,
    InvitationId: str,
) -> Dict[str, Any]:
    ...# accept_administrator_invitation method usage example with argument unpacking
kwargs: AcceptAdministratorInvitationRequestTypeDef = {  # (1)
    "AdministratorId": ...,
    "InvitationId": ...,
}
parent.accept_administrator_invitation(**kwargs)accept_invitation#
This method is deprecated.
Type annotations and code completion for boto3.client("securityhub").accept_invitation method.
 boto3 documentation
# accept_invitation method definition
def accept_invitation(
    self,
    *,
    MasterId: str,
    InvitationId: str,
) -> Dict[str, Any]:
    ...# accept_invitation method usage example with argument unpacking
kwargs: AcceptInvitationRequestTypeDef = {  # (1)
    "MasterId": ...,
    "InvitationId": ...,
}
parent.accept_invitation(**kwargs)batch_delete_automation_rules#
Deletes one or more automation rules.
Type annotations and code completion for boto3.client("securityhub").batch_delete_automation_rules method.
 boto3 documentation
# batch_delete_automation_rules method definition
def batch_delete_automation_rules(
    self,
    *,
    AutomationRulesArns: Sequence[str],
) -> BatchDeleteAutomationRulesResponseTypeDef:  # (1)
    ...# batch_delete_automation_rules method usage example with argument unpacking
kwargs: BatchDeleteAutomationRulesRequestTypeDef = {  # (1)
    "AutomationRulesArns": ...,
}
parent.batch_delete_automation_rules(**kwargs)batch_disable_standards#
Disables the standards specified by the provided
StandardsSubscriptionArns.
Type annotations and code completion for boto3.client("securityhub").batch_disable_standards method.
 boto3 documentation
# batch_disable_standards method definition
def batch_disable_standards(
    self,
    *,
    StandardsSubscriptionArns: Sequence[str],
) -> BatchDisableStandardsResponseTypeDef:  # (1)
    ...# batch_disable_standards method usage example with argument unpacking
kwargs: BatchDisableStandardsRequestTypeDef = {  # (1)
    "StandardsSubscriptionArns": ...,
}
parent.batch_disable_standards(**kwargs)batch_enable_standards#
Enables the standards specified by the provided StandardsArn.
Type annotations and code completion for boto3.client("securityhub").batch_enable_standards method.
 boto3 documentation
# batch_enable_standards method definition
def batch_enable_standards(
    self,
    *,
    StandardsSubscriptionRequests: Sequence[StandardsSubscriptionRequestTypeDef],  # (1)
) -> BatchEnableStandardsResponseTypeDef:  # (2)
    ...- See Sequence[StandardsSubscriptionRequestTypeDef]
- See BatchEnableStandardsResponseTypeDef
# batch_enable_standards method usage example with argument unpacking
kwargs: BatchEnableStandardsRequestTypeDef = {  # (1)
    "StandardsSubscriptionRequests": ...,
}
parent.batch_enable_standards(**kwargs)batch_get_automation_rules#
Retrieves a list of details for automation rules based on rule Amazon Resource Names (ARNs).
Type annotations and code completion for boto3.client("securityhub").batch_get_automation_rules method.
 boto3 documentation
# batch_get_automation_rules method definition
def batch_get_automation_rules(
    self,
    *,
    AutomationRulesArns: Sequence[str],
) -> BatchGetAutomationRulesResponseTypeDef:  # (1)
    ...# batch_get_automation_rules method usage example with argument unpacking
kwargs: BatchGetAutomationRulesRequestTypeDef = {  # (1)
    "AutomationRulesArns": ...,
}
parent.batch_get_automation_rules(**kwargs)batch_get_configuration_policy_associations#
Returns associations between an Security Hub configuration and a batch of target accounts, organizational units, or the root.
Type annotations and code completion for boto3.client("securityhub").batch_get_configuration_policy_associations method.
 boto3 documentation
# batch_get_configuration_policy_associations method definition
def batch_get_configuration_policy_associations(
    self,
    *,
    ConfigurationPolicyAssociationIdentifiers: Sequence[ConfigurationPolicyAssociationTypeDef],  # (1)
) -> BatchGetConfigurationPolicyAssociationsResponseTypeDef:  # (2)
    ...- See Sequence[ConfigurationPolicyAssociationTypeDef]
- See BatchGetConfigurationPolicyAssociationsResponseTypeDef
# batch_get_configuration_policy_associations method usage example with argument unpacking
kwargs: BatchGetConfigurationPolicyAssociationsRequestTypeDef = {  # (1)
    "ConfigurationPolicyAssociationIdentifiers": ...,
}
parent.batch_get_configuration_policy_associations(**kwargs)batch_get_security_controls#
Provides details about a batch of security controls for the current Amazon Web Services account and Amazon Web Services Region.
Type annotations and code completion for boto3.client("securityhub").batch_get_security_controls method.
 boto3 documentation
# batch_get_security_controls method definition
def batch_get_security_controls(
    self,
    *,
    SecurityControlIds: Sequence[str],
) -> BatchGetSecurityControlsResponseTypeDef:  # (1)
    ...# batch_get_security_controls method usage example with argument unpacking
kwargs: BatchGetSecurityControlsRequestTypeDef = {  # (1)
    "SecurityControlIds": ...,
}
parent.batch_get_security_controls(**kwargs)batch_get_standards_control_associations#
For a batch of security controls and standards, identifies whether each control is currently enabled or disabled in a standard.
Type annotations and code completion for boto3.client("securityhub").batch_get_standards_control_associations method.
 boto3 documentation
# batch_get_standards_control_associations method definition
def batch_get_standards_control_associations(
    self,
    *,
    StandardsControlAssociationIds: Sequence[StandardsControlAssociationIdTypeDef],  # (1)
) -> BatchGetStandardsControlAssociationsResponseTypeDef:  # (2)
    ...- See Sequence[StandardsControlAssociationIdTypeDef]
- See BatchGetStandardsControlAssociationsResponseTypeDef
# batch_get_standards_control_associations method usage example with argument unpacking
kwargs: BatchGetStandardsControlAssociationsRequestTypeDef = {  # (1)
    "StandardsControlAssociationIds": ...,
}
parent.batch_get_standards_control_associations(**kwargs)batch_import_findings#
Imports security findings generated by a finding provider into Security Hub.
Type annotations and code completion for boto3.client("securityhub").batch_import_findings method.
 boto3 documentation
# batch_import_findings method definition
def batch_import_findings(
    self,
    *,
    Findings: Sequence[AwsSecurityFindingUnionTypeDef],  # (1)
) -> BatchImportFindingsResponseTypeDef:  # (2)
    ...- See Sequence[AwsSecurityFindingUnionTypeDef]
- See BatchImportFindingsResponseTypeDef
# batch_import_findings method usage example with argument unpacking
kwargs: BatchImportFindingsRequestTypeDef = {  # (1)
    "Findings": ...,
}
parent.batch_import_findings(**kwargs)batch_update_automation_rules#
Updates one or more automation rules based on rule Amazon Resource Names (ARNs) and input parameters.
Type annotations and code completion for boto3.client("securityhub").batch_update_automation_rules method.
 boto3 documentation
# batch_update_automation_rules method definition
def batch_update_automation_rules(
    self,
    *,
    UpdateAutomationRulesRequestItems: Sequence[UpdateAutomationRulesRequestItemTypeDef],  # (1)
) -> BatchUpdateAutomationRulesResponseTypeDef:  # (2)
    ...- See Sequence[UpdateAutomationRulesRequestItemTypeDef]
- See BatchUpdateAutomationRulesResponseTypeDef
# batch_update_automation_rules method usage example with argument unpacking
kwargs: BatchUpdateAutomationRulesRequestTypeDef = {  # (1)
    "UpdateAutomationRulesRequestItems": ...,
}
parent.batch_update_automation_rules(**kwargs)batch_update_findings#
Used by Security Hub customers to update information about their investigation into one or more findings.
Type annotations and code completion for boto3.client("securityhub").batch_update_findings method.
 boto3 documentation
# batch_update_findings method definition
def batch_update_findings(
    self,
    *,
    FindingIdentifiers: Sequence[AwsSecurityFindingIdentifierTypeDef],  # (1)
    Note: NoteUpdateTypeDef = ...,  # (2)
    Severity: SeverityUpdateTypeDef = ...,  # (3)
    VerificationState: VerificationStateType = ...,  # (4)
    Confidence: int = ...,
    Criticality: int = ...,
    Types: Sequence[str] = ...,
    UserDefinedFields: Mapping[str, str] = ...,
    Workflow: WorkflowUpdateTypeDef = ...,  # (5)
    RelatedFindings: Sequence[RelatedFindingTypeDef] = ...,  # (6)
) -> BatchUpdateFindingsResponseTypeDef:  # (7)
    ...- See Sequence[AwsSecurityFindingIdentifierTypeDef]
- See NoteUpdateTypeDef
- See SeverityUpdateTypeDef
- See VerificationStateType
- See WorkflowUpdateTypeDef
- See Sequence[RelatedFindingTypeDef]
- See BatchUpdateFindingsResponseTypeDef
# batch_update_findings method usage example with argument unpacking
kwargs: BatchUpdateFindingsRequestTypeDef = {  # (1)
    "FindingIdentifiers": ...,
}
parent.batch_update_findings(**kwargs)batch_update_findings_v2#
Used by customers to update information about their investigation into a finding.
Type annotations and code completion for boto3.client("securityhub").batch_update_findings_v2 method.
 boto3 documentation
# batch_update_findings_v2 method definition
def batch_update_findings_v2(
    self,
    *,
    MetadataUids: Sequence[str] = ...,
    FindingIdentifiers: Sequence[OcsfFindingIdentifierTypeDef] = ...,  # (1)
    Comment: str = ...,
    SeverityId: int = ...,
    StatusId: int = ...,
) -> BatchUpdateFindingsV2ResponseTypeDef:  # (2)
    ...- See Sequence[OcsfFindingIdentifierTypeDef]
- See BatchUpdateFindingsV2ResponseTypeDef
# batch_update_findings_v2 method usage example with argument unpacking
kwargs: BatchUpdateFindingsV2RequestTypeDef = {  # (1)
    "MetadataUids": ...,
}
parent.batch_update_findings_v2(**kwargs)batch_update_standards_control_associations#
For a batch of security controls and standards, this operation updates the enablement status of a control in a standard.
Type annotations and code completion for boto3.client("securityhub").batch_update_standards_control_associations method.
 boto3 documentation
# batch_update_standards_control_associations method definition
def batch_update_standards_control_associations(
    self,
    *,
    StandardsControlAssociationUpdates: Sequence[StandardsControlAssociationUpdateTypeDef],  # (1)
) -> BatchUpdateStandardsControlAssociationsResponseTypeDef:  # (2)
    ...- See Sequence[StandardsControlAssociationUpdateTypeDef]
- See BatchUpdateStandardsControlAssociationsResponseTypeDef
# batch_update_standards_control_associations method usage example with argument unpacking
kwargs: BatchUpdateStandardsControlAssociationsRequestTypeDef = {  # (1)
    "StandardsControlAssociationUpdates": ...,
}
parent.batch_update_standards_control_associations(**kwargs)connector_registrations_v2#
Grants permission to complete the authorization based on input parameters.
Type annotations and code completion for boto3.client("securityhub").connector_registrations_v2 method.
 boto3 documentation
# connector_registrations_v2 method definition
def connector_registrations_v2(
    self,
    *,
    AuthCode: str,
    AuthState: str,
) -> ConnectorRegistrationsV2ResponseTypeDef:  # (1)
    ...# connector_registrations_v2 method usage example with argument unpacking
kwargs: ConnectorRegistrationsV2RequestTypeDef = {  # (1)
    "AuthCode": ...,
    "AuthState": ...,
}
parent.connector_registrations_v2(**kwargs)create_action_target#
Creates a custom action target in Security Hub.
Type annotations and code completion for boto3.client("securityhub").create_action_target method.
 boto3 documentation
# create_action_target method definition
def create_action_target(
    self,
    *,
    Name: str,
    Description: str,
    Id: str,
) -> CreateActionTargetResponseTypeDef:  # (1)
    ...# create_action_target method usage example with argument unpacking
kwargs: CreateActionTargetRequestTypeDef = {  # (1)
    "Name": ...,
    "Description": ...,
    "Id": ...,
}
parent.create_action_target(**kwargs)create_aggregator_v2#
Enables aggregation across Amazon Web Services Regions.
Type annotations and code completion for boto3.client("securityhub").create_aggregator_v2 method.
 boto3 documentation
# create_aggregator_v2 method definition
def create_aggregator_v2(
    self,
    *,
    RegionLinkingMode: str,
    LinkedRegions: Sequence[str] = ...,
    Tags: Mapping[str, str] = ...,
    ClientToken: str = ...,
) -> CreateAggregatorV2ResponseTypeDef:  # (1)
    ...# create_aggregator_v2 method usage example with argument unpacking
kwargs: CreateAggregatorV2RequestTypeDef = {  # (1)
    "RegionLinkingMode": ...,
}
parent.create_aggregator_v2(**kwargs)create_automation_rule#
Creates an automation rule based on input parameters.
Type annotations and code completion for boto3.client("securityhub").create_automation_rule method.
 boto3 documentation
# create_automation_rule method definition
def create_automation_rule(
    self,
    *,
    RuleOrder: int,
    RuleName: str,
    Description: str,
    Criteria: AutomationRulesFindingFiltersUnionTypeDef,  # (1)
    Actions: Sequence[AutomationRulesActionUnionTypeDef],  # (2)
    Tags: Mapping[str, str] = ...,
    RuleStatus: RuleStatusType = ...,  # (3)
    IsTerminal: bool = ...,
) -> CreateAutomationRuleResponseTypeDef:  # (4)
    ...- See AutomationRulesFindingFiltersUnionTypeDef
- See Sequence[AutomationRulesActionUnionTypeDef]
- See RuleStatusType
- See CreateAutomationRuleResponseTypeDef
# create_automation_rule method usage example with argument unpacking
kwargs: CreateAutomationRuleRequestTypeDef = {  # (1)
    "RuleOrder": ...,
    "RuleName": ...,
    "Description": ...,
    "Criteria": ...,
    "Actions": ...,
}
parent.create_automation_rule(**kwargs)create_automation_rule_v2#
Creates a V2 automation rule.
Type annotations and code completion for boto3.client("securityhub").create_automation_rule_v2 method.
 boto3 documentation
# create_automation_rule_v2 method definition
def create_automation_rule_v2(
    self,
    *,
    RuleName: str,
    Description: str,
    RuleOrder: float,
    Criteria: CriteriaUnionTypeDef,  # (1)
    Actions: Sequence[AutomationRulesActionV2TypeDef],  # (2)
    RuleStatus: RuleStatusV2Type = ...,  # (3)
    Tags: Mapping[str, str] = ...,
    ClientToken: str = ...,
) -> CreateAutomationRuleV2ResponseTypeDef:  # (4)
    ...- See CriteriaUnionTypeDef
- See Sequence[AutomationRulesActionV2TypeDef]
- See RuleStatusV2Type
- See CreateAutomationRuleV2ResponseTypeDef
# create_automation_rule_v2 method usage example with argument unpacking
kwargs: CreateAutomationRuleV2RequestTypeDef = {  # (1)
    "RuleName": ...,
    "Description": ...,
    "RuleOrder": ...,
    "Criteria": ...,
    "Actions": ...,
}
parent.create_automation_rule_v2(**kwargs)create_configuration_policy#
Creates a configuration policy with the defined configuration.
Type annotations and code completion for boto3.client("securityhub").create_configuration_policy method.
 boto3 documentation
# create_configuration_policy method definition
def create_configuration_policy(
    self,
    *,
    Name: str,
    ConfigurationPolicy: PolicyUnionTypeDef,  # (1)
    Description: str = ...,
    Tags: Mapping[str, str] = ...,
) -> CreateConfigurationPolicyResponseTypeDef:  # (2)
    ...# create_configuration_policy method usage example with argument unpacking
kwargs: CreateConfigurationPolicyRequestTypeDef = {  # (1)
    "Name": ...,
    "ConfigurationPolicy": ...,
}
parent.create_configuration_policy(**kwargs)create_connector_v2#
Grants permission to create a connectorV2 based on input parameters.
Type annotations and code completion for boto3.client("securityhub").create_connector_v2 method.
 boto3 documentation
# create_connector_v2 method definition
def create_connector_v2(
    self,
    *,
    Name: str,
    Provider: ProviderConfigurationTypeDef,  # (1)
    Description: str = ...,
    KmsKeyArn: str = ...,
    Tags: Mapping[str, str] = ...,
    ClientToken: str = ...,
) -> CreateConnectorV2ResponseTypeDef:  # (2)
    ...# create_connector_v2 method usage example with argument unpacking
kwargs: CreateConnectorV2RequestTypeDef = {  # (1)
    "Name": ...,
    "Provider": ...,
}
parent.create_connector_v2(**kwargs)create_finding_aggregator#
The aggregation Region is now called the home Region.
Type annotations and code completion for boto3.client("securityhub").create_finding_aggregator method.
 boto3 documentation
# create_finding_aggregator method definition
def create_finding_aggregator(
    self,
    *,
    RegionLinkingMode: str,
    Regions: Sequence[str] = ...,
) -> CreateFindingAggregatorResponseTypeDef:  # (1)
    ...# create_finding_aggregator method usage example with argument unpacking
kwargs: CreateFindingAggregatorRequestTypeDef = {  # (1)
    "RegionLinkingMode": ...,
}
parent.create_finding_aggregator(**kwargs)create_insight#
Creates a custom insight in Security Hub.
Type annotations and code completion for boto3.client("securityhub").create_insight method.
 boto3 documentation
# create_insight method definition
def create_insight(
    self,
    *,
    Name: str,
    Filters: AwsSecurityFindingFiltersUnionTypeDef,  # (1)
    GroupByAttribute: str,
) -> CreateInsightResponseTypeDef:  # (2)
    ...# create_insight method usage example with argument unpacking
kwargs: CreateInsightRequestTypeDef = {  # (1)
    "Name": ...,
    "Filters": ...,
    "GroupByAttribute": ...,
}
parent.create_insight(**kwargs)create_members#
Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the administrator account.
Type annotations and code completion for boto3.client("securityhub").create_members method.
 boto3 documentation
# create_members method definition
def create_members(
    self,
    *,
    AccountDetails: Sequence[AccountDetailsTypeDef],  # (1)
) -> CreateMembersResponseTypeDef:  # (2)
    ...- See Sequence[AccountDetailsTypeDef]
- See CreateMembersResponseTypeDef
# create_members method usage example with argument unpacking
kwargs: CreateMembersRequestTypeDef = {  # (1)
    "AccountDetails": ...,
}
parent.create_members(**kwargs)create_ticket_v2#
Grants permission to create a ticket in the chosen ITSM based on finding information for the provided finding metadata UID.
Type annotations and code completion for boto3.client("securityhub").create_ticket_v2 method.
 boto3 documentation
# create_ticket_v2 method definition
def create_ticket_v2(
    self,
    *,
    ConnectorId: str,
    FindingMetadataUid: str,
    ClientToken: str = ...,
) -> CreateTicketV2ResponseTypeDef:  # (1)
    ...# create_ticket_v2 method usage example with argument unpacking
kwargs: CreateTicketV2RequestTypeDef = {  # (1)
    "ConnectorId": ...,
    "FindingMetadataUid": ...,
}
parent.create_ticket_v2(**kwargs)decline_invitations#
We recommend using Organizations instead of Security Hub invitations to manage your member accounts.
Type annotations and code completion for boto3.client("securityhub").decline_invitations method.
 boto3 documentation
# decline_invitations method definition
def decline_invitations(
    self,
    *,
    AccountIds: Sequence[str],
) -> DeclineInvitationsResponseTypeDef:  # (1)
    ...# decline_invitations method usage example with argument unpacking
kwargs: DeclineInvitationsRequestTypeDef = {  # (1)
    "AccountIds": ...,
}
parent.decline_invitations(**kwargs)delete_action_target#
Deletes a custom action target from Security Hub.
Type annotations and code completion for boto3.client("securityhub").delete_action_target method.
 boto3 documentation
# delete_action_target method definition
def delete_action_target(
    self,
    *,
    ActionTargetArn: str,
) -> DeleteActionTargetResponseTypeDef:  # (1)
    ...# delete_action_target method usage example with argument unpacking
kwargs: DeleteActionTargetRequestTypeDef = {  # (1)
    "ActionTargetArn": ...,
}
parent.delete_action_target(**kwargs)delete_aggregator_v2#
Deletes the Aggregator V2.
Type annotations and code completion for boto3.client("securityhub").delete_aggregator_v2 method.
 boto3 documentation
# delete_aggregator_v2 method definition
def delete_aggregator_v2(
    self,
    *,
    AggregatorV2Arn: str,
) -> Dict[str, Any]:
    ...# delete_aggregator_v2 method usage example with argument unpacking
kwargs: DeleteAggregatorV2RequestTypeDef = {  # (1)
    "AggregatorV2Arn": ...,
}
parent.delete_aggregator_v2(**kwargs)delete_automation_rule_v2#
Deletes a V2 automation rule.
Type annotations and code completion for boto3.client("securityhub").delete_automation_rule_v2 method.
 boto3 documentation
# delete_automation_rule_v2 method definition
def delete_automation_rule_v2(
    self,
    *,
    Identifier: str,
) -> Dict[str, Any]:
    ...# delete_automation_rule_v2 method usage example with argument unpacking
kwargs: DeleteAutomationRuleV2RequestTypeDef = {  # (1)
    "Identifier": ...,
}
parent.delete_automation_rule_v2(**kwargs)delete_configuration_policy#
Deletes a configuration policy.
Type annotations and code completion for boto3.client("securityhub").delete_configuration_policy method.
 boto3 documentation
# delete_configuration_policy method definition
def delete_configuration_policy(
    self,
    *,
    Identifier: str,
) -> Dict[str, Any]:
    ...# delete_configuration_policy method usage example with argument unpacking
kwargs: DeleteConfigurationPolicyRequestTypeDef = {  # (1)
    "Identifier": ...,
}
parent.delete_configuration_policy(**kwargs)delete_connector_v2#
Grants permission to delete a connectorV2.
Type annotations and code completion for boto3.client("securityhub").delete_connector_v2 method.
 boto3 documentation
# delete_connector_v2 method definition
def delete_connector_v2(
    self,
    *,
    ConnectorId: str,
) -> Dict[str, Any]:
    ...# delete_connector_v2 method usage example with argument unpacking
kwargs: DeleteConnectorV2RequestTypeDef = {  # (1)
    "ConnectorId": ...,
}
parent.delete_connector_v2(**kwargs)delete_finding_aggregator#
The aggregation Region is now called the home Region.
Type annotations and code completion for boto3.client("securityhub").delete_finding_aggregator method.
 boto3 documentation
# delete_finding_aggregator method definition
def delete_finding_aggregator(
    self,
    *,
    FindingAggregatorArn: str,
) -> Dict[str, Any]:
    ...# delete_finding_aggregator method usage example with argument unpacking
kwargs: DeleteFindingAggregatorRequestTypeDef = {  # (1)
    "FindingAggregatorArn": ...,
}
parent.delete_finding_aggregator(**kwargs)delete_insight#
Deletes the insight specified by the InsightArn.
Type annotations and code completion for boto3.client("securityhub").delete_insight method.
 boto3 documentation
# delete_insight method definition
def delete_insight(
    self,
    *,
    InsightArn: str,
) -> DeleteInsightResponseTypeDef:  # (1)
    ...# delete_insight method usage example with argument unpacking
kwargs: DeleteInsightRequestTypeDef = {  # (1)
    "InsightArn": ...,
}
parent.delete_insight(**kwargs)delete_invitations#
We recommend using Organizations instead of Security Hub invitations to manage your member accounts.
Type annotations and code completion for boto3.client("securityhub").delete_invitations method.
 boto3 documentation
# delete_invitations method definition
def delete_invitations(
    self,
    *,
    AccountIds: Sequence[str],
) -> DeleteInvitationsResponseTypeDef:  # (1)
    ...# delete_invitations method usage example with argument unpacking
kwargs: DeleteInvitationsRequestTypeDef = {  # (1)
    "AccountIds": ...,
}
parent.delete_invitations(**kwargs)delete_members#
Deletes the specified member accounts from Security Hub.
Type annotations and code completion for boto3.client("securityhub").delete_members method.
 boto3 documentation
# delete_members method definition
def delete_members(
    self,
    *,
    AccountIds: Sequence[str],
) -> DeleteMembersResponseTypeDef:  # (1)
    ...# delete_members method usage example with argument unpacking
kwargs: DeleteMembersRequestTypeDef = {  # (1)
    "AccountIds": ...,
}
parent.delete_members(**kwargs)describe_action_targets#
Returns a list of the custom action targets in Security Hub in your account.
Type annotations and code completion for boto3.client("securityhub").describe_action_targets method.
 boto3 documentation
# describe_action_targets method definition
def describe_action_targets(
    self,
    *,
    ActionTargetArns: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeActionTargetsResponseTypeDef:  # (1)
    ...# describe_action_targets method usage example with argument unpacking
kwargs: DescribeActionTargetsRequestTypeDef = {  # (1)
    "ActionTargetArns": ...,
}
parent.describe_action_targets(**kwargs)describe_hub#
Returns details about the Hub resource in your account, including the
HubArn and the time when you enabled Security Hub.
Type annotations and code completion for boto3.client("securityhub").describe_hub method.
 boto3 documentation
# describe_hub method definition
def describe_hub(
    self,
    *,
    HubArn: str = ...,
) -> DescribeHubResponseTypeDef:  # (1)
    ...# describe_hub method usage example with argument unpacking
kwargs: DescribeHubRequestTypeDef = {  # (1)
    "HubArn": ...,
}
parent.describe_hub(**kwargs)describe_organization_configuration#
Returns information about the way your organization is configured in Security Hub.
Type annotations and code completion for boto3.client("securityhub").describe_organization_configuration method.
 boto3 documentation
# describe_organization_configuration method definition
def describe_organization_configuration(
    self,
) -> DescribeOrganizationConfigurationResponseTypeDef:  # (1)
    ...describe_products#
Returns information about product integrations in Security Hub.
Type annotations and code completion for boto3.client("securityhub").describe_products method.
 boto3 documentation
# describe_products method definition
def describe_products(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
    ProductArn: str = ...,
) -> DescribeProductsResponseTypeDef:  # (1)
    ...# describe_products method usage example with argument unpacking
kwargs: DescribeProductsRequestTypeDef = {  # (1)
    "NextToken": ...,
}
parent.describe_products(**kwargs)describe_products_v2#
Gets information about the product integration.
Type annotations and code completion for boto3.client("securityhub").describe_products_v2 method.
 boto3 documentation
# describe_products_v2 method definition
def describe_products_v2(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeProductsV2ResponseTypeDef:  # (1)
    ...# describe_products_v2 method usage example with argument unpacking
kwargs: DescribeProductsV2RequestTypeDef = {  # (1)
    "NextToken": ...,
}
parent.describe_products_v2(**kwargs)describe_security_hub_v2#
Returns details about the service resource in your account.
Type annotations and code completion for boto3.client("securityhub").describe_security_hub_v2 method.
 boto3 documentation
# describe_security_hub_v2 method definition
def describe_security_hub_v2(
    self,
) -> DescribeSecurityHubV2ResponseTypeDef:  # (1)
    ...describe_standards#
Returns a list of the available standards in Security Hub.
Type annotations and code completion for boto3.client("securityhub").describe_standards method.
 boto3 documentation
# describe_standards method definition
def describe_standards(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeStandardsResponseTypeDef:  # (1)
    ...# describe_standards method usage example with argument unpacking
kwargs: DescribeStandardsRequestTypeDef = {  # (1)
    "NextToken": ...,
}
parent.describe_standards(**kwargs)describe_standards_controls#
Returns a list of security standards controls.
Type annotations and code completion for boto3.client("securityhub").describe_standards_controls method.
 boto3 documentation
# describe_standards_controls method definition
def describe_standards_controls(
    self,
    *,
    StandardsSubscriptionArn: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeStandardsControlsResponseTypeDef:  # (1)
    ...# describe_standards_controls method usage example with argument unpacking
kwargs: DescribeStandardsControlsRequestTypeDef = {  # (1)
    "StandardsSubscriptionArn": ...,
}
parent.describe_standards_controls(**kwargs)disable_import_findings_for_product#
Disables the integration of the specified product with Security Hub.
Type annotations and code completion for boto3.client("securityhub").disable_import_findings_for_product method.
 boto3 documentation
# disable_import_findings_for_product method definition
def disable_import_findings_for_product(
    self,
    *,
    ProductSubscriptionArn: str,
) -> Dict[str, Any]:
    ...# disable_import_findings_for_product method usage example with argument unpacking
kwargs: DisableImportFindingsForProductRequestTypeDef = {  # (1)
    "ProductSubscriptionArn": ...,
}
parent.disable_import_findings_for_product(**kwargs)disable_organization_admin_account#
Disables a Security Hub administrator account.
Type annotations and code completion for boto3.client("securityhub").disable_organization_admin_account method.
 boto3 documentation
# disable_organization_admin_account method definition
def disable_organization_admin_account(
    self,
    *,
    AdminAccountId: str,
    Feature: SecurityHubFeatureType = ...,  # (1)
) -> Dict[str, Any]:
    ...# disable_organization_admin_account method usage example with argument unpacking
kwargs: DisableOrganizationAdminAccountRequestTypeDef = {  # (1)
    "AdminAccountId": ...,
}
parent.disable_organization_admin_account(**kwargs)disable_security_hub#
Disables Security Hub in your account only in the current Amazon Web Services Region.
Type annotations and code completion for boto3.client("securityhub").disable_security_hub method.
 boto3 documentation
# disable_security_hub method definition
def disable_security_hub(
    self,
) -> Dict[str, Any]:
    ...disable_security_hub_v2#
Disable the service for the current Amazon Web Services Region or specified Amazon Web Services Region.
Type annotations and code completion for boto3.client("securityhub").disable_security_hub_v2 method.
 boto3 documentation
# disable_security_hub_v2 method definition
def disable_security_hub_v2(
    self,
) -> Dict[str, Any]:
    ...disassociate_from_administrator_account#
Disassociates the current Security Hub member account from the associated administrator account.
Type annotations and code completion for boto3.client("securityhub").disassociate_from_administrator_account method.
 boto3 documentation
# disassociate_from_administrator_account method definition
def disassociate_from_administrator_account(
    self,
) -> Dict[str, Any]:
    ...disassociate_from_master_account#
This method is deprecated.
Type annotations and code completion for boto3.client("securityhub").disassociate_from_master_account method.
 boto3 documentation
# disassociate_from_master_account method definition
def disassociate_from_master_account(
    self,
) -> Dict[str, Any]:
    ...disassociate_members#
Disassociates the specified member accounts from the associated administrator account.
Type annotations and code completion for boto3.client("securityhub").disassociate_members method.
 boto3 documentation
# disassociate_members method definition
def disassociate_members(
    self,
    *,
    AccountIds: Sequence[str],
) -> Dict[str, Any]:
    ...# disassociate_members method usage example with argument unpacking
kwargs: DisassociateMembersRequestTypeDef = {  # (1)
    "AccountIds": ...,
}
parent.disassociate_members(**kwargs)enable_import_findings_for_product#
Enables the integration of a partner product with Security Hub.
Type annotations and code completion for boto3.client("securityhub").enable_import_findings_for_product method.
 boto3 documentation
# enable_import_findings_for_product method definition
def enable_import_findings_for_product(
    self,
    *,
    ProductArn: str,
) -> EnableImportFindingsForProductResponseTypeDef:  # (1)
    ...# enable_import_findings_for_product method usage example with argument unpacking
kwargs: EnableImportFindingsForProductRequestTypeDef = {  # (1)
    "ProductArn": ...,
}
parent.enable_import_findings_for_product(**kwargs)enable_organization_admin_account#
Designates the Security Hub administrator account for an organization.
Type annotations and code completion for boto3.client("securityhub").enable_organization_admin_account method.
 boto3 documentation
# enable_organization_admin_account method definition
def enable_organization_admin_account(
    self,
    *,
    AdminAccountId: str,
    Feature: SecurityHubFeatureType = ...,  # (1)
) -> EnableOrganizationAdminAccountResponseTypeDef:  # (2)
    ...# enable_organization_admin_account method usage example with argument unpacking
kwargs: EnableOrganizationAdminAccountRequestTypeDef = {  # (1)
    "AdminAccountId": ...,
}
parent.enable_organization_admin_account(**kwargs)enable_security_hub#
Enables Security Hub for your account in the current Region or the Region you specify in the request.
Type annotations and code completion for boto3.client("securityhub").enable_security_hub method.
 boto3 documentation
# enable_security_hub method definition
def enable_security_hub(
    self,
    *,
    Tags: Mapping[str, str] = ...,
    EnableDefaultStandards: bool = ...,
    ControlFindingGenerator: ControlFindingGeneratorType = ...,  # (1)
) -> Dict[str, Any]:
    ...# enable_security_hub method usage example with argument unpacking
kwargs: EnableSecurityHubRequestTypeDef = {  # (1)
    "Tags": ...,
}
parent.enable_security_hub(**kwargs)enable_security_hub_v2#
Enables the service in account for the current Amazon Web Services Region or specified Amazon Web Services Region.
Type annotations and code completion for boto3.client("securityhub").enable_security_hub_v2 method.
 boto3 documentation
# enable_security_hub_v2 method definition
def enable_security_hub_v2(
    self,
    *,
    Tags: Mapping[str, str] = ...,
) -> EnableSecurityHubV2ResponseTypeDef:  # (1)
    ...# enable_security_hub_v2 method usage example with argument unpacking
kwargs: EnableSecurityHubV2RequestTypeDef = {  # (1)
    "Tags": ...,
}
parent.enable_security_hub_v2(**kwargs)get_administrator_account#
Provides the details for the Security Hub administrator account for the current member account.
Type annotations and code completion for boto3.client("securityhub").get_administrator_account method.
 boto3 documentation
# get_administrator_account method definition
def get_administrator_account(
    self,
) -> GetAdministratorAccountResponseTypeDef:  # (1)
    ...get_aggregator_v2#
Returns the configuration of the specified Aggregator V2.
Type annotations and code completion for boto3.client("securityhub").get_aggregator_v2 method.
 boto3 documentation
# get_aggregator_v2 method definition
def get_aggregator_v2(
    self,
    *,
    AggregatorV2Arn: str,
) -> GetAggregatorV2ResponseTypeDef:  # (1)
    ...# get_aggregator_v2 method usage example with argument unpacking
kwargs: GetAggregatorV2RequestTypeDef = {  # (1)
    "AggregatorV2Arn": ...,
}
parent.get_aggregator_v2(**kwargs)get_automation_rule_v2#
Returns an automation rule for the V2 service.
Type annotations and code completion for boto3.client("securityhub").get_automation_rule_v2 method.
 boto3 documentation
# get_automation_rule_v2 method definition
def get_automation_rule_v2(
    self,
    *,
    Identifier: str,
) -> GetAutomationRuleV2ResponseTypeDef:  # (1)
    ...# get_automation_rule_v2 method usage example with argument unpacking
kwargs: GetAutomationRuleV2RequestTypeDef = {  # (1)
    "Identifier": ...,
}
parent.get_automation_rule_v2(**kwargs)get_configuration_policy#
Provides information about a configuration policy.
Type annotations and code completion for boto3.client("securityhub").get_configuration_policy method.
 boto3 documentation
# get_configuration_policy method definition
def get_configuration_policy(
    self,
    *,
    Identifier: str,
) -> GetConfigurationPolicyResponseTypeDef:  # (1)
    ...# get_configuration_policy method usage example with argument unpacking
kwargs: GetConfigurationPolicyRequestTypeDef = {  # (1)
    "Identifier": ...,
}
parent.get_configuration_policy(**kwargs)get_configuration_policy_association#
Returns the association between a configuration and a target account, organizational unit, or the root.
Type annotations and code completion for boto3.client("securityhub").get_configuration_policy_association method.
 boto3 documentation
# get_configuration_policy_association method definition
def get_configuration_policy_association(
    self,
    *,
    Target: TargetTypeDef,  # (1)
) -> GetConfigurationPolicyAssociationResponseTypeDef:  # (2)
    ...# get_configuration_policy_association method usage example with argument unpacking
kwargs: GetConfigurationPolicyAssociationRequestTypeDef = {  # (1)
    "Target": ...,
}
parent.get_configuration_policy_association(**kwargs)get_connector_v2#
Grants permission to retrieve details for a connectorV2 based on connector id.
Type annotations and code completion for boto3.client("securityhub").get_connector_v2 method.
 boto3 documentation
# get_connector_v2 method definition
def get_connector_v2(
    self,
    *,
    ConnectorId: str,
) -> GetConnectorV2ResponseTypeDef:  # (1)
    ...# get_connector_v2 method usage example with argument unpacking
kwargs: GetConnectorV2RequestTypeDef = {  # (1)
    "ConnectorId": ...,
}
parent.get_connector_v2(**kwargs)get_enabled_standards#
Returns a list of the standards that are currently enabled.
Type annotations and code completion for boto3.client("securityhub").get_enabled_standards method.
 boto3 documentation
# get_enabled_standards method definition
def get_enabled_standards(
    self,
    *,
    StandardsSubscriptionArns: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetEnabledStandardsResponseTypeDef:  # (1)
    ...# get_enabled_standards method usage example with argument unpacking
kwargs: GetEnabledStandardsRequestTypeDef = {  # (1)
    "StandardsSubscriptionArns": ...,
}
parent.get_enabled_standards(**kwargs)get_finding_aggregator#
The aggregation Region is now called the home Region.
Type annotations and code completion for boto3.client("securityhub").get_finding_aggregator method.
 boto3 documentation
# get_finding_aggregator method definition
def get_finding_aggregator(
    self,
    *,
    FindingAggregatorArn: str,
) -> GetFindingAggregatorResponseTypeDef:  # (1)
    ...# get_finding_aggregator method usage example with argument unpacking
kwargs: GetFindingAggregatorRequestTypeDef = {  # (1)
    "FindingAggregatorArn": ...,
}
parent.get_finding_aggregator(**kwargs)get_finding_history#
Returns the history of a Security Hub finding.
Type annotations and code completion for boto3.client("securityhub").get_finding_history method.
 boto3 documentation
# get_finding_history method definition
def get_finding_history(
    self,
    *,
    FindingIdentifier: AwsSecurityFindingIdentifierTypeDef,  # (1)
    StartTime: TimestampTypeDef = ...,
    EndTime: TimestampTypeDef = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetFindingHistoryResponseTypeDef:  # (2)
    ...# get_finding_history method usage example with argument unpacking
kwargs: GetFindingHistoryRequestTypeDef = {  # (1)
    "FindingIdentifier": ...,
}
parent.get_finding_history(**kwargs)get_finding_statistics_v2#
Returns aggregated statistical data about findings.
Type annotations and code completion for boto3.client("securityhub").get_finding_statistics_v2 method.
 boto3 documentation
# get_finding_statistics_v2 method definition
def get_finding_statistics_v2(
    self,
    *,
    GroupByRules: Sequence[GroupByRuleTypeDef],  # (1)
    SortOrder: SortOrderType = ...,  # (2)
    MaxStatisticResults: int = ...,
) -> GetFindingStatisticsV2ResponseTypeDef:  # (3)
    ...- See Sequence[GroupByRuleTypeDef]
- See SortOrderType
- See GetFindingStatisticsV2ResponseTypeDef
# get_finding_statistics_v2 method usage example with argument unpacking
kwargs: GetFindingStatisticsV2RequestTypeDef = {  # (1)
    "GroupByRules": ...,
}
parent.get_finding_statistics_v2(**kwargs)get_findings#
Returns a list of findings that match the specified criteria.
Type annotations and code completion for boto3.client("securityhub").get_findings method.
 boto3 documentation
# get_findings method definition
def get_findings(
    self,
    *,
    Filters: AwsSecurityFindingFiltersUnionTypeDef = ...,  # (1)
    SortCriteria: Sequence[SortCriterionTypeDef] = ...,  # (2)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetFindingsResponseTypeDef:  # (3)
    ...- See AwsSecurityFindingFiltersUnionTypeDef
- See Sequence[SortCriterionTypeDef]
- See GetFindingsResponseTypeDef
# get_findings method usage example with argument unpacking
kwargs: GetFindingsRequestTypeDef = {  # (1)
    "Filters": ...,
}
parent.get_findings(**kwargs)get_findings_v2#
Return a list of findings that match the specified criteria.
Type annotations and code completion for boto3.client("securityhub").get_findings_v2 method.
 boto3 documentation
# get_findings_v2 method definition
def get_findings_v2(
    self,
    *,
    Filters: OcsfFindingFiltersUnionTypeDef = ...,  # (1)
    SortCriteria: Sequence[SortCriterionTypeDef] = ...,  # (2)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetFindingsV2ResponseTypeDef:  # (3)
    ...- See OcsfFindingFiltersUnionTypeDef
- See Sequence[SortCriterionTypeDef]
- See GetFindingsV2ResponseTypeDef
# get_findings_v2 method usage example with argument unpacking
kwargs: GetFindingsV2RequestTypeDef = {  # (1)
    "Filters": ...,
}
parent.get_findings_v2(**kwargs)get_insight_results#
Lists the results of the Security Hub insight specified by the insight ARN.
Type annotations and code completion for boto3.client("securityhub").get_insight_results method.
 boto3 documentation
# get_insight_results method definition
def get_insight_results(
    self,
    *,
    InsightArn: str,
) -> GetInsightResultsResponseTypeDef:  # (1)
    ...# get_insight_results method usage example with argument unpacking
kwargs: GetInsightResultsRequestTypeDef = {  # (1)
    "InsightArn": ...,
}
parent.get_insight_results(**kwargs)get_insights#
Lists and describes insights for the specified insight ARNs.
Type annotations and code completion for boto3.client("securityhub").get_insights method.
 boto3 documentation
# get_insights method definition
def get_insights(
    self,
    *,
    InsightArns: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetInsightsResponseTypeDef:  # (1)
    ...# get_insights method usage example with argument unpacking
kwargs: GetInsightsRequestTypeDef = {  # (1)
    "InsightArns": ...,
}
parent.get_insights(**kwargs)get_invitations_count#
We recommend using Organizations instead of Security Hub invitations to manage your member accounts.
Type annotations and code completion for boto3.client("securityhub").get_invitations_count method.
 boto3 documentation
# get_invitations_count method definition
def get_invitations_count(
    self,
) -> GetInvitationsCountResponseTypeDef:  # (1)
    ...get_master_account#
This method is deprecated.
Type annotations and code completion for boto3.client("securityhub").get_master_account method.
 boto3 documentation
# get_master_account method definition
def get_master_account(
    self,
) -> GetMasterAccountResponseTypeDef:  # (1)
    ...get_members#
Returns the details for the Security Hub member accounts for the specified account IDs.
Type annotations and code completion for boto3.client("securityhub").get_members method.
 boto3 documentation
# get_members method definition
def get_members(
    self,
    *,
    AccountIds: Sequence[str],
) -> GetMembersResponseTypeDef:  # (1)
    ...# get_members method usage example with argument unpacking
kwargs: GetMembersRequestTypeDef = {  # (1)
    "AccountIds": ...,
}
parent.get_members(**kwargs)get_resources_statistics_v2#
Retrieves statistical information about Amazon Web Services resources and their associated security findings.
Type annotations and code completion for boto3.client("securityhub").get_resources_statistics_v2 method.
 boto3 documentation
# get_resources_statistics_v2 method definition
def get_resources_statistics_v2(
    self,
    *,
    GroupByRules: Sequence[ResourceGroupByRuleTypeDef],  # (1)
    SortOrder: SortOrderType = ...,  # (2)
    MaxStatisticResults: int = ...,
) -> GetResourcesStatisticsV2ResponseTypeDef:  # (3)
    ...- See Sequence[ResourceGroupByRuleTypeDef]
- See SortOrderType
- See GetResourcesStatisticsV2ResponseTypeDef
# get_resources_statistics_v2 method usage example with argument unpacking
kwargs: GetResourcesStatisticsV2RequestTypeDef = {  # (1)
    "GroupByRules": ...,
}
parent.get_resources_statistics_v2(**kwargs)get_resources_v2#
Returns a list of resources.
Type annotations and code completion for boto3.client("securityhub").get_resources_v2 method.
 boto3 documentation
# get_resources_v2 method definition
def get_resources_v2(
    self,
    *,
    Filters: ResourcesFiltersTypeDef = ...,  # (1)
    SortCriteria: Sequence[SortCriterionTypeDef] = ...,  # (2)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetResourcesV2ResponseTypeDef:  # (3)
    ...- See ResourcesFiltersTypeDef
- See Sequence[SortCriterionTypeDef]
- See GetResourcesV2ResponseTypeDef
# get_resources_v2 method usage example with argument unpacking
kwargs: GetResourcesV2RequestTypeDef = {  # (1)
    "Filters": ...,
}
parent.get_resources_v2(**kwargs)get_security_control_definition#
Retrieves the definition of a security control.
Type annotations and code completion for boto3.client("securityhub").get_security_control_definition method.
 boto3 documentation
# get_security_control_definition method definition
def get_security_control_definition(
    self,
    *,
    SecurityControlId: str,
) -> GetSecurityControlDefinitionResponseTypeDef:  # (1)
    ...# get_security_control_definition method usage example with argument unpacking
kwargs: GetSecurityControlDefinitionRequestTypeDef = {  # (1)
    "SecurityControlId": ...,
}
parent.get_security_control_definition(**kwargs)invite_members#
We recommend using Organizations instead of Security Hub invitations to manage your member accounts.
Type annotations and code completion for boto3.client("securityhub").invite_members method.
 boto3 documentation
# invite_members method definition
def invite_members(
    self,
    *,
    AccountIds: Sequence[str],
) -> InviteMembersResponseTypeDef:  # (1)
    ...# invite_members method usage example with argument unpacking
kwargs: InviteMembersRequestTypeDef = {  # (1)
    "AccountIds": ...,
}
parent.invite_members(**kwargs)list_aggregators_v2#
Retrieves a list of V2 aggregators.
Type annotations and code completion for boto3.client("securityhub").list_aggregators_v2 method.
 boto3 documentation
# list_aggregators_v2 method definition
def list_aggregators_v2(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListAggregatorsV2ResponseTypeDef:  # (1)
    ...# list_aggregators_v2 method usage example with argument unpacking
kwargs: ListAggregatorsV2RequestTypeDef = {  # (1)
    "NextToken": ...,
}
parent.list_aggregators_v2(**kwargs)list_automation_rules#
A list of automation rules and their metadata for the calling account.
Type annotations and code completion for boto3.client("securityhub").list_automation_rules method.
 boto3 documentation
# list_automation_rules method definition
def list_automation_rules(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListAutomationRulesResponseTypeDef:  # (1)
    ...# list_automation_rules method usage example with argument unpacking
kwargs: ListAutomationRulesRequestTypeDef = {  # (1)
    "NextToken": ...,
}
parent.list_automation_rules(**kwargs)list_automation_rules_v2#
Returns a list of automation rules and metadata for the calling account.
Type annotations and code completion for boto3.client("securityhub").list_automation_rules_v2 method.
 boto3 documentation
# list_automation_rules_v2 method definition
def list_automation_rules_v2(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListAutomationRulesV2ResponseTypeDef:  # (1)
    ...# list_automation_rules_v2 method usage example with argument unpacking
kwargs: ListAutomationRulesV2RequestTypeDef = {  # (1)
    "NextToken": ...,
}
parent.list_automation_rules_v2(**kwargs)list_configuration_policies#
Lists the configuration policies that the Security Hub delegated administrator has created for your organization.
Type annotations and code completion for boto3.client("securityhub").list_configuration_policies method.
 boto3 documentation
# list_configuration_policies method definition
def list_configuration_policies(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListConfigurationPoliciesResponseTypeDef:  # (1)
    ...# list_configuration_policies method usage example with argument unpacking
kwargs: ListConfigurationPoliciesRequestTypeDef = {  # (1)
    "NextToken": ...,
}
parent.list_configuration_policies(**kwargs)list_configuration_policy_associations#
Provides information about the associations for your configuration policies and self-managed behavior.
Type annotations and code completion for boto3.client("securityhub").list_configuration_policy_associations method.
 boto3 documentation
# list_configuration_policy_associations method definition
def list_configuration_policy_associations(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: AssociationFiltersTypeDef = ...,  # (1)
) -> ListConfigurationPolicyAssociationsResponseTypeDef:  # (2)
    ...# list_configuration_policy_associations method usage example with argument unpacking
kwargs: ListConfigurationPolicyAssociationsRequestTypeDef = {  # (1)
    "NextToken": ...,
}
parent.list_configuration_policy_associations(**kwargs)list_connectors_v2#
Grants permission to retrieve a list of connectorsV2 and their metadata for the calling account.
Type annotations and code completion for boto3.client("securityhub").list_connectors_v2 method.
 boto3 documentation
# list_connectors_v2 method definition
def list_connectors_v2(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
    ProviderName: ConnectorProviderNameType = ...,  # (1)
    ConnectorStatus: ConnectorStatusType = ...,  # (2)
) -> ListConnectorsV2ResponseTypeDef:  # (3)
    ...# list_connectors_v2 method usage example with argument unpacking
kwargs: ListConnectorsV2RequestTypeDef = {  # (1)
    "NextToken": ...,
}
parent.list_connectors_v2(**kwargs)list_enabled_products_for_import#
Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.
Type annotations and code completion for boto3.client("securityhub").list_enabled_products_for_import method.
 boto3 documentation
# list_enabled_products_for_import method definition
def list_enabled_products_for_import(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListEnabledProductsForImportResponseTypeDef:  # (1)
    ...# list_enabled_products_for_import method usage example with argument unpacking
kwargs: ListEnabledProductsForImportRequestTypeDef = {  # (1)
    "NextToken": ...,
}
parent.list_enabled_products_for_import(**kwargs)list_finding_aggregators#
If cross-Region aggregation is enabled, then
ListFindingAggregators returns the Amazon Resource Name (ARN) of
the finding aggregator.
Type annotations and code completion for boto3.client("securityhub").list_finding_aggregators method.
 boto3 documentation
# list_finding_aggregators method definition
def list_finding_aggregators(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListFindingAggregatorsResponseTypeDef:  # (1)
    ...# list_finding_aggregators method usage example with argument unpacking
kwargs: ListFindingAggregatorsRequestTypeDef = {  # (1)
    "NextToken": ...,
}
parent.list_finding_aggregators(**kwargs)list_invitations#
We recommend using Organizations instead of Security Hub invitations to manage your member accounts.
Type annotations and code completion for boto3.client("securityhub").list_invitations method.
 boto3 documentation
# list_invitations method definition
def list_invitations(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListInvitationsResponseTypeDef:  # (1)
    ...# list_invitations method usage example with argument unpacking
kwargs: ListInvitationsRequestTypeDef = {  # (1)
    "MaxResults": ...,
}
parent.list_invitations(**kwargs)list_members#
Lists details about all member accounts for the current Security Hub administrator account.
Type annotations and code completion for boto3.client("securityhub").list_members method.
 boto3 documentation
# list_members method definition
def list_members(
    self,
    *,
    OnlyAssociated: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListMembersResponseTypeDef:  # (1)
    ...# list_members method usage example with argument unpacking
kwargs: ListMembersRequestTypeDef = {  # (1)
    "OnlyAssociated": ...,
}
parent.list_members(**kwargs)list_organization_admin_accounts#
Lists the Security Hub administrator accounts.
Type annotations and code completion for boto3.client("securityhub").list_organization_admin_accounts method.
 boto3 documentation
# list_organization_admin_accounts method definition
def list_organization_admin_accounts(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    Feature: SecurityHubFeatureType = ...,  # (1)
) -> ListOrganizationAdminAccountsResponseTypeDef:  # (2)
    ...# list_organization_admin_accounts method usage example with argument unpacking
kwargs: ListOrganizationAdminAccountsRequestTypeDef = {  # (1)
    "MaxResults": ...,
}
parent.list_organization_admin_accounts(**kwargs)list_security_control_definitions#
Lists all of the security controls that apply to a specified standard.
Type annotations and code completion for boto3.client("securityhub").list_security_control_definitions method.
 boto3 documentation
# list_security_control_definitions method definition
def list_security_control_definitions(
    self,
    *,
    StandardsArn: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListSecurityControlDefinitionsResponseTypeDef:  # (1)
    ...# list_security_control_definitions method usage example with argument unpacking
kwargs: ListSecurityControlDefinitionsRequestTypeDef = {  # (1)
    "StandardsArn": ...,
}
parent.list_security_control_definitions(**kwargs)list_standards_control_associations#
Specifies whether a control is currently enabled or disabled in each enabled standard in the calling account.
Type annotations and code completion for boto3.client("securityhub").list_standards_control_associations method.
 boto3 documentation
# list_standards_control_associations method definition
def list_standards_control_associations(
    self,
    *,
    SecurityControlId: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListStandardsControlAssociationsResponseTypeDef:  # (1)
    ...# list_standards_control_associations method usage example with argument unpacking
kwargs: ListStandardsControlAssociationsRequestTypeDef = {  # (1)
    "SecurityControlId": ...,
}
parent.list_standards_control_associations(**kwargs)list_tags_for_resource#
Returns a list of tags associated with a resource.
Type annotations and code completion for boto3.client("securityhub").list_tags_for_resource method.
 boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
    self,
    *,
    ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)start_configuration_policy_association#
Associates a target account, organizational unit, or the root with a specified configuration.
Type annotations and code completion for boto3.client("securityhub").start_configuration_policy_association method.
 boto3 documentation
# start_configuration_policy_association method definition
def start_configuration_policy_association(
    self,
    *,
    ConfigurationPolicyIdentifier: str,
    Target: TargetTypeDef,  # (1)
) -> StartConfigurationPolicyAssociationResponseTypeDef:  # (2)
    ...# start_configuration_policy_association method usage example with argument unpacking
kwargs: StartConfigurationPolicyAssociationRequestTypeDef = {  # (1)
    "ConfigurationPolicyIdentifier": ...,
    "Target": ...,
}
parent.start_configuration_policy_association(**kwargs)start_configuration_policy_disassociation#
Disassociates a target account, organizational unit, or the root from a specified configuration.
Type annotations and code completion for boto3.client("securityhub").start_configuration_policy_disassociation method.
 boto3 documentation
# start_configuration_policy_disassociation method definition
def start_configuration_policy_disassociation(
    self,
    *,
    ConfigurationPolicyIdentifier: str,
    Target: TargetTypeDef = ...,  # (1)
) -> Dict[str, Any]:
    ...- See TargetTypeDef
# start_configuration_policy_disassociation method usage example with argument unpacking
kwargs: StartConfigurationPolicyDisassociationRequestTypeDef = {  # (1)
    "ConfigurationPolicyIdentifier": ...,
}
parent.start_configuration_policy_disassociation(**kwargs)tag_resource#
Adds one or more tags to a resource.
Type annotations and code completion for boto3.client("securityhub").tag_resource method.
 boto3 documentation
# tag_resource method definition
def tag_resource(
    self,
    *,
    ResourceArn: str,
    Tags: Mapping[str, str],
) -> Dict[str, Any]:
    ...# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "Tags": ...,
}
parent.tag_resource(**kwargs)untag_resource#
Removes one or more tags from a resource.
Type annotations and code completion for boto3.client("securityhub").untag_resource method.
 boto3 documentation
# untag_resource method definition
def untag_resource(
    self,
    *,
    ResourceArn: str,
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "TagKeys": ...,
}
parent.untag_resource(**kwargs)update_action_target#
Updates the name and description of a custom action target in Security Hub.
Type annotations and code completion for boto3.client("securityhub").update_action_target method.
 boto3 documentation
# update_action_target method definition
def update_action_target(
    self,
    *,
    ActionTargetArn: str,
    Name: str = ...,
    Description: str = ...,
) -> Dict[str, Any]:
    ...# update_action_target method usage example with argument unpacking
kwargs: UpdateActionTargetRequestTypeDef = {  # (1)
    "ActionTargetArn": ...,
}
parent.update_action_target(**kwargs)update_aggregator_v2#
Udpates the configuration for the Aggregator V2.
Type annotations and code completion for boto3.client("securityhub").update_aggregator_v2 method.
 boto3 documentation
# update_aggregator_v2 method definition
def update_aggregator_v2(
    self,
    *,
    AggregatorV2Arn: str,
    RegionLinkingMode: str,
    LinkedRegions: Sequence[str] = ...,
) -> UpdateAggregatorV2ResponseTypeDef:  # (1)
    ...# update_aggregator_v2 method usage example with argument unpacking
kwargs: UpdateAggregatorV2RequestTypeDef = {  # (1)
    "AggregatorV2Arn": ...,
    "RegionLinkingMode": ...,
}
parent.update_aggregator_v2(**kwargs)update_automation_rule_v2#
Updates a V2 automation rule.
Type annotations and code completion for boto3.client("securityhub").update_automation_rule_v2 method.
 boto3 documentation
# update_automation_rule_v2 method definition
def update_automation_rule_v2(
    self,
    *,
    Identifier: str,
    RuleStatus: RuleStatusV2Type = ...,  # (1)
    RuleOrder: float = ...,
    Description: str = ...,
    RuleName: str = ...,
    Criteria: CriteriaUnionTypeDef = ...,  # (2)
    Actions: Sequence[AutomationRulesActionV2TypeDef] = ...,  # (3)
) -> Dict[str, Any]:
    ...- See RuleStatusV2Type
- See CriteriaUnionTypeDef
- See Sequence[AutomationRulesActionV2TypeDef]
# update_automation_rule_v2 method usage example with argument unpacking
kwargs: UpdateAutomationRuleV2RequestTypeDef = {  # (1)
    "Identifier": ...,
}
parent.update_automation_rule_v2(**kwargs)update_configuration_policy#
Updates a configuration policy.
Type annotations and code completion for boto3.client("securityhub").update_configuration_policy method.
 boto3 documentation
# update_configuration_policy method definition
def update_configuration_policy(
    self,
    *,
    Identifier: str,
    Name: str = ...,
    Description: str = ...,
    UpdatedReason: str = ...,
    ConfigurationPolicy: PolicyUnionTypeDef = ...,  # (1)
) -> UpdateConfigurationPolicyResponseTypeDef:  # (2)
    ...# update_configuration_policy method usage example with argument unpacking
kwargs: UpdateConfigurationPolicyRequestTypeDef = {  # (1)
    "Identifier": ...,
}
parent.update_configuration_policy(**kwargs)update_connector_v2#
Grants permission to update a connectorV2 based on its id and input parameters.
Type annotations and code completion for boto3.client("securityhub").update_connector_v2 method.
 boto3 documentation
# update_connector_v2 method definition
def update_connector_v2(
    self,
    *,
    ConnectorId: str,
    ClientSecret: str = ...,
    Description: str = ...,
    Provider: ProviderUpdateConfigurationTypeDef = ...,  # (1)
) -> Dict[str, Any]:
    ...# update_connector_v2 method usage example with argument unpacking
kwargs: UpdateConnectorV2RequestTypeDef = {  # (1)
    "ConnectorId": ...,
}
parent.update_connector_v2(**kwargs)update_finding_aggregator#
The aggregation Region is now called the home Region.
Type annotations and code completion for boto3.client("securityhub").update_finding_aggregator method.
 boto3 documentation
# update_finding_aggregator method definition
def update_finding_aggregator(
    self,
    *,
    FindingAggregatorArn: str,
    RegionLinkingMode: str,
    Regions: Sequence[str] = ...,
) -> UpdateFindingAggregatorResponseTypeDef:  # (1)
    ...# update_finding_aggregator method usage example with argument unpacking
kwargs: UpdateFindingAggregatorRequestTypeDef = {  # (1)
    "FindingAggregatorArn": ...,
    "RegionLinkingMode": ...,
}
parent.update_finding_aggregator(**kwargs)update_findings#
UpdateFindings is a deprecated operation.
Type annotations and code completion for boto3.client("securityhub").update_findings method.
 boto3 documentation
# update_findings method definition
def update_findings(
    self,
    *,
    Filters: AwsSecurityFindingFiltersUnionTypeDef,  # (1)
    Note: NoteUpdateTypeDef = ...,  # (2)
    RecordState: RecordStateType = ...,  # (3)
) -> Dict[str, Any]:
    ...# update_findings method usage example with argument unpacking
kwargs: UpdateFindingsRequestTypeDef = {  # (1)
    "Filters": ...,
}
parent.update_findings(**kwargs)update_insight#
Updates the Security Hub insight identified by the specified insight ARN.
Type annotations and code completion for boto3.client("securityhub").update_insight method.
 boto3 documentation
# update_insight method definition
def update_insight(
    self,
    *,
    InsightArn: str,
    Name: str = ...,
    Filters: AwsSecurityFindingFiltersUnionTypeDef = ...,  # (1)
    GroupByAttribute: str = ...,
) -> Dict[str, Any]:
    ...# update_insight method usage example with argument unpacking
kwargs: UpdateInsightRequestTypeDef = {  # (1)
    "InsightArn": ...,
}
parent.update_insight(**kwargs)update_organization_configuration#
Updates the configuration of your organization in Security Hub.
Type annotations and code completion for boto3.client("securityhub").update_organization_configuration method.
 boto3 documentation
# update_organization_configuration method definition
def update_organization_configuration(
    self,
    *,
    AutoEnable: bool,
    AutoEnableStandards: AutoEnableStandardsType = ...,  # (1)
    OrganizationConfiguration: OrganizationConfigurationTypeDef = ...,  # (2)
) -> Dict[str, Any]:
    ...# update_organization_configuration method usage example with argument unpacking
kwargs: UpdateOrganizationConfigurationRequestTypeDef = {  # (1)
    "AutoEnable": ...,
}
parent.update_organization_configuration(**kwargs)update_security_control#
Updates the properties of a security control.
Type annotations and code completion for boto3.client("securityhub").update_security_control method.
 boto3 documentation
# update_security_control method definition
def update_security_control(
    self,
    *,
    SecurityControlId: str,
    Parameters: Mapping[str, ParameterConfigurationUnionTypeDef],  # (1)
    LastUpdateReason: str = ...,
) -> Dict[str, Any]:
    ...- See Mapping[str, ParameterConfigurationUnionTypeDef]
# update_security_control method usage example with argument unpacking
kwargs: UpdateSecurityControlRequestTypeDef = {  # (1)
    "SecurityControlId": ...,
    "Parameters": ...,
}
parent.update_security_control(**kwargs)update_security_hub_configuration#
Updates configuration options for Security Hub.
Type annotations and code completion for boto3.client("securityhub").update_security_hub_configuration method.
 boto3 documentation
# update_security_hub_configuration method definition
def update_security_hub_configuration(
    self,
    *,
    AutoEnableControls: bool = ...,
    ControlFindingGenerator: ControlFindingGeneratorType = ...,  # (1)
) -> Dict[str, Any]:
    ...# update_security_hub_configuration method usage example with argument unpacking
kwargs: UpdateSecurityHubConfigurationRequestTypeDef = {  # (1)
    "AutoEnableControls": ...,
}
parent.update_security_hub_configuration(**kwargs)update_standards_control#
Used to control whether an individual security standard control is enabled or disabled.
Type annotations and code completion for boto3.client("securityhub").update_standards_control method.
 boto3 documentation
# update_standards_control method definition
def update_standards_control(
    self,
    *,
    StandardsControlArn: str,
    ControlStatus: ControlStatusType = ...,  # (1)
    DisabledReason: str = ...,
) -> Dict[str, Any]:
    ...# update_standards_control method usage example with argument unpacking
kwargs: UpdateStandardsControlRequestTypeDef = {  # (1)
    "StandardsControlArn": ...,
}
parent.update_standards_control(**kwargs)get_paginator#
Type annotations and code completion for boto3.client("securityhub").get_paginator method with overloads.
- client.get_paginator("describe_action_targets")-> DescribeActionTargetsPaginator
- client.get_paginator("describe_products")-> DescribeProductsPaginator
- client.get_paginator("describe_products_v2")-> DescribeProductsV2Paginator
- client.get_paginator("describe_standards_controls")-> DescribeStandardsControlsPaginator
- client.get_paginator("describe_standards")-> DescribeStandardsPaginator
- client.get_paginator("get_enabled_standards")-> GetEnabledStandardsPaginator
- client.get_paginator("get_finding_history")-> GetFindingHistoryPaginator
- client.get_paginator("get_findings")-> GetFindingsPaginator
- client.get_paginator("get_findings_v2")-> GetFindingsV2Paginator
- client.get_paginator("get_insights")-> GetInsightsPaginator
- client.get_paginator("get_resources_v2")-> GetResourcesV2Paginator
- client.get_paginator("list_aggregators_v2")-> ListAggregatorsV2Paginator
- client.get_paginator("list_configuration_policies")-> ListConfigurationPoliciesPaginator
- client.get_paginator("list_configuration_policy_associations")-> ListConfigurationPolicyAssociationsPaginator
- client.get_paginator("list_enabled_products_for_import")-> ListEnabledProductsForImportPaginator
- client.get_paginator("list_finding_aggregators")-> ListFindingAggregatorsPaginator
- client.get_paginator("list_invitations")-> ListInvitationsPaginator
- client.get_paginator("list_members")-> ListMembersPaginator
- client.get_paginator("list_organization_admin_accounts")-> ListOrganizationAdminAccountsPaginator
- client.get_paginator("list_security_control_definitions")-> ListSecurityControlDefinitionsPaginator
- client.get_paginator("list_standards_control_associations")-> ListStandardsControlAssociationsPaginator