[][src]Struct rusoto_inspector::InspectorClient

pub struct InspectorClient { /* fields omitted */ }

A client for the Amazon Inspector API.

Methods

impl InspectorClient[src]

pub fn new(region: Region) -> InspectorClient[src]

Creates a client backed by the default tokio event loop.

The client will use the default credentials provider and tls client.

pub fn new_with<P, D>(
    request_dispatcher: D,
    credentials_provider: P,
    region: Region
) -> InspectorClient where
    P: ProvideAwsCredentials + Send + Sync + 'static,
    D: DispatchSignedRequest + Send + Sync + 'static, 
[src]

pub fn new_with_client(client: Client, region: Region) -> InspectorClient[src]

Trait Implementations

impl Clone for InspectorClient[src]

impl Inspector for InspectorClient[src]

fn add_attributes_to_findings<'life0, 'async_trait>(
    &'life0 self,
    input: AddAttributesToFindingsRequest
) -> Pin<Box<dyn Future<Output = Result<AddAttributesToFindingsResponse, RusotoError<AddAttributesToFindingsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Assigns attributes (key and value pairs) to the findings that are specified by the ARNs of the findings.

fn create_assessment_target<'life0, 'async_trait>(
    &'life0 self,
    input: CreateAssessmentTargetRequest
) -> Pin<Box<dyn Future<Output = Result<CreateAssessmentTargetResponse, RusotoError<CreateAssessmentTargetError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Creates a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments. You can create up to 50 assessment targets per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Amazon Inspector Assessment Targets.

fn create_assessment_template<'life0, 'async_trait>(
    &'life0 self,
    input: CreateAssessmentTemplateRequest
) -> Pin<Box<dyn Future<Output = Result<CreateAssessmentTemplateResponse, RusotoError<CreateAssessmentTemplateError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Creates an assessment template for the assessment target that is specified by the ARN of the assessment target. If the service-linked role isn’t already registered, this action also creates and registers a service-linked role to grant Amazon Inspector access to AWS Services needed to perform security assessments.

fn create_exclusions_preview<'life0, 'async_trait>(
    &'life0 self,
    input: CreateExclusionsPreviewRequest
) -> Pin<Box<dyn Future<Output = Result<CreateExclusionsPreviewResponse, RusotoError<CreateExclusionsPreviewError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Starts the generation of an exclusions preview for the specified assessment template. The exclusions preview lists the potential exclusions (ExclusionPreview) that Inspector can detect before it runs the assessment.

fn create_resource_group<'life0, 'async_trait>(
    &'life0 self,
    input: CreateResourceGroupRequest
) -> Pin<Box<dyn Future<Output = Result<CreateResourceGroupResponse, RusotoError<CreateResourceGroupError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target. The created resource group is then used to create an Amazon Inspector assessment target. For more information, see CreateAssessmentTarget.

fn delete_assessment_run<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteAssessmentRunRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteAssessmentRunError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes the assessment run that is specified by the ARN of the assessment run.

fn delete_assessment_target<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteAssessmentTargetRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteAssessmentTargetError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes the assessment target that is specified by the ARN of the assessment target.

fn delete_assessment_template<'life0, 'async_trait>(
    &'life0 self,
    input: DeleteAssessmentTemplateRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteAssessmentTemplateError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Deletes the assessment template that is specified by the ARN of the assessment template.

fn describe_assessment_runs<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeAssessmentRunsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeAssessmentRunsResponse, RusotoError<DescribeAssessmentRunsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Describes the assessment runs that are specified by the ARNs of the assessment runs.

fn describe_assessment_targets<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeAssessmentTargetsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeAssessmentTargetsResponse, RusotoError<DescribeAssessmentTargetsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Describes the assessment targets that are specified by the ARNs of the assessment targets.

fn describe_assessment_templates<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeAssessmentTemplatesRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeAssessmentTemplatesResponse, RusotoError<DescribeAssessmentTemplatesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Describes the assessment templates that are specified by the ARNs of the assessment templates.

fn describe_cross_account_access_role<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<DescribeCrossAccountAccessRoleResponse, RusotoError<DescribeCrossAccountAccessRoleError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Describes the IAM role that enables Amazon Inspector to access your AWS account.

fn describe_exclusions<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeExclusionsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeExclusionsResponse, RusotoError<DescribeExclusionsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Describes the exclusions that are specified by the exclusions' ARNs.

fn describe_findings<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeFindingsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeFindingsResponse, RusotoError<DescribeFindingsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Describes the findings that are specified by the ARNs of the findings.

fn describe_resource_groups<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeResourceGroupsRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeResourceGroupsResponse, RusotoError<DescribeResourceGroupsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Describes the resource groups that are specified by the ARNs of the resource groups.

fn describe_rules_packages<'life0, 'async_trait>(
    &'life0 self,
    input: DescribeRulesPackagesRequest
) -> Pin<Box<dyn Future<Output = Result<DescribeRulesPackagesResponse, RusotoError<DescribeRulesPackagesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Describes the rules packages that are specified by the ARNs of the rules packages.

fn get_assessment_report<'life0, 'async_trait>(
    &'life0 self,
    input: GetAssessmentReportRequest
) -> Pin<Box<dyn Future<Output = Result<GetAssessmentReportResponse, RusotoError<GetAssessmentReportError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.

fn get_exclusions_preview<'life0, 'async_trait>(
    &'life0 self,
    input: GetExclusionsPreviewRequest
) -> Pin<Box<dyn Future<Output = Result<GetExclusionsPreviewResponse, RusotoError<GetExclusionsPreviewError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token. You can obtain the preview token by running the CreateExclusionsPreview API.

fn get_telemetry_metadata<'life0, 'async_trait>(
    &'life0 self,
    input: GetTelemetryMetadataRequest
) -> Pin<Box<dyn Future<Output = Result<GetTelemetryMetadataResponse, RusotoError<GetTelemetryMetadataError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Information about the data that is collected for the specified assessment run.

fn list_assessment_run_agents<'life0, 'async_trait>(
    &'life0 self,
    input: ListAssessmentRunAgentsRequest
) -> Pin<Box<dyn Future<Output = Result<ListAssessmentRunAgentsResponse, RusotoError<ListAssessmentRunAgentsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Lists the agents of the assessment runs that are specified by the ARNs of the assessment runs.

fn list_assessment_runs<'life0, 'async_trait>(
    &'life0 self,
    input: ListAssessmentRunsRequest
) -> Pin<Box<dyn Future<Output = Result<ListAssessmentRunsResponse, RusotoError<ListAssessmentRunsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Lists the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates.

fn list_assessment_targets<'life0, 'async_trait>(
    &'life0 self,
    input: ListAssessmentTargetsRequest
) -> Pin<Box<dyn Future<Output = Result<ListAssessmentTargetsResponse, RusotoError<ListAssessmentTargetsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Lists the ARNs of the assessment targets within this AWS account. For more information about assessment targets, see Amazon Inspector Assessment Targets.

fn list_assessment_templates<'life0, 'async_trait>(
    &'life0 self,
    input: ListAssessmentTemplatesRequest
) -> Pin<Box<dyn Future<Output = Result<ListAssessmentTemplatesResponse, RusotoError<ListAssessmentTemplatesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Lists the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets.

fn list_event_subscriptions<'life0, 'async_trait>(
    &'life0 self,
    input: ListEventSubscriptionsRequest
) -> Pin<Box<dyn Future<Output = Result<ListEventSubscriptionsResponse, RusotoError<ListEventSubscriptionsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template. For more information, see SubscribeToEvent and UnsubscribeFromEvent.

fn list_exclusions<'life0, 'async_trait>(
    &'life0 self,
    input: ListExclusionsRequest
) -> Pin<Box<dyn Future<Output = Result<ListExclusionsResponse, RusotoError<ListExclusionsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

List exclusions that are generated by the assessment run.

fn list_findings<'life0, 'async_trait>(
    &'life0 self,
    input: ListFindingsRequest
) -> Pin<Box<dyn Future<Output = Result<ListFindingsResponse, RusotoError<ListFindingsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Lists findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs.

fn list_rules_packages<'life0, 'async_trait>(
    &'life0 self,
    input: ListRulesPackagesRequest
) -> Pin<Box<dyn Future<Output = Result<ListRulesPackagesResponse, RusotoError<ListRulesPackagesError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Lists all available Amazon Inspector rules packages.

fn list_tags_for_resource<'life0, 'async_trait>(
    &'life0 self,
    input: ListTagsForResourceRequest
) -> Pin<Box<dyn Future<Output = Result<ListTagsForResourceResponse, RusotoError<ListTagsForResourceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Lists all tags associated with an assessment template.

fn preview_agents<'life0, 'async_trait>(
    &'life0 self,
    input: PreviewAgentsRequest
) -> Pin<Box<dyn Future<Output = Result<PreviewAgentsResponse, RusotoError<PreviewAgentsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Previews the agents installed on the EC2 instances that are part of the specified assessment target.

fn register_cross_account_access_role<'life0, 'async_trait>(
    &'life0 self,
    input: RegisterCrossAccountAccessRoleRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<RegisterCrossAccountAccessRoleError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Registers the IAM role that grants Amazon Inspector access to AWS Services needed to perform security assessments.

fn remove_attributes_from_findings<'life0, 'async_trait>(
    &'life0 self,
    input: RemoveAttributesFromFindingsRequest
) -> Pin<Box<dyn Future<Output = Result<RemoveAttributesFromFindingsResponse, RusotoError<RemoveAttributesFromFindingsError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists.

fn set_tags_for_resource<'life0, 'async_trait>(
    &'life0 self,
    input: SetTagsForResourceRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<SetTagsForResourceError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Sets tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template.

fn start_assessment_run<'life0, 'async_trait>(
    &'life0 self,
    input: StartAssessmentRunRequest
) -> Pin<Box<dyn Future<Output = Result<StartAssessmentRunResponse, RusotoError<StartAssessmentRunError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Starts the assessment run specified by the ARN of the assessment template. For this API to function properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account.

fn stop_assessment_run<'life0, 'async_trait>(
    &'life0 self,
    input: StopAssessmentRunRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<StopAssessmentRunError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Stops the assessment run that is specified by the ARN of the assessment run.

fn subscribe_to_event<'life0, 'async_trait>(
    &'life0 self,
    input: SubscribeToEventRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<SubscribeToEventError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Enables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.

fn unsubscribe_from_event<'life0, 'async_trait>(
    &'life0 self,
    input: UnsubscribeFromEventRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UnsubscribeFromEventError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Disables the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic.

fn update_assessment_target<'life0, 'async_trait>(
    &'life0 self,
    input: UpdateAssessmentTargetRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UpdateAssessmentTargetError>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Updates the assessment target that is specified by the ARN of the assessment target.

If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.