pub struct AccessAnalyzerClient { /* private fields */ }
Expand description
A client for the Access Analyzer API.
Implementations
sourceimpl AccessAnalyzerClient
impl AccessAnalyzerClient
sourcepub fn new(region: Region) -> AccessAnalyzerClient
pub fn new(region: Region) -> AccessAnalyzerClient
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
) -> AccessAnalyzerClient where
P: ProvideAwsCredentials + Send + Sync + 'static,
D: DispatchSignedRequest + Send + Sync + 'static,
pub fn new_with_client(client: Client, region: Region) -> AccessAnalyzerClient
Trait Implementations
sourceimpl AccessAnalyzer for AccessAnalyzerClient
impl AccessAnalyzer for AccessAnalyzerClient
sourcefn apply_archive_rule<'life0, 'async_trait>(
&'life0 self,
input: ApplyArchiveRuleRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<ApplyArchiveRuleError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn apply_archive_rule<'life0, 'async_trait>(
&'life0 self,
input: ApplyArchiveRuleRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<ApplyArchiveRuleError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
sourcefn cancel_policy_generation<'life0, 'async_trait>(
&'life0 self,
input: CancelPolicyGenerationRequest
) -> Pin<Box<dyn Future<Output = Result<CancelPolicyGenerationResponse, RusotoError<CancelPolicyGenerationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn cancel_policy_generation<'life0, 'async_trait>(
&'life0 self,
input: CancelPolicyGenerationRequest
) -> Pin<Box<dyn Future<Output = Result<CancelPolicyGenerationResponse, RusotoError<CancelPolicyGenerationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Cancels the requested policy generation.
sourcefn create_access_preview<'life0, 'async_trait>(
&'life0 self,
input: CreateAccessPreviewRequest
) -> Pin<Box<dyn Future<Output = Result<CreateAccessPreviewResponse, RusotoError<CreateAccessPreviewError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn create_access_preview<'life0, 'async_trait>(
&'life0 self,
input: CreateAccessPreviewRequest
) -> Pin<Box<dyn Future<Output = Result<CreateAccessPreviewResponse, RusotoError<CreateAccessPreviewError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates an access preview that allows you to preview Access Analyzer findings for your resource before deploying resource permissions.
sourcefn create_analyzer<'life0, 'async_trait>(
&'life0 self,
input: CreateAnalyzerRequest
) -> Pin<Box<dyn Future<Output = Result<CreateAnalyzerResponse, RusotoError<CreateAnalyzerError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn create_analyzer<'life0, 'async_trait>(
&'life0 self,
input: CreateAnalyzerRequest
) -> Pin<Box<dyn Future<Output = Result<CreateAnalyzerResponse, RusotoError<CreateAnalyzerError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates an analyzer for your account.
sourcefn create_archive_rule<'life0, 'async_trait>(
&'life0 self,
input: CreateArchiveRuleRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<CreateArchiveRuleError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn create_archive_rule<'life0, 'async_trait>(
&'life0 self,
input: CreateArchiveRuleRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<CreateArchiveRuleError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Creates an archive rule for the specified analyzer. Archive rules automatically archive new findings that meet the criteria you define when you create the rule.
To learn about filter keys that you can use to create an archive rule, see Access Analyzer filter keys in the IAM User Guide.
sourcefn delete_analyzer<'life0, 'async_trait>(
&'life0 self,
input: DeleteAnalyzerRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteAnalyzerError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_analyzer<'life0, 'async_trait>(
&'life0 self,
input: DeleteAnalyzerRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteAnalyzerError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes the specified analyzer. When you delete an analyzer, Access Analyzer is disabled for the account or organization in the current or specific Region. All findings that were generated by the analyzer are deleted. You cannot undo this action.
sourcefn delete_archive_rule<'life0, 'async_trait>(
&'life0 self,
input: DeleteArchiveRuleRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteArchiveRuleError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_archive_rule<'life0, 'async_trait>(
&'life0 self,
input: DeleteArchiveRuleRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteArchiveRuleError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes the specified archive rule.
sourcefn get_access_preview<'life0, 'async_trait>(
&'life0 self,
input: GetAccessPreviewRequest
) -> Pin<Box<dyn Future<Output = Result<GetAccessPreviewResponse, RusotoError<GetAccessPreviewError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_access_preview<'life0, 'async_trait>(
&'life0 self,
input: GetAccessPreviewRequest
) -> Pin<Box<dyn Future<Output = Result<GetAccessPreviewResponse, RusotoError<GetAccessPreviewError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves information about an access preview for the specified analyzer.
sourcefn get_analyzed_resource<'life0, 'async_trait>(
&'life0 self,
input: GetAnalyzedResourceRequest
) -> Pin<Box<dyn Future<Output = Result<GetAnalyzedResourceResponse, RusotoError<GetAnalyzedResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_analyzed_resource<'life0, 'async_trait>(
&'life0 self,
input: GetAnalyzedResourceRequest
) -> Pin<Box<dyn Future<Output = Result<GetAnalyzedResourceResponse, RusotoError<GetAnalyzedResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves information about a resource that was analyzed.
sourcefn get_analyzer<'life0, 'async_trait>(
&'life0 self,
input: GetAnalyzerRequest
) -> Pin<Box<dyn Future<Output = Result<GetAnalyzerResponse, RusotoError<GetAnalyzerError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_analyzer<'life0, 'async_trait>(
&'life0 self,
input: GetAnalyzerRequest
) -> Pin<Box<dyn Future<Output = Result<GetAnalyzerResponse, RusotoError<GetAnalyzerError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves information about the specified analyzer.
sourcefn get_archive_rule<'life0, 'async_trait>(
&'life0 self,
input: GetArchiveRuleRequest
) -> Pin<Box<dyn Future<Output = Result<GetArchiveRuleResponse, RusotoError<GetArchiveRuleError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_archive_rule<'life0, 'async_trait>(
&'life0 self,
input: GetArchiveRuleRequest
) -> Pin<Box<dyn Future<Output = Result<GetArchiveRuleResponse, RusotoError<GetArchiveRuleError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves information about an archive rule.
To learn about filter keys that you can use to create an archive rule, see Access Analyzer filter keys in the IAM User Guide.
sourcefn get_finding<'life0, 'async_trait>(
&'life0 self,
input: GetFindingRequest
) -> Pin<Box<dyn Future<Output = Result<GetFindingResponse, RusotoError<GetFindingError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_finding<'life0, 'async_trait>(
&'life0 self,
input: GetFindingRequest
) -> Pin<Box<dyn Future<Output = Result<GetFindingResponse, RusotoError<GetFindingError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves information about the specified finding.
sourcefn get_generated_policy<'life0, 'async_trait>(
&'life0 self,
input: GetGeneratedPolicyRequest
) -> Pin<Box<dyn Future<Output = Result<GetGeneratedPolicyResponse, RusotoError<GetGeneratedPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_generated_policy<'life0, 'async_trait>(
&'life0 self,
input: GetGeneratedPolicyRequest
) -> Pin<Box<dyn Future<Output = Result<GetGeneratedPolicyResponse, RusotoError<GetGeneratedPolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves the policy that was generated using StartPolicyGeneration
.
sourcefn list_access_preview_findings<'life0, 'async_trait>(
&'life0 self,
input: ListAccessPreviewFindingsRequest
) -> Pin<Box<dyn Future<Output = Result<ListAccessPreviewFindingsResponse, RusotoError<ListAccessPreviewFindingsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_access_preview_findings<'life0, 'async_trait>(
&'life0 self,
input: ListAccessPreviewFindingsRequest
) -> Pin<Box<dyn Future<Output = Result<ListAccessPreviewFindingsResponse, RusotoError<ListAccessPreviewFindingsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves a list of access preview findings generated by the specified access preview.
sourcefn list_access_previews<'life0, 'async_trait>(
&'life0 self,
input: ListAccessPreviewsRequest
) -> Pin<Box<dyn Future<Output = Result<ListAccessPreviewsResponse, RusotoError<ListAccessPreviewsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_access_previews<'life0, 'async_trait>(
&'life0 self,
input: ListAccessPreviewsRequest
) -> Pin<Box<dyn Future<Output = Result<ListAccessPreviewsResponse, RusotoError<ListAccessPreviewsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves a list of access previews for the specified analyzer.
sourcefn list_analyzed_resources<'life0, 'async_trait>(
&'life0 self,
input: ListAnalyzedResourcesRequest
) -> Pin<Box<dyn Future<Output = Result<ListAnalyzedResourcesResponse, RusotoError<ListAnalyzedResourcesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_analyzed_resources<'life0, 'async_trait>(
&'life0 self,
input: ListAnalyzedResourcesRequest
) -> Pin<Box<dyn Future<Output = Result<ListAnalyzedResourcesResponse, RusotoError<ListAnalyzedResourcesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer..
sourcefn list_analyzers<'life0, 'async_trait>(
&'life0 self,
input: ListAnalyzersRequest
) -> Pin<Box<dyn Future<Output = Result<ListAnalyzersResponse, RusotoError<ListAnalyzersError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_analyzers<'life0, 'async_trait>(
&'life0 self,
input: ListAnalyzersRequest
) -> Pin<Box<dyn Future<Output = Result<ListAnalyzersResponse, RusotoError<ListAnalyzersError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves a list of analyzers.
sourcefn list_archive_rules<'life0, 'async_trait>(
&'life0 self,
input: ListArchiveRulesRequest
) -> Pin<Box<dyn Future<Output = Result<ListArchiveRulesResponse, RusotoError<ListArchiveRulesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_archive_rules<'life0, 'async_trait>(
&'life0 self,
input: ListArchiveRulesRequest
) -> Pin<Box<dyn Future<Output = Result<ListArchiveRulesResponse, RusotoError<ListArchiveRulesError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Retrieves a list of archive rules created for the specified analyzer.
sourcefn 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,
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,
Retrieves a list of findings generated by the specified analyzer.
To learn about filter keys that you can use to retrieve a list of findings, see Access Analyzer filter keys in the IAM User Guide.
sourcefn list_policy_generations<'life0, 'async_trait>(
&'life0 self,
input: ListPolicyGenerationsRequest
) -> Pin<Box<dyn Future<Output = Result<ListPolicyGenerationsResponse, RusotoError<ListPolicyGenerationsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_policy_generations<'life0, 'async_trait>(
&'life0 self,
input: ListPolicyGenerationsRequest
) -> Pin<Box<dyn Future<Output = Result<ListPolicyGenerationsResponse, RusotoError<ListPolicyGenerationsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Lists all of the policy generations requested in the last seven days.
Retrieves a list of tags applied to the specified resource.
sourcefn start_policy_generation<'life0, 'async_trait>(
&'life0 self,
input: StartPolicyGenerationRequest
) -> Pin<Box<dyn Future<Output = Result<StartPolicyGenerationResponse, RusotoError<StartPolicyGenerationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn start_policy_generation<'life0, 'async_trait>(
&'life0 self,
input: StartPolicyGenerationRequest
) -> Pin<Box<dyn Future<Output = Result<StartPolicyGenerationResponse, RusotoError<StartPolicyGenerationError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Starts the policy generation request.
sourcefn start_resource_scan<'life0, 'async_trait>(
&'life0 self,
input: StartResourceScanRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<StartResourceScanError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn start_resource_scan<'life0, 'async_trait>(
&'life0 self,
input: StartResourceScanRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<StartResourceScanError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Immediately starts a scan of the policies applied to the specified resource.
sourcefn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<TagResourceResponse, RusotoError<TagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn tag_resource<'life0, 'async_trait>(
&'life0 self,
input: TagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<TagResourceResponse, RusotoError<TagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Adds a tag to the specified resource.
sourcefn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<UntagResourceResponse, RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn untag_resource<'life0, 'async_trait>(
&'life0 self,
input: UntagResourceRequest
) -> Pin<Box<dyn Future<Output = Result<UntagResourceResponse, RusotoError<UntagResourceError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Removes a tag from the specified resource.
sourcefn update_archive_rule<'life0, 'async_trait>(
&'life0 self,
input: UpdateArchiveRuleRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UpdateArchiveRuleError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_archive_rule<'life0, 'async_trait>(
&'life0 self,
input: UpdateArchiveRuleRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UpdateArchiveRuleError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Updates the criteria and values for the specified archive rule.
sourcefn update_findings<'life0, 'async_trait>(
&'life0 self,
input: UpdateFindingsRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UpdateFindingsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_findings<'life0, 'async_trait>(
&'life0 self,
input: UpdateFindingsRequest
) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UpdateFindingsError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Updates the status for the specified findings.
sourcefn validate_policy<'life0, 'async_trait>(
&'life0 self,
input: ValidatePolicyRequest
) -> Pin<Box<dyn Future<Output = Result<ValidatePolicyResponse, RusotoError<ValidatePolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn validate_policy<'life0, 'async_trait>(
&'life0 self,
input: ValidatePolicyRequest
) -> Pin<Box<dyn Future<Output = Result<ValidatePolicyResponse, RusotoError<ValidatePolicyError>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Requests the validation of a policy and returns a list of findings. The findings help you identify issues and provide actionable recommendations to resolve the issue and enable you to author functional policies that meet security best practices.
sourceimpl Clone for AccessAnalyzerClient
impl Clone for AccessAnalyzerClient
sourcefn clone(&self) -> AccessAnalyzerClient
fn clone(&self) -> AccessAnalyzerClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for AccessAnalyzerClient
impl Send for AccessAnalyzerClient
impl Sync for AccessAnalyzerClient
impl Unpin for AccessAnalyzerClient
impl !UnwindSafe for AccessAnalyzerClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more