Struct aws_sdk_inspector2::Client
source · pub struct Client { /* private fields */ }Expand description
Client for Inspector2
Client for invoking operations on Inspector2. Each operation on Inspector2 is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
Constructing a Client
A Config is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env() instead, which returns a ConfigLoader that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_inspector2::Client::new(&config);Occasionally, SDKs may have additional service-specific that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Config struct implements From<&SdkConfig>, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_inspector2::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();See the aws-config docs and Config for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
Using the Client
A client has a function for every operation that can be performed by the service.
For example, the AssociateMember operation has
a Client::associate_member, function which returns a builder for that operation.
The fluent builder ultimately has a send() function that returns an async future that
returns a result, as illustrated below:
let result = client.associate_member()
.account_id("example")
.send()
.await;The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize module for more
information.
Implementations§
source§impl Client
impl Client
sourcepub fn associate_member(&self) -> AssociateMemberFluentBuilder
pub fn associate_member(&self) -> AssociateMemberFluentBuilder
Constructs a fluent builder for the AssociateMember operation.
- The fluent builder is configurable:
account_id(impl Into<String>)/set_account_id(Option<String>):The Amazon Web Services account ID of the member account to be associated.
- On success, responds with
AssociateMemberOutputwith field(s):account_id(Option<String>):The Amazon Web Services account ID of the successfully associated member account.
- On failure, responds with
SdkError<AssociateMemberError>
source§impl Client
impl Client
sourcepub fn batch_get_account_status(&self) -> BatchGetAccountStatusFluentBuilder
pub fn batch_get_account_status(&self) -> BatchGetAccountStatusFluentBuilder
Constructs a fluent builder for the BatchGetAccountStatus operation.
- The fluent builder is configurable:
account_ids(impl Into<String>)/set_account_ids(Option<Vec<String>>):The 12-digit Amazon Web Services account IDs of the accounts to retrieve Amazon Inspector status for.
- On success, responds with
BatchGetAccountStatusOutputwith field(s):accounts(Option<Vec<AccountState>>):An array of objects that provide details on the status of Amazon Inspector for each of the requested accounts.
failed_accounts(Option<Vec<FailedAccount>>):An array of objects detailing any accounts that failed to enable Amazon Inspector and why.
- On failure, responds with
SdkError<BatchGetAccountStatusError>
source§impl Client
impl Client
sourcepub fn batch_get_code_snippet(&self) -> BatchGetCodeSnippetFluentBuilder
pub fn batch_get_code_snippet(&self) -> BatchGetCodeSnippetFluentBuilder
Constructs a fluent builder for the BatchGetCodeSnippet operation.
- The fluent builder is configurable:
finding_arns(impl Into<String>)/set_finding_arns(Option<Vec<String>>):An array of finding ARNs for the findings you want to retrieve code snippets from.
- On success, responds with
BatchGetCodeSnippetOutputwith field(s):code_snippet_results(Option<Vec<CodeSnippetResult>>):The retrieved code snippets associated with the provided finding ARNs.
errors(Option<Vec<CodeSnippetError>>):Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.
- On failure, responds with
SdkError<BatchGetCodeSnippetError>
source§impl Client
impl Client
sourcepub fn batch_get_free_trial_info(&self) -> BatchGetFreeTrialInfoFluentBuilder
pub fn batch_get_free_trial_info(&self) -> BatchGetFreeTrialInfoFluentBuilder
Constructs a fluent builder for the BatchGetFreeTrialInfo operation.
- The fluent builder is configurable:
account_ids(impl Into<String>)/set_account_ids(Option<Vec<String>>):The account IDs to get free trial status for.
- On success, responds with
BatchGetFreeTrialInfoOutputwith field(s):accounts(Option<Vec<FreeTrialAccountInfo>>):An array of objects that provide Amazon Inspector free trial details for each of the requested accounts.
failed_accounts(Option<Vec<FreeTrialInfoError>>):An array of objects detailing any accounts that free trial data could not be returned for.
- On failure, responds with
SdkError<BatchGetFreeTrialInfoError>
source§impl Client
impl Client
sourcepub fn batch_get_member_ec2_deep_inspection_status(
&self
) -> BatchGetMemberEc2DeepInspectionStatusFluentBuilder
pub fn batch_get_member_ec2_deep_inspection_status( &self ) -> BatchGetMemberEc2DeepInspectionStatusFluentBuilder
Constructs a fluent builder for the BatchGetMemberEc2DeepInspectionStatus operation.
- The fluent builder is configurable:
account_ids(impl Into<String>)/set_account_ids(Option<Vec<String>>):The unique identifiers for the Amazon Web Services accounts to retrieve Amazon Inspector deep inspection activation status for.
- On success, responds with
BatchGetMemberEc2DeepInspectionStatusOutputwith field(s):account_ids(Option<Vec<MemberAccountEc2DeepInspectionStatusState>>):An array of objects that provide details on the activation status of Amazon Inspector deep inspection for each of the requested accounts.
failed_account_ids(Option<Vec<FailedMemberAccountEc2DeepInspectionStatusState>>):An array of objects that provide details on any accounts that failed to activate Amazon Inspector deep inspection and why.
- On failure, responds with
SdkError<BatchGetMemberEc2DeepInspectionStatusError>
source§impl Client
impl Client
sourcepub fn batch_update_member_ec2_deep_inspection_status(
&self
) -> BatchUpdateMemberEc2DeepInspectionStatusFluentBuilder
pub fn batch_update_member_ec2_deep_inspection_status( &self ) -> BatchUpdateMemberEc2DeepInspectionStatusFluentBuilder
Constructs a fluent builder for the BatchUpdateMemberEc2DeepInspectionStatus operation.
- The fluent builder is configurable:
account_ids(MemberAccountEc2DeepInspectionStatus)/set_account_ids(Option<Vec<MemberAccountEc2DeepInspectionStatus>>):The unique identifiers for the Amazon Web Services accounts to change Amazon Inspector deep inspection status for.
- On success, responds with
BatchUpdateMemberEc2DeepInspectionStatusOutputwith field(s):account_ids(Option<Vec<MemberAccountEc2DeepInspectionStatusState>>):An array of objects that provide details for each of the accounts that Amazon Inspector deep inspection status was successfully changed for.
failed_account_ids(Option<Vec<FailedMemberAccountEc2DeepInspectionStatusState>>):An array of objects that provide details for each of the accounts that Amazon Inspector deep inspection status could not be successfully changed for.
- On failure, responds with
SdkError<BatchUpdateMemberEc2DeepInspectionStatusError>
source§impl Client
impl Client
sourcepub fn cancel_findings_report(&self) -> CancelFindingsReportFluentBuilder
pub fn cancel_findings_report(&self) -> CancelFindingsReportFluentBuilder
Constructs a fluent builder for the CancelFindingsReport operation.
- The fluent builder is configurable:
report_id(impl Into<String>)/set_report_id(Option<String>):The ID of the report to be canceled.
- On success, responds with
CancelFindingsReportOutputwith field(s):report_id(Option<String>):The ID of the canceled report.
- On failure, responds with
SdkError<CancelFindingsReportError>
source§impl Client
impl Client
sourcepub fn cancel_sbom_export(&self) -> CancelSbomExportFluentBuilder
pub fn cancel_sbom_export(&self) -> CancelSbomExportFluentBuilder
Constructs a fluent builder for the CancelSbomExport operation.
- The fluent builder is configurable:
report_id(impl Into<String>)/set_report_id(Option<String>):The report ID of the SBOM export to cancel.
- On success, responds with
CancelSbomExportOutputwith field(s):report_id(Option<String>):The report ID of the canceled SBOM export.
- On failure, responds with
SdkError<CancelSbomExportError>
source§impl Client
impl Client
sourcepub fn create_filter(&self) -> CreateFilterFluentBuilder
pub fn create_filter(&self) -> CreateFilterFluentBuilder
Constructs a fluent builder for the CreateFilter operation.
- The fluent builder is configurable:
action(FilterAction)/set_action(Option<FilterAction>):Defines the action that is to be applied to the findings that match the filter.
description(impl Into<String>)/set_description(Option<String>):A description of the filter.
filter_criteria(FilterCriteria)/set_filter_criteria(Option<FilterCriteria>):Defines the criteria to be used in the filter for querying findings.
name(impl Into<String>)/set_name(Option<String>):The name of the filter. Minimum length of 3. Maximum length of 64. Valid characters include alphanumeric characters, dot (.), underscore (_), and dash (-). Spaces are not allowed.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap<String, String>>):A list of tags for the filter.
reason(impl Into<String>)/set_reason(Option<String>):The reason for creating the filter.
- On success, responds with
CreateFilterOutputwith field(s):arn(Option<String>):The Amazon Resource Number (ARN) of the successfully created filter.
- On failure, responds with
SdkError<CreateFilterError>
source§impl Client
impl Client
sourcepub fn create_findings_report(&self) -> CreateFindingsReportFluentBuilder
pub fn create_findings_report(&self) -> CreateFindingsReportFluentBuilder
Constructs a fluent builder for the CreateFindingsReport operation.
- The fluent builder is configurable:
filter_criteria(FilterCriteria)/set_filter_criteria(Option<FilterCriteria>):The filter criteria to apply to the results of the finding report.
report_format(ReportFormat)/set_report_format(Option<ReportFormat>):The format to generate the report in.
s3_destination(Destination)/set_s3_destination(Option<Destination>):The Amazon S3 export destination for the report.
- On success, responds with
CreateFindingsReportOutputwith field(s):report_id(Option<String>):The ID of the report.
- On failure, responds with
SdkError<CreateFindingsReportError>
source§impl Client
impl Client
sourcepub fn create_sbom_export(&self) -> CreateSbomExportFluentBuilder
pub fn create_sbom_export(&self) -> CreateSbomExportFluentBuilder
Constructs a fluent builder for the CreateSbomExport operation.
- The fluent builder is configurable:
resource_filter_criteria(ResourceFilterCriteria)/set_resource_filter_criteria(Option<ResourceFilterCriteria>):The resource filter criteria for the software bill of materials (SBOM) report.
report_format(SbomReportFormat)/set_report_format(Option<SbomReportFormat>):The output format for the software bill of materials (SBOM) report.
s3_destination(Destination)/set_s3_destination(Option<Destination>):Contains details of the Amazon S3 bucket and KMS key used to export findings.
- On success, responds with
CreateSbomExportOutputwith field(s):report_id(Option<String>):The report ID for the software bill of materials (SBOM) report.
- On failure, responds with
SdkError<CreateSbomExportError>
source§impl Client
impl Client
sourcepub fn delete_filter(&self) -> DeleteFilterFluentBuilder
pub fn delete_filter(&self) -> DeleteFilterFluentBuilder
Constructs a fluent builder for the DeleteFilter operation.
- The fluent builder is configurable:
arn(impl Into<String>)/set_arn(Option<String>):The Amazon Resource Number (ARN) of the filter to be deleted.
- On success, responds with
DeleteFilterOutputwith field(s):arn(Option<String>):The Amazon Resource Number (ARN) of the filter that has been deleted.
- On failure, responds with
SdkError<DeleteFilterError>
source§impl Client
impl Client
sourcepub fn describe_organization_configuration(
&self
) -> DescribeOrganizationConfigurationFluentBuilder
pub fn describe_organization_configuration( &self ) -> DescribeOrganizationConfigurationFluentBuilder
Constructs a fluent builder for the DescribeOrganizationConfiguration operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
DescribeOrganizationConfigurationOutputwith field(s):auto_enable(Option<AutoEnable>):The scan types are automatically enabled for new members of your organization.
max_account_limit_reached(Option<bool>):Represents whether your organization has reached the maximum Amazon Web Services account limit for Amazon Inspector.
- On failure, responds with
SdkError<DescribeOrganizationConfigurationError>
source§impl Client
impl Client
sourcepub fn disable(&self) -> DisableFluentBuilder
pub fn disable(&self) -> DisableFluentBuilder
Constructs a fluent builder for the Disable operation.
- The fluent builder is configurable:
account_ids(impl Into<String>)/set_account_ids(Option<Vec<String>>):An array of account IDs you want to disable Amazon Inspector scans for.
resource_types(ResourceScanType)/set_resource_types(Option<Vec<ResourceScanType>>):The resource scan types you want to disable.
- On success, responds with
DisableOutputwith field(s):accounts(Option<Vec<Account>>):Information on the accounts that have had Amazon Inspector scans successfully disabled. Details are provided for each account.
failed_accounts(Option<Vec<FailedAccount>>):Information on any accounts for which Amazon Inspector scans could not be disabled. Details are provided for each account.
- On failure, responds with
SdkError<DisableError>
source§impl Client
impl Client
sourcepub fn disable_delegated_admin_account(
&self
) -> DisableDelegatedAdminAccountFluentBuilder
pub fn disable_delegated_admin_account( &self ) -> DisableDelegatedAdminAccountFluentBuilder
Constructs a fluent builder for the DisableDelegatedAdminAccount operation.
- The fluent builder is configurable:
delegated_admin_account_id(impl Into<String>)/set_delegated_admin_account_id(Option<String>):The Amazon Web Services account ID of the current Amazon Inspector delegated administrator.
- On success, responds with
DisableDelegatedAdminAccountOutputwith field(s):delegated_admin_account_id(Option<String>):The Amazon Web Services account ID of the successfully disabled delegated administrator.
- On failure, responds with
SdkError<DisableDelegatedAdminAccountError>
source§impl Client
impl Client
sourcepub fn disassociate_member(&self) -> DisassociateMemberFluentBuilder
pub fn disassociate_member(&self) -> DisassociateMemberFluentBuilder
Constructs a fluent builder for the DisassociateMember operation.
- The fluent builder is configurable:
account_id(impl Into<String>)/set_account_id(Option<String>):The Amazon Web Services account ID of the member account to disassociate.
- On success, responds with
DisassociateMemberOutputwith field(s):account_id(Option<String>):The Amazon Web Services account ID of the successfully disassociated member.
- On failure, responds with
SdkError<DisassociateMemberError>
source§impl Client
impl Client
sourcepub fn enable(&self) -> EnableFluentBuilder
pub fn enable(&self) -> EnableFluentBuilder
Constructs a fluent builder for the Enable operation.
- The fluent builder is configurable:
account_ids(impl Into<String>)/set_account_ids(Option<Vec<String>>):A list of account IDs you want to enable Amazon Inspector scans for.
resource_types(ResourceScanType)/set_resource_types(Option<Vec<ResourceScanType>>):The resource scan types you want to enable.
client_token(impl Into<String>)/set_client_token(Option<String>):The idempotency token for the request.
- On success, responds with
EnableOutputwith field(s):accounts(Option<Vec<Account>>):Information on the accounts that have had Amazon Inspector scans successfully enabled. Details are provided for each account.
failed_accounts(Option<Vec<FailedAccount>>):Information on any accounts for which Amazon Inspector scans could not be enabled. Details are provided for each account.
- On failure, responds with
SdkError<EnableError>
source§impl Client
impl Client
sourcepub fn enable_delegated_admin_account(
&self
) -> EnableDelegatedAdminAccountFluentBuilder
pub fn enable_delegated_admin_account( &self ) -> EnableDelegatedAdminAccountFluentBuilder
Constructs a fluent builder for the EnableDelegatedAdminAccount operation.
- The fluent builder is configurable:
delegated_admin_account_id(impl Into<String>)/set_delegated_admin_account_id(Option<String>):The Amazon Web Services account ID of the Amazon Inspector delegated administrator.
client_token(impl Into<String>)/set_client_token(Option<String>):The idempotency token for the request.
- On success, responds with
EnableDelegatedAdminAccountOutputwith field(s):delegated_admin_account_id(Option<String>):The Amazon Web Services account ID of the successfully Amazon Inspector delegated administrator.
- On failure, responds with
SdkError<EnableDelegatedAdminAccountError>
source§impl Client
impl Client
sourcepub fn get_configuration(&self) -> GetConfigurationFluentBuilder
pub fn get_configuration(&self) -> GetConfigurationFluentBuilder
Constructs a fluent builder for the GetConfiguration operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
GetConfigurationOutputwith field(s):ecr_configuration(Option<EcrConfigurationState>):Specifies how the ECR automated re-scan duration is currently configured for your environment.
- On failure, responds with
SdkError<GetConfigurationError>
source§impl Client
impl Client
sourcepub fn get_delegated_admin_account(
&self
) -> GetDelegatedAdminAccountFluentBuilder
pub fn get_delegated_admin_account( &self ) -> GetDelegatedAdminAccountFluentBuilder
Constructs a fluent builder for the GetDelegatedAdminAccount operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
GetDelegatedAdminAccountOutputwith field(s):delegated_admin(Option<DelegatedAdmin>):The Amazon Web Services account ID of the Amazon Inspector delegated administrator.
- On failure, responds with
SdkError<GetDelegatedAdminAccountError>
source§impl Client
impl Client
sourcepub fn get_ec2_deep_inspection_configuration(
&self
) -> GetEc2DeepInspectionConfigurationFluentBuilder
pub fn get_ec2_deep_inspection_configuration( &self ) -> GetEc2DeepInspectionConfigurationFluentBuilder
Constructs a fluent builder for the GetEc2DeepInspectionConfiguration operation.
- The fluent builder takes no input, just
sendit. - On success, responds with
GetEc2DeepInspectionConfigurationOutputwith field(s):package_paths(Option<Vec<String>>):The Amazon Inspector deep inspection custom paths for your account.
org_package_paths(Option<Vec<String>>):The Amazon Inspector deep inspection custom paths for your organization.
status(Option<Ec2DeepInspectionStatus>):The activation status of Amazon Inspector deep inspection in your account.
error_message(Option<String>):An error message explaining why Amazon Inspector deep inspection configurations could not be retrieved for your account.
- On failure, responds with
SdkError<GetEc2DeepInspectionConfigurationError>
source§impl Client
impl Client
sourcepub fn get_encryption_key(&self) -> GetEncryptionKeyFluentBuilder
pub fn get_encryption_key(&self) -> GetEncryptionKeyFluentBuilder
Constructs a fluent builder for the GetEncryptionKey operation.
- The fluent builder is configurable:
scan_type(ScanType)/set_scan_type(Option<ScanType>):The scan type the key encrypts.
resource_type(ResourceType)/set_resource_type(Option<ResourceType>):The resource type the key encrypts.
- On success, responds with
GetEncryptionKeyOutputwith field(s):kms_key_id(Option<String>):A kms key ID.
- On failure, responds with
SdkError<GetEncryptionKeyError>
source§impl Client
impl Client
sourcepub fn get_findings_report_status(&self) -> GetFindingsReportStatusFluentBuilder
pub fn get_findings_report_status(&self) -> GetFindingsReportStatusFluentBuilder
Constructs a fluent builder for the GetFindingsReportStatus operation.
- The fluent builder is configurable:
report_id(impl Into<String>)/set_report_id(Option<String>):The ID of the report to retrieve the status of.
- On success, responds with
GetFindingsReportStatusOutputwith field(s):report_id(Option<String>):The ID of the report.
status(Option<ExternalReportStatus>):The status of the report.
error_code(Option<ReportingErrorCode>):The error code of the report.
error_message(Option<String>):The error message of the report.
destination(Option<Destination>):The destination of the report.
filter_criteria(Option<FilterCriteria>):The filter criteria associated with the report.
- On failure, responds with
SdkError<GetFindingsReportStatusError>
source§impl Client
impl Client
sourcepub fn get_member(&self) -> GetMemberFluentBuilder
pub fn get_member(&self) -> GetMemberFluentBuilder
Constructs a fluent builder for the GetMember operation.
- The fluent builder is configurable:
account_id(impl Into<String>)/set_account_id(Option<String>):The Amazon Web Services account ID of the member account to retrieve information on.
- On success, responds with
GetMemberOutputwith field(s):member(Option<Member>):Details of the retrieved member account.
- On failure, responds with
SdkError<GetMemberError>
source§impl Client
impl Client
sourcepub fn get_sbom_export(&self) -> GetSbomExportFluentBuilder
pub fn get_sbom_export(&self) -> GetSbomExportFluentBuilder
Constructs a fluent builder for the GetSbomExport operation.
- The fluent builder is configurable:
report_id(impl Into<String>)/set_report_id(Option<String>):The report ID of the SBOM export to get details for.
- On success, responds with
GetSbomExportOutputwith field(s):report_id(Option<String>):The report ID of the software bill of materials (SBOM) report.
format(Option<SbomReportFormat>):The format of the software bill of materials (SBOM) report.
status(Option<ExternalReportStatus>):The status of the software bill of materials (SBOM) report.
error_code(Option<ReportingErrorCode>):An error code.
error_message(Option<String>):An error message.
s3_destination(Option<Destination>):Contains details of the Amazon S3 bucket and KMS key used to export findings.
filter_criteria(Option<ResourceFilterCriteria>):Contains details about the resource filter criteria used for the software bill of materials (SBOM) report.
- On failure, responds with
SdkError<GetSbomExportError>
source§impl Client
impl Client
sourcepub fn list_account_permissions(&self) -> ListAccountPermissionsFluentBuilder
pub fn list_account_permissions(&self) -> ListAccountPermissionsFluentBuilder
Constructs a fluent builder for the ListAccountPermissions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
service(Service)/set_service(Option<Service>):The service scan type to check permissions for.
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return in the response.
next_token(impl Into<String>)/set_next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.
- On success, responds with
ListAccountPermissionsOutputwith field(s):permissions(Option<Vec<Permission>>):Contains details on the permissions an account has to configure Amazon Inspector.
next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.
- On failure, responds with
SdkError<ListAccountPermissionsError>
source§impl Client
impl Client
sourcepub fn list_coverage(&self) -> ListCoverageFluentBuilder
pub fn list_coverage(&self) -> ListCoverageFluentBuilder
Constructs a fluent builder for the ListCoverage operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return in the response.
next_token(impl Into<String>)/set_next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.filter_criteria(CoverageFilterCriteria)/set_filter_criteria(Option<CoverageFilterCriteria>):An object that contains details on the filters to apply to the coverage data for your environment.
- On success, responds with
ListCoverageOutputwith field(s):next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.covered_resources(Option<Vec<CoveredResource>>):An object that contains details on the covered resources in your environment.
- On failure, responds with
SdkError<ListCoverageError>
source§impl Client
impl Client
sourcepub fn list_coverage_statistics(&self) -> ListCoverageStatisticsFluentBuilder
pub fn list_coverage_statistics(&self) -> ListCoverageStatisticsFluentBuilder
Constructs a fluent builder for the ListCoverageStatistics operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
filter_criteria(CoverageFilterCriteria)/set_filter_criteria(Option<CoverageFilterCriteria>):An object that contains details on the filters to apply to the coverage data for your environment.
group_by(GroupKey)/set_group_by(Option<GroupKey>):The value to group the results by.
next_token(impl Into<String>)/set_next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.
- On success, responds with
ListCoverageStatisticsOutputwith field(s):counts_by_group(Option<Vec<Counts>>):An array with the number for each group.
total_counts(Option<i64>):The total number for all groups.
next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.
- On failure, responds with
SdkError<ListCoverageStatisticsError>
source§impl Client
impl Client
sourcepub fn list_delegated_admin_accounts(
&self
) -> ListDelegatedAdminAccountsFluentBuilder
pub fn list_delegated_admin_accounts( &self ) -> ListDelegatedAdminAccountsFluentBuilder
Constructs a fluent builder for the ListDelegatedAdminAccounts operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return in the response.
next_token(impl Into<String>)/set_next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.
- On success, responds with
ListDelegatedAdminAccountsOutputwith field(s):delegated_admin_accounts(Option<Vec<DelegatedAdminAccount>>):Details of the Amazon Inspector delegated administrator of your organization.
next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.
- On failure, responds with
SdkError<ListDelegatedAdminAccountsError>
source§impl Client
impl Client
sourcepub fn list_filters(&self) -> ListFiltersFluentBuilder
pub fn list_filters(&self) -> ListFiltersFluentBuilder
Constructs a fluent builder for the ListFilters operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
arns(impl Into<String>)/set_arns(Option<Vec<String>>):The Amazon resource number (ARN) of the filter.
action(FilterAction)/set_action(Option<FilterAction>):The action the filter applies to matched findings.
next_token(impl Into<String>)/set_next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return in the response.
- On success, responds with
ListFiltersOutputwith field(s):filters(Option<Vec<Filter>>):Contains details on the filters associated with your account.
next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.
- On failure, responds with
SdkError<ListFiltersError>
source§impl Client
impl Client
sourcepub fn list_finding_aggregations(&self) -> ListFindingAggregationsFluentBuilder
pub fn list_finding_aggregations(&self) -> ListFindingAggregationsFluentBuilder
Constructs a fluent builder for the ListFindingAggregations operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
aggregation_type(AggregationType)/set_aggregation_type(Option<AggregationType>):The type of the aggregation request.
next_token(impl Into<String>)/set_next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return in the response.
account_ids(StringFilter)/set_account_ids(Option<Vec<StringFilter>>):The Amazon Web Services account IDs to retrieve finding aggregation data for.
aggregation_request(AggregationRequest)/set_aggregation_request(Option<AggregationRequest>):Details of the aggregation request that is used to filter your aggregation results.
- On success, responds with
ListFindingAggregationsOutputwith field(s):aggregation_type(Option<AggregationType>):The type of aggregation to perform.
responses(Option<Vec<AggregationResponse>>):Objects that contain the results of an aggregation operation.
next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.
- On failure, responds with
SdkError<ListFindingAggregationsError>
source§impl Client
impl Client
sourcepub fn list_findings(&self) -> ListFindingsFluentBuilder
pub fn list_findings(&self) -> ListFindingsFluentBuilder
Constructs a fluent builder for the ListFindings operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return in the response.
next_token(impl Into<String>)/set_next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.filter_criteria(FilterCriteria)/set_filter_criteria(Option<FilterCriteria>):Details on the filters to apply to your finding results.
sort_criteria(SortCriteria)/set_sort_criteria(Option<SortCriteria>):Details on the sort criteria to apply to your finding results.
- On success, responds with
ListFindingsOutputwith field(s):next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.findings(Option<Vec<Finding>>):Contains details on the findings in your environment.
- On failure, responds with
SdkError<ListFindingsError>
source§impl Client
impl Client
sourcepub fn list_members(&self) -> ListMembersFluentBuilder
pub fn list_members(&self) -> ListMembersFluentBuilder
Constructs a fluent builder for the ListMembers operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
only_associated(bool)/set_only_associated(Option<bool>):Specifies whether to list only currently associated members if
Trueor to list all members within the organization ifFalse.max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return in the response.
next_token(impl Into<String>)/set_next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.
- On success, responds with
ListMembersOutputwith field(s):members(Option<Vec<Member>>):An object that contains details for each member account.
next_token(Option<String>):The pagination parameter to be used on the next list operation to retrieve more items.
- On failure, responds with
SdkError<ListMembersError>
source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The Amazon resource number (ARN) of the resource to list tags of.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags(Option<HashMap<String, String>>):The tags associated with the resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn list_usage_totals(&self) -> ListUsageTotalsFluentBuilder
pub fn list_usage_totals(&self) -> ListUsageTotalsFluentBuilder
Constructs a fluent builder for the ListUsageTotals operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return in the response.
next_token(impl Into<String>)/set_next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.account_ids(impl Into<String>)/set_account_ids(Option<Vec<String>>):The Amazon Web Services account IDs to retrieve usage totals for.
- On success, responds with
ListUsageTotalsOutputwith field(s):next_token(Option<String>):The pagination parameter to be used on the next list operation to retrieve more items.
totals(Option<Vec<UsageTotal>>):An object with details on the total usage for the requested account.
- On failure, responds with
SdkError<ListUsageTotalsError>
source§impl Client
impl Client
sourcepub fn reset_encryption_key(&self) -> ResetEncryptionKeyFluentBuilder
pub fn reset_encryption_key(&self) -> ResetEncryptionKeyFluentBuilder
Constructs a fluent builder for the ResetEncryptionKey operation.
- The fluent builder is configurable:
scan_type(ScanType)/set_scan_type(Option<ScanType>):The scan type the key encrypts.
resource_type(ResourceType)/set_resource_type(Option<ResourceType>):The resource type the key encrypts.
- On success, responds with
ResetEncryptionKeyOutput - On failure, responds with
SdkError<ResetEncryptionKeyError>
source§impl Client
impl Client
sourcepub fn search_vulnerabilities(&self) -> SearchVulnerabilitiesFluentBuilder
pub fn search_vulnerabilities(&self) -> SearchVulnerabilitiesFluentBuilder
Constructs a fluent builder for the SearchVulnerabilities operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
filter_criteria(SearchVulnerabilitiesFilterCriteria)/set_filter_criteria(Option<SearchVulnerabilitiesFilterCriteria>):The criteria used to filter the results of a vulnerability search.
next_token(impl Into<String>)/set_next_token(Option<String>):A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextTokenvalue returned from the previous request to continue listing results after the first page.
- On success, responds with
SearchVulnerabilitiesOutputwith field(s):vulnerabilities(Option<Vec<Vulnerability>>):Details about the listed vulnerability.
next_token(Option<String>):The pagination parameter to be used on the next list operation to retrieve more items.
- On failure, responds with
SdkError<SearchVulnerabilitiesError>
source§impl Client
impl Client
sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The Amazon Resource Name (ARN) of the resource to apply a tag to.
tags(impl Into<String>, impl Into<String>)/set_tags(Option<HashMap<String, String>>):The tags to be added to a resource.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
source§impl Client
impl Client
sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The Amazon Resource Name (ARN) for the resource to remove tags from.
tag_keys(impl Into<String>)/set_tag_keys(Option<Vec<String>>):The tag keys to remove from the resource.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_configuration(&self) -> UpdateConfigurationFluentBuilder
pub fn update_configuration(&self) -> UpdateConfigurationFluentBuilder
Constructs a fluent builder for the UpdateConfiguration operation.
- The fluent builder is configurable:
ecr_configuration(EcrConfiguration)/set_ecr_configuration(Option<EcrConfiguration>):Specifies how the ECR automated re-scan will be updated for your environment.
- On success, responds with
UpdateConfigurationOutput - On failure, responds with
SdkError<UpdateConfigurationError>
source§impl Client
impl Client
sourcepub fn update_ec2_deep_inspection_configuration(
&self
) -> UpdateEc2DeepInspectionConfigurationFluentBuilder
pub fn update_ec2_deep_inspection_configuration( &self ) -> UpdateEc2DeepInspectionConfigurationFluentBuilder
Constructs a fluent builder for the UpdateEc2DeepInspectionConfiguration operation.
- The fluent builder is configurable:
activate_deep_inspection(bool)/set_activate_deep_inspection(Option<bool>):Specify
TRUEto activate Amazon Inspector deep inspection in your account, orFALSEto deactivate. Member accounts in an organization cannot deactivate deep inspection, instead the delegated administrator for the organization can deactivate a member account using BatchUpdateMemberEc2DeepInspectionStatus.package_paths(impl Into<String>)/set_package_paths(Option<Vec<String>>):The Amazon Inspector deep inspection custom paths you are adding for your account.
- On success, responds with
UpdateEc2DeepInspectionConfigurationOutputwith field(s):package_paths(Option<Vec<String>>):The current Amazon Inspector deep inspection custom paths for your account.
org_package_paths(Option<Vec<String>>):The current Amazon Inspector deep inspection custom paths for the organization.
status(Option<Ec2DeepInspectionStatus>):The status of Amazon Inspector deep inspection in your account.
error_message(Option<String>):An error message explaining why new Amazon Inspector deep inspection custom paths could not be added.
- On failure, responds with
SdkError<UpdateEc2DeepInspectionConfigurationError>
source§impl Client
impl Client
sourcepub fn update_encryption_key(&self) -> UpdateEncryptionKeyFluentBuilder
pub fn update_encryption_key(&self) -> UpdateEncryptionKeyFluentBuilder
Constructs a fluent builder for the UpdateEncryptionKey operation.
- The fluent builder is configurable:
kms_key_id(impl Into<String>)/set_kms_key_id(Option<String>):A KMS key ID for the encryption key.
scan_type(ScanType)/set_scan_type(Option<ScanType>):The scan type for the encryption key.
resource_type(ResourceType)/set_resource_type(Option<ResourceType>):The resource type for the encryption key.
- On success, responds with
UpdateEncryptionKeyOutput - On failure, responds with
SdkError<UpdateEncryptionKeyError>
source§impl Client
impl Client
sourcepub fn update_filter(&self) -> UpdateFilterFluentBuilder
pub fn update_filter(&self) -> UpdateFilterFluentBuilder
Constructs a fluent builder for the UpdateFilter operation.
- The fluent builder is configurable:
action(FilterAction)/set_action(Option<FilterAction>):Specifies the action that is to be applied to the findings that match the filter.
description(impl Into<String>)/set_description(Option<String>):A description of the filter.
filter_criteria(FilterCriteria)/set_filter_criteria(Option<FilterCriteria>):Defines the criteria to be update in the filter.
name(impl Into<String>)/set_name(Option<String>):The name of the filter.
filter_arn(impl Into<String>)/set_filter_arn(Option<String>):The Amazon Resource Number (ARN) of the filter to update.
reason(impl Into<String>)/set_reason(Option<String>):The reason the filter was updated.
- On success, responds with
UpdateFilterOutputwith field(s):arn(Option<String>):The Amazon Resource Number (ARN) of the successfully updated filter.
- On failure, responds with
SdkError<UpdateFilterError>
source§impl Client
impl Client
sourcepub fn update_org_ec2_deep_inspection_configuration(
&self
) -> UpdateOrgEc2DeepInspectionConfigurationFluentBuilder
pub fn update_org_ec2_deep_inspection_configuration( &self ) -> UpdateOrgEc2DeepInspectionConfigurationFluentBuilder
Constructs a fluent builder for the UpdateOrgEc2DeepInspectionConfiguration operation.
- The fluent builder is configurable:
org_package_paths(impl Into<String>)/set_org_package_paths(Option<Vec<String>>):The Amazon Inspector deep inspection custom paths you are adding for your organization.
- On success, responds with
UpdateOrgEc2DeepInspectionConfigurationOutput - On failure, responds with
SdkError<UpdateOrgEc2DeepInspectionConfigurationError>
source§impl Client
impl Client
sourcepub fn update_organization_configuration(
&self
) -> UpdateOrganizationConfigurationFluentBuilder
pub fn update_organization_configuration( &self ) -> UpdateOrganizationConfigurationFluentBuilder
Constructs a fluent builder for the UpdateOrganizationConfiguration operation.
- The fluent builder is configurable:
auto_enable(AutoEnable)/set_auto_enable(Option<AutoEnable>):Defines which scan types are enabled automatically for new members of your Amazon Inspector organization.
- On success, responds with
UpdateOrganizationConfigurationOutputwith field(s):auto_enable(Option<AutoEnable>):The updated status of scan types automatically enabled for new members of your Amazon Inspector organization.
- On failure, responds with
SdkError<UpdateOrganizationConfigurationError>
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
Panics
- This method will panic if the
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it.