Inspector2Client
Index > Inspector2 > Inspector2Client
Auto-generated documentation for Inspector2 type annotations stubs module mypy-boto3-inspector2.
Inspector2Client
Type annotations and code completion for boto3.client("inspector2")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_inspector2.client import Inspector2Client
def get_inspector2_client() -> Inspector2Client:
return Session().client("inspector2")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("inspector2").exceptions
structure.
client = boto3.client("inspector2")
try:
do_something(client)
except (
client.AccessDeniedException,
client.BadRequestException,
client.ClientError,
client.ConflictException,
client.InternalServerException,
client.ResourceNotFoundException,
client.ServiceQuotaExceededException,
client.ThrottlingException,
client.ValidationException,
) as e:
print(e)
from mypy_boto3_inspector2.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods
associate_member
Associates an Amazon Web Services account with an Amazon Inspector delegated administrator.
Type annotations and code completion for boto3.client("inspector2").associate_member
method.
boto3 documentation
def associate_member(
self,
*,
accountId: str,
) -> AssociateMemberResponseTypeDef: # (1)
...
kwargs: AssociateMemberRequestRequestTypeDef = { # (1)
"accountId": ...,
}
parent.associate_member(**kwargs)
batch_get_account_status
Retrieves the Amazon Inspector status of multiple Amazon Web Services accounts within your environment.
Type annotations and code completion for boto3.client("inspector2").batch_get_account_status
method.
boto3 documentation
def batch_get_account_status(
self,
*,
accountIds: Sequence[str] = ...,
) -> BatchGetAccountStatusResponseTypeDef: # (1)
...
kwargs: BatchGetAccountStatusRequestRequestTypeDef = { # (1)
"accountIds": ...,
}
parent.batch_get_account_status(**kwargs)
batch_get_free_trial_info
Gets free trial status for multiple Amazon Web Services accounts.
Type annotations and code completion for boto3.client("inspector2").batch_get_free_trial_info
method.
boto3 documentation
def batch_get_free_trial_info(
self,
*,
accountIds: Sequence[str],
) -> BatchGetFreeTrialInfoResponseTypeDef: # (1)
...
kwargs: BatchGetFreeTrialInfoRequestRequestTypeDef = { # (1)
"accountIds": ...,
}
parent.batch_get_free_trial_info(**kwargs)
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("inspector2").can_paginate
method.
boto3 documentation
cancel_findings_report
Cancels the given findings report.
Type annotations and code completion for boto3.client("inspector2").cancel_findings_report
method.
boto3 documentation
def cancel_findings_report(
self,
*,
reportId: str,
) -> CancelFindingsReportResponseTypeDef: # (1)
...
kwargs: CancelFindingsReportRequestRequestTypeDef = { # (1)
"reportId": ...,
}
parent.cancel_findings_report(**kwargs)
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("inspector2").close
method.
boto3 documentation
create_filter
Creates a filter resource using specified filter criteria.
Type annotations and code completion for boto3.client("inspector2").create_filter
method.
boto3 documentation
def create_filter(
self,
*,
action: FilterActionType, # (1)
filterCriteria: FilterCriteriaTypeDef, # (2)
name: str,
description: str = ...,
reason: str = ...,
tags: Mapping[str, str] = ...,
) -> CreateFilterResponseTypeDef: # (3)
...
kwargs: CreateFilterRequestRequestTypeDef = { # (1)
"action": ...,
"filterCriteria": ...,
"name": ...,
}
parent.create_filter(**kwargs)
create_findings_report
Creates a finding report.
Type annotations and code completion for boto3.client("inspector2").create_findings_report
method.
boto3 documentation
def create_findings_report(
self,
*,
reportFormat: ReportFormatType, # (1)
s3Destination: DestinationTypeDef, # (2)
filterCriteria: FilterCriteriaTypeDef = ..., # (3)
) -> CreateFindingsReportResponseTypeDef: # (4)
...
- See ReportFormatType
- See DestinationTypeDef
- See FilterCriteriaTypeDef
- See CreateFindingsReportResponseTypeDef
kwargs: CreateFindingsReportRequestRequestTypeDef = { # (1)
"reportFormat": ...,
"s3Destination": ...,
}
parent.create_findings_report(**kwargs)
delete_filter
Deletes a filter resource.
Type annotations and code completion for boto3.client("inspector2").delete_filter
method.
boto3 documentation
kwargs: DeleteFilterRequestRequestTypeDef = { # (1)
"arn": ...,
}
parent.delete_filter(**kwargs)
describe_organization_configuration
Describe Amazon Inspector configuration settings for an Amazon Web Services organization.
Type annotations and code completion for boto3.client("inspector2").describe_organization_configuration
method.
boto3 documentation
def describe_organization_configuration(
self,
) -> DescribeOrganizationConfigurationResponseTypeDef: # (1)
...
disable
Disables Amazon Inspector scans for one or more Amazon Web Services accounts.
Type annotations and code completion for boto3.client("inspector2").disable
method.
boto3 documentation
def disable(
self,
*,
accountIds: Sequence[str] = ...,
resourceTypes: Sequence[ResourceScanTypeType] = ..., # (1)
) -> DisableResponseTypeDef: # (2)
...
kwargs: DisableRequestRequestTypeDef = { # (1)
"accountIds": ...,
}
parent.disable(**kwargs)
disable_delegated_admin_account
Disables the Amazon Inspector delegated administrator for your organization.
Type annotations and code completion for boto3.client("inspector2").disable_delegated_admin_account
method.
boto3 documentation
def disable_delegated_admin_account(
self,
*,
delegatedAdminAccountId: str,
) -> DisableDelegatedAdminAccountResponseTypeDef: # (1)
...
kwargs: DisableDelegatedAdminAccountRequestRequestTypeDef = { # (1)
"delegatedAdminAccountId": ...,
}
parent.disable_delegated_admin_account(**kwargs)
disassociate_member
Disassociates a member account from an Amazon Inspector delegated administrator.
Type annotations and code completion for boto3.client("inspector2").disassociate_member
method.
boto3 documentation
def disassociate_member(
self,
*,
accountId: str,
) -> DisassociateMemberResponseTypeDef: # (1)
...
kwargs: DisassociateMemberRequestRequestTypeDef = { # (1)
"accountId": ...,
}
parent.disassociate_member(**kwargs)
enable
Enables Amazon Inspector scans for one or more Amazon Web Services accounts.
Type annotations and code completion for boto3.client("inspector2").enable
method.
boto3 documentation
def enable(
self,
*,
resourceTypes: Sequence[ResourceScanTypeType], # (1)
accountIds: Sequence[str] = ...,
clientToken: str = ...,
) -> EnableResponseTypeDef: # (2)
...
kwargs: EnableRequestRequestTypeDef = { # (1)
"resourceTypes": ...,
}
parent.enable(**kwargs)
enable_delegated_admin_account
Enables the Amazon Inspector delegated administrator for your Organizations organization.
Type annotations and code completion for boto3.client("inspector2").enable_delegated_admin_account
method.
boto3 documentation
def enable_delegated_admin_account(
self,
*,
delegatedAdminAccountId: str,
clientToken: str = ...,
) -> EnableDelegatedAdminAccountResponseTypeDef: # (1)
...
kwargs: EnableDelegatedAdminAccountRequestRequestTypeDef = { # (1)
"delegatedAdminAccountId": ...,
}
parent.enable_delegated_admin_account(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("inspector2").generate_presigned_url
method.
boto3 documentation
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_configuration
Retrieves setting configurations for Inspector scans.
Type annotations and code completion for boto3.client("inspector2").get_configuration
method.
boto3 documentation
get_delegated_admin_account
Retrieves information about the Amazon Inspector delegated administrator for your organization.
Type annotations and code completion for boto3.client("inspector2").get_delegated_admin_account
method.
boto3 documentation
def get_delegated_admin_account(
self,
) -> GetDelegatedAdminAccountResponseTypeDef: # (1)
...
get_findings_report_status
Gets the status of a findings report.
Type annotations and code completion for boto3.client("inspector2").get_findings_report_status
method.
boto3 documentation
def get_findings_report_status(
self,
*,
reportId: str = ...,
) -> GetFindingsReportStatusResponseTypeDef: # (1)
...
kwargs: GetFindingsReportStatusRequestRequestTypeDef = { # (1)
"reportId": ...,
}
parent.get_findings_report_status(**kwargs)
get_member
Gets member information for your organization.
Type annotations and code completion for boto3.client("inspector2").get_member
method.
boto3 documentation
kwargs: GetMemberRequestRequestTypeDef = { # (1)
"accountId": ...,
}
parent.get_member(**kwargs)
list_account_permissions
Lists the permissions an account has to configure Amazon Inspector.
Type annotations and code completion for boto3.client("inspector2").list_account_permissions
method.
boto3 documentation
def list_account_permissions(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
service: ServiceType = ..., # (1)
) -> ListAccountPermissionsResponseTypeDef: # (2)
...
kwargs: ListAccountPermissionsRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_account_permissions(**kwargs)
list_coverage
Lists coverage details for you environment.
Type annotations and code completion for boto3.client("inspector2").list_coverage
method.
boto3 documentation
def list_coverage(
self,
*,
filterCriteria: CoverageFilterCriteriaTypeDef = ..., # (1)
maxResults: int = ...,
nextToken: str = ...,
) -> ListCoverageResponseTypeDef: # (2)
...
kwargs: ListCoverageRequestRequestTypeDef = { # (1)
"filterCriteria": ...,
}
parent.list_coverage(**kwargs)
list_coverage_statistics
Lists Amazon Inspector coverage statistics for your environment.
Type annotations and code completion for boto3.client("inspector2").list_coverage_statistics
method.
boto3 documentation
def list_coverage_statistics(
self,
*,
filterCriteria: CoverageFilterCriteriaTypeDef = ..., # (1)
groupBy: GroupKeyType = ..., # (2)
nextToken: str = ...,
) -> ListCoverageStatisticsResponseTypeDef: # (3)
...
kwargs: ListCoverageStatisticsRequestRequestTypeDef = { # (1)
"filterCriteria": ...,
}
parent.list_coverage_statistics(**kwargs)
list_delegated_admin_accounts
Lists information about the Amazon Inspector delegated administrator of your organization.
Type annotations and code completion for boto3.client("inspector2").list_delegated_admin_accounts
method.
boto3 documentation
def list_delegated_admin_accounts(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
) -> ListDelegatedAdminAccountsResponseTypeDef: # (1)
...
kwargs: ListDelegatedAdminAccountsRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_delegated_admin_accounts(**kwargs)
list_filters
Lists the filters associated with your account.
Type annotations and code completion for boto3.client("inspector2").list_filters
method.
boto3 documentation
def list_filters(
self,
*,
action: FilterActionType = ..., # (1)
arns: Sequence[str] = ...,
maxResults: int = ...,
nextToken: str = ...,
) -> ListFiltersResponseTypeDef: # (2)
...
kwargs: ListFiltersRequestRequestTypeDef = { # (1)
"action": ...,
}
parent.list_filters(**kwargs)
list_finding_aggregations
Lists aggregated finding data for your environment based on specific criteria.
Type annotations and code completion for boto3.client("inspector2").list_finding_aggregations
method.
boto3 documentation
def list_finding_aggregations(
self,
*,
aggregationType: AggregationTypeType, # (1)
accountIds: Sequence[StringFilterTypeDef] = ..., # (2)
aggregationRequest: AggregationRequestTypeDef = ..., # (3)
maxResults: int = ...,
nextToken: str = ...,
) -> ListFindingAggregationsResponseTypeDef: # (4)
...
- See AggregationTypeType
- See StringFilterTypeDef
- See AggregationRequestTypeDef
- See ListFindingAggregationsResponseTypeDef
kwargs: ListFindingAggregationsRequestRequestTypeDef = { # (1)
"aggregationType": ...,
}
parent.list_finding_aggregations(**kwargs)
list_findings
Lists findings for your environment.
Type annotations and code completion for boto3.client("inspector2").list_findings
method.
boto3 documentation
def list_findings(
self,
*,
filterCriteria: FilterCriteriaTypeDef = ..., # (1)
maxResults: int = ...,
nextToken: str = ...,
sortCriteria: SortCriteriaTypeDef = ..., # (2)
) -> ListFindingsResponseTypeDef: # (3)
...
kwargs: ListFindingsRequestRequestTypeDef = { # (1)
"filterCriteria": ...,
}
parent.list_findings(**kwargs)
list_members
List members associated with the Amazon Inspector delegated administrator for your organization.
Type annotations and code completion for boto3.client("inspector2").list_members
method.
boto3 documentation
def list_members(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
onlyAssociated: bool = ...,
) -> ListMembersResponseTypeDef: # (1)
...
kwargs: ListMembersRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_members(**kwargs)
list_tags_for_resource
Lists all tags attached to a given resource.
Type annotations and code completion for boto3.client("inspector2").list_tags_for_resource
method.
boto3 documentation
def list_tags_for_resource(
self,
*,
resourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
list_usage_totals
Lists the Amazon Inspector usage totals over the last 30 days.
Type annotations and code completion for boto3.client("inspector2").list_usage_totals
method.
boto3 documentation
def list_usage_totals(
self,
*,
accountIds: Sequence[str] = ...,
maxResults: int = ...,
nextToken: str = ...,
) -> ListUsageTotalsResponseTypeDef: # (1)
...
kwargs: ListUsageTotalsRequestRequestTypeDef = { # (1)
"accountIds": ...,
}
parent.list_usage_totals(**kwargs)
tag_resource
Adds tags to a resource.
Type annotations and code completion for boto3.client("inspector2").tag_resource
method.
boto3 documentation
def tag_resource(
self,
*,
resourceArn: str,
tags: Mapping[str, str],
) -> Dict[str, Any]:
...
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource
Removes tags from a resource.
Type annotations and code completion for boto3.client("inspector2").untag_resource
method.
boto3 documentation
def untag_resource(
self,
*,
resourceArn: str,
tagKeys: Sequence[str],
) -> Dict[str, Any]:
...
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tagKeys": ...,
}
parent.untag_resource(**kwargs)
update_configuration
Updates setting configurations for your Amazon Inspector account.
Type annotations and code completion for boto3.client("inspector2").update_configuration
method.
boto3 documentation
def update_configuration(
self,
*,
ecrConfiguration: EcrConfigurationTypeDef, # (1)
) -> Dict[str, Any]:
...
kwargs: UpdateConfigurationRequestRequestTypeDef = { # (1)
"ecrConfiguration": ...,
}
parent.update_configuration(**kwargs)
update_filter
Specifies the action that is to be applied to the findings that match the filter.
Type annotations and code completion for boto3.client("inspector2").update_filter
method.
boto3 documentation
def update_filter(
self,
*,
filterArn: str,
action: FilterActionType = ..., # (1)
description: str = ...,
filterCriteria: FilterCriteriaTypeDef = ..., # (2)
name: str = ...,
reason: str = ...,
) -> UpdateFilterResponseTypeDef: # (3)
...
kwargs: UpdateFilterRequestRequestTypeDef = { # (1)
"filterArn": ...,
}
parent.update_filter(**kwargs)
update_organization_configuration
Updates the configurations for your Amazon Inspector organization.
Type annotations and code completion for boto3.client("inspector2").update_organization_configuration
method.
boto3 documentation
def update_organization_configuration(
self,
*,
autoEnable: AutoEnableTypeDef, # (1)
) -> UpdateOrganizationConfigurationResponseTypeDef: # (2)
...
kwargs: UpdateOrganizationConfigurationRequestRequestTypeDef = { # (1)
"autoEnable": ...,
}
parent.update_organization_configuration(**kwargs)
get_paginator
Type annotations and code completion for boto3.client("inspector2").get_paginator
method with overloads.
client.get_paginator("list_account_permissions")
-> ListAccountPermissionsPaginatorclient.get_paginator("list_coverage")
-> ListCoveragePaginatorclient.get_paginator("list_coverage_statistics")
-> ListCoverageStatisticsPaginatorclient.get_paginator("list_delegated_admin_accounts")
-> ListDelegatedAdminAccountsPaginatorclient.get_paginator("list_filters")
-> ListFiltersPaginatorclient.get_paginator("list_finding_aggregations")
-> ListFindingAggregationsPaginatorclient.get_paginator("list_findings")
-> ListFindingsPaginatorclient.get_paginator("list_members")
-> ListMembersPaginatorclient.get_paginator("list_usage_totals")
-> ListUsageTotalsPaginator