Struct aws_sdk_accessanalyzer::Client
source · pub struct Client { /* private fields */ }
Expand description
Client for Access Analyzer
Client for invoking operations on Access Analyzer. Each operation on Access Analyzer 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_accessanalyzer::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_accessanalyzer::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 ApplyArchiveRule
operation has
a Client::apply_archive_rule
, 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.apply_archive_rule()
.analyzer_arn("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 apply_archive_rule(&self) -> ApplyArchiveRuleFluentBuilder
pub fn apply_archive_rule(&self) -> ApplyArchiveRuleFluentBuilder
Constructs a fluent builder for the ApplyArchiveRule
operation.
- The fluent builder is configurable:
analyzer_arn(impl ::std::convert::Into<String>)
/set_analyzer_arn(Option<String>)
:The Amazon resource name (ARN) of the analyzer.
rule_name(impl ::std::convert::Into<String>)
/set_rule_name(Option<String>)
:The name of the rule to apply.
client_token(impl ::std::convert::Into<String>)
/set_client_token(Option<String>)
:A client token.
- On success, responds with
ApplyArchiveRuleOutput
- On failure, responds with
SdkError<ApplyArchiveRuleError>
source§impl Client
impl Client
sourcepub fn cancel_policy_generation(&self) -> CancelPolicyGenerationFluentBuilder
pub fn cancel_policy_generation(&self) -> CancelPolicyGenerationFluentBuilder
Constructs a fluent builder for the CancelPolicyGeneration
operation.
- The fluent builder is configurable:
job_id(impl ::std::convert::Into<String>)
/set_job_id(Option<String>)
:The
JobId
that is returned by theStartPolicyGeneration
operation. TheJobId
can be used withGetGeneratedPolicy
to retrieve the generated policies or used withCancelPolicyGeneration
to cancel the policy generation request.
- On success, responds with
CancelPolicyGenerationOutput
- On failure, responds with
SdkError<CancelPolicyGenerationError>
source§impl Client
impl Client
sourcepub fn create_access_preview(&self) -> CreateAccessPreviewFluentBuilder
pub fn create_access_preview(&self) -> CreateAccessPreviewFluentBuilder
Constructs a fluent builder for the CreateAccessPreview
operation.
- The fluent builder is configurable:
analyzer_arn(impl ::std::convert::Into<String>)
/set_analyzer_arn(Option<String>)
:The ARN of the account analyzer used to generate the access preview. You can only create an access preview for analyzers with an
Account
type andActive
status.configurations(HashMap<String, Configuration>)
/set_configurations(Option<HashMap<String, Configuration>>)
:Access control configuration for your resource that is used to generate the access preview. The access preview includes findings for external access allowed to the resource with the proposed access control configuration. The configuration must contain exactly one element.
client_token(impl ::std::convert::Into<String>)
/set_client_token(Option<String>)
:A client token.
- On success, responds with
CreateAccessPreviewOutput
with field(s):id(Option<String>)
:The unique ID for the access preview.
- On failure, responds with
SdkError<CreateAccessPreviewError>
source§impl Client
impl Client
sourcepub fn create_analyzer(&self) -> CreateAnalyzerFluentBuilder
pub fn create_analyzer(&self) -> CreateAnalyzerFluentBuilder
Constructs a fluent builder for the CreateAnalyzer
operation.
- The fluent builder is configurable:
analyzer_name(impl ::std::convert::Into<String>)
/set_analyzer_name(Option<String>)
:The name of the analyzer to create.
r#type(Type)
/set_type(Option<Type>)
:The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers are supported. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.
archive_rules(Vec<InlineArchiveRule>)
/set_archive_rules(Option<Vec<InlineArchiveRule>>)
:Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The tags to apply to the analyzer.
client_token(impl ::std::convert::Into<String>)
/set_client_token(Option<String>)
:A client token.
- On success, responds with
CreateAnalyzerOutput
with field(s):arn(Option<String>)
:The ARN of the analyzer that was created by the request.
- On failure, responds with
SdkError<CreateAnalyzerError>
source§impl Client
impl Client
sourcepub fn create_archive_rule(&self) -> CreateArchiveRuleFluentBuilder
pub fn create_archive_rule(&self) -> CreateArchiveRuleFluentBuilder
Constructs a fluent builder for the CreateArchiveRule
operation.
- The fluent builder is configurable:
analyzer_name(impl ::std::convert::Into<String>)
/set_analyzer_name(Option<String>)
:The name of the created analyzer.
rule_name(impl ::std::convert::Into<String>)
/set_rule_name(Option<String>)
:The name of the rule to create.
filter(HashMap<String, Criterion>)
/set_filter(Option<HashMap<String, Criterion>>)
:The criteria for the rule.
client_token(impl ::std::convert::Into<String>)
/set_client_token(Option<String>)
:A client token.
- On success, responds with
CreateArchiveRuleOutput
- On failure, responds with
SdkError<CreateArchiveRuleError>
source§impl Client
impl Client
sourcepub fn delete_analyzer(&self) -> DeleteAnalyzerFluentBuilder
pub fn delete_analyzer(&self) -> DeleteAnalyzerFluentBuilder
Constructs a fluent builder for the DeleteAnalyzer
operation.
- The fluent builder is configurable:
analyzer_name(impl ::std::convert::Into<String>)
/set_analyzer_name(Option<String>)
:The name of the analyzer to delete.
client_token(impl ::std::convert::Into<String>)
/set_client_token(Option<String>)
:A client token.
- On success, responds with
DeleteAnalyzerOutput
- On failure, responds with
SdkError<DeleteAnalyzerError>
source§impl Client
impl Client
sourcepub fn delete_archive_rule(&self) -> DeleteArchiveRuleFluentBuilder
pub fn delete_archive_rule(&self) -> DeleteArchiveRuleFluentBuilder
Constructs a fluent builder for the DeleteArchiveRule
operation.
- The fluent builder is configurable:
analyzer_name(impl ::std::convert::Into<String>)
/set_analyzer_name(Option<String>)
:The name of the analyzer that associated with the archive rule to delete.
rule_name(impl ::std::convert::Into<String>)
/set_rule_name(Option<String>)
:The name of the rule to delete.
client_token(impl ::std::convert::Into<String>)
/set_client_token(Option<String>)
:A client token.
- On success, responds with
DeleteArchiveRuleOutput
- On failure, responds with
SdkError<DeleteArchiveRuleError>
source§impl Client
impl Client
sourcepub fn get_access_preview(&self) -> GetAccessPreviewFluentBuilder
pub fn get_access_preview(&self) -> GetAccessPreviewFluentBuilder
Constructs a fluent builder for the GetAccessPreview
operation.
- The fluent builder is configurable:
access_preview_id(impl ::std::convert::Into<String>)
/set_access_preview_id(Option<String>)
:The unique ID for the access preview.
analyzer_arn(impl ::std::convert::Into<String>)
/set_analyzer_arn(Option<String>)
:The ARN of the analyzer used to generate the access preview.
- On success, responds with
GetAccessPreviewOutput
with field(s):access_preview(Option<AccessPreview>)
:An object that contains information about the access preview.
- On failure, responds with
SdkError<GetAccessPreviewError>
source§impl Client
impl Client
sourcepub fn get_analyzed_resource(&self) -> GetAnalyzedResourceFluentBuilder
pub fn get_analyzed_resource(&self) -> GetAnalyzedResourceFluentBuilder
Constructs a fluent builder for the GetAnalyzedResource
operation.
- The fluent builder is configurable:
analyzer_arn(impl ::std::convert::Into<String>)
/set_analyzer_arn(Option<String>)
:The ARN of the analyzer to retrieve information from.
resource_arn(impl ::std::convert::Into<String>)
/set_resource_arn(Option<String>)
:The ARN of the resource to retrieve information about.
- On success, responds with
GetAnalyzedResourceOutput
with field(s):resource(Option<AnalyzedResource>)
:An
AnalyzedResource
object that contains information that IAM Access Analyzer found when it analyzed the resource.
- On failure, responds with
SdkError<GetAnalyzedResourceError>
source§impl Client
impl Client
sourcepub fn get_analyzer(&self) -> GetAnalyzerFluentBuilder
pub fn get_analyzer(&self) -> GetAnalyzerFluentBuilder
Constructs a fluent builder for the GetAnalyzer
operation.
- The fluent builder is configurable:
analyzer_name(impl ::std::convert::Into<String>)
/set_analyzer_name(Option<String>)
:The name of the analyzer retrieved.
- On success, responds with
GetAnalyzerOutput
with field(s):analyzer(Option<AnalyzerSummary>)
:An
AnalyzerSummary
object that contains information about the analyzer.
- On failure, responds with
SdkError<GetAnalyzerError>
source§impl Client
impl Client
sourcepub fn get_archive_rule(&self) -> GetArchiveRuleFluentBuilder
pub fn get_archive_rule(&self) -> GetArchiveRuleFluentBuilder
Constructs a fluent builder for the GetArchiveRule
operation.
- The fluent builder is configurable:
analyzer_name(impl ::std::convert::Into<String>)
/set_analyzer_name(Option<String>)
:The name of the analyzer to retrieve rules from.
rule_name(impl ::std::convert::Into<String>)
/set_rule_name(Option<String>)
:The name of the rule to retrieve.
- On success, responds with
GetArchiveRuleOutput
with field(s):archive_rule(Option<ArchiveRuleSummary>)
:Contains information about an archive rule.
- On failure, responds with
SdkError<GetArchiveRuleError>
source§impl Client
impl Client
sourcepub fn get_finding(&self) -> GetFindingFluentBuilder
pub fn get_finding(&self) -> GetFindingFluentBuilder
Constructs a fluent builder for the GetFinding
operation.
- The fluent builder is configurable:
analyzer_arn(impl ::std::convert::Into<String>)
/set_analyzer_arn(Option<String>)
:The ARN of the analyzer that generated the finding.
id(impl ::std::convert::Into<String>)
/set_id(Option<String>)
:The ID of the finding to retrieve.
- On success, responds with
GetFindingOutput
with field(s):finding(Option<Finding>)
:A
finding
object that contains finding details.
- On failure, responds with
SdkError<GetFindingError>
source§impl Client
impl Client
sourcepub fn get_generated_policy(&self) -> GetGeneratedPolicyFluentBuilder
pub fn get_generated_policy(&self) -> GetGeneratedPolicyFluentBuilder
Constructs a fluent builder for the GetGeneratedPolicy
operation.
- The fluent builder is configurable:
job_id(impl ::std::convert::Into<String>)
/set_job_id(Option<String>)
:The
JobId
that is returned by theStartPolicyGeneration
operation. TheJobId
can be used withGetGeneratedPolicy
to retrieve the generated policies or used withCancelPolicyGeneration
to cancel the policy generation request.include_resource_placeholders(bool)
/set_include_resource_placeholders(Option<bool>)
:The level of detail that you want to generate. You can specify whether to generate policies with placeholders for resource ARNs for actions that support resource level granularity in policies.
For example, in the resource section of a policy, you can receive a placeholder such as
“Resource”:“arn:aws:s3:::${BucketName}”
instead of“*”
.include_service_level_template(bool)
/set_include_service_level_template(Option<bool>)
:The level of detail that you want to generate. You can specify whether to generate service-level policies.
IAM Access Analyzer uses
iam:servicelastaccessed
to identify services that have been used recently to create this service-level template.
- On success, responds with
GetGeneratedPolicyOutput
with field(s):job_details(Option<JobDetails>)
:A
GeneratedPolicyDetails
object that contains details about the generated policy.generated_policy_result(Option<GeneratedPolicyResult>)
:A
GeneratedPolicyResult
object that contains the generated policies and associated details.
- On failure, responds with
SdkError<GetGeneratedPolicyError>
source§impl Client
impl Client
sourcepub fn list_access_preview_findings(
&self
) -> ListAccessPreviewFindingsFluentBuilder
pub fn list_access_preview_findings( &self ) -> ListAccessPreviewFindingsFluentBuilder
Constructs a fluent builder for the ListAccessPreviewFindings
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
access_preview_id(impl ::std::convert::Into<String>)
/set_access_preview_id(Option<String>)
:The unique ID for the access preview.
analyzer_arn(impl ::std::convert::Into<String>)
/set_analyzer_arn(Option<String>)
:The ARN of the analyzer used to generate the access.
filter(HashMap<String, Criterion>)
/set_filter(Option<HashMap<String, Criterion>>)
:Criteria to filter the returned findings.
next_token(impl ::std::convert::Into<String>)
/set_next_token(Option<String>)
:A token used for pagination of results returned.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return in the response.
- On success, responds with
ListAccessPreviewFindingsOutput
with field(s):findings(Option<Vec<AccessPreviewFinding>>)
:A list of access preview findings that match the specified filter criteria.
next_token(Option<String>)
:A token used for pagination of results returned.
- On failure, responds with
SdkError<ListAccessPreviewFindingsError>
source§impl Client
impl Client
sourcepub fn list_access_previews(&self) -> ListAccessPreviewsFluentBuilder
pub fn list_access_previews(&self) -> ListAccessPreviewsFluentBuilder
Constructs a fluent builder for the ListAccessPreviews
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
analyzer_arn(impl ::std::convert::Into<String>)
/set_analyzer_arn(Option<String>)
:The ARN of the analyzer used to generate the access preview.
next_token(impl ::std::convert::Into<String>)
/set_next_token(Option<String>)
:A token used for pagination of results returned.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return in the response.
- On success, responds with
ListAccessPreviewsOutput
with field(s):access_previews(Option<Vec<AccessPreviewSummary>>)
:A list of access previews retrieved for the analyzer.
next_token(Option<String>)
:A token used for pagination of results returned.
- On failure, responds with
SdkError<ListAccessPreviewsError>
source§impl Client
impl Client
sourcepub fn list_analyzed_resources(&self) -> ListAnalyzedResourcesFluentBuilder
pub fn list_analyzed_resources(&self) -> ListAnalyzedResourcesFluentBuilder
Constructs a fluent builder for the ListAnalyzedResources
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
analyzer_arn(impl ::std::convert::Into<String>)
/set_analyzer_arn(Option<String>)
:The ARN of the analyzer to retrieve a list of analyzed resources from.
resource_type(ResourceType)
/set_resource_type(Option<ResourceType>)
:The type of resource.
next_token(impl ::std::convert::Into<String>)
/set_next_token(Option<String>)
:A token used for pagination of results returned.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return in the response.
- On success, responds with
ListAnalyzedResourcesOutput
with field(s):analyzed_resources(Option<Vec<AnalyzedResourceSummary>>)
:A list of resources that were analyzed.
next_token(Option<String>)
:A token used for pagination of results returned.
- On failure, responds with
SdkError<ListAnalyzedResourcesError>
source§impl Client
impl Client
sourcepub fn list_analyzers(&self) -> ListAnalyzersFluentBuilder
pub fn list_analyzers(&self) -> ListAnalyzersFluentBuilder
Constructs a fluent builder for the ListAnalyzers
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl ::std::convert::Into<String>)
/set_next_token(Option<String>)
:A token used for pagination of results returned.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return in the response.
r#type(Type)
/set_type(Option<Type>)
:The type of analyzer.
- On success, responds with
ListAnalyzersOutput
with field(s):analyzers(Option<Vec<AnalyzerSummary>>)
:The analyzers retrieved.
next_token(Option<String>)
:A token used for pagination of results returned.
- On failure, responds with
SdkError<ListAnalyzersError>
source§impl Client
impl Client
sourcepub fn list_archive_rules(&self) -> ListArchiveRulesFluentBuilder
pub fn list_archive_rules(&self) -> ListArchiveRulesFluentBuilder
Constructs a fluent builder for the ListArchiveRules
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
analyzer_name(impl ::std::convert::Into<String>)
/set_analyzer_name(Option<String>)
:The name of the analyzer to retrieve rules from.
next_token(impl ::std::convert::Into<String>)
/set_next_token(Option<String>)
:A token used for pagination of results returned.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return in the request.
- On success, responds with
ListArchiveRulesOutput
with field(s):archive_rules(Option<Vec<ArchiveRuleSummary>>)
:A list of archive rules created for the specified analyzer.
next_token(Option<String>)
:A token used for pagination of results returned.
- On failure, responds with
SdkError<ListArchiveRulesError>
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:
analyzer_arn(impl ::std::convert::Into<String>)
/set_analyzer_arn(Option<String>)
:The ARN of the analyzer to retrieve findings from.
filter(HashMap<String, Criterion>)
/set_filter(Option<HashMap<String, Criterion>>)
:A filter to match for the findings to return.
sort(SortCriteria)
/set_sort(Option<SortCriteria>)
:The sort order for the findings returned.
next_token(impl ::std::convert::Into<String>)
/set_next_token(Option<String>)
:A token used for pagination of results returned.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return in the response.
- On success, responds with
ListFindingsOutput
with field(s):findings(Option<Vec<FindingSummary>>)
:A list of findings retrieved from the analyzer that match the filter criteria specified, if any.
next_token(Option<String>)
:A token used for pagination of results returned.
- On failure, responds with
SdkError<ListFindingsError>
source§impl Client
impl Client
sourcepub fn list_policy_generations(&self) -> ListPolicyGenerationsFluentBuilder
pub fn list_policy_generations(&self) -> ListPolicyGenerationsFluentBuilder
Constructs a fluent builder for the ListPolicyGenerations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
principal_arn(impl ::std::convert::Into<String>)
/set_principal_arn(Option<String>)
:The ARN of the IAM entity (user or role) for which you are generating a policy. Use this with
ListGeneratedPolicies
to filter the results to only include results for a specific principal.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return in the response.
next_token(impl ::std::convert::Into<String>)
/set_next_token(Option<String>)
:A token used for pagination of results returned.
- On success, responds with
ListPolicyGenerationsOutput
with field(s):policy_generations(Option<Vec<PolicyGeneration>>)
:A
PolicyGeneration
object that contains details about the generated policy.next_token(Option<String>)
:A token used for pagination of results returned.
- On failure, responds with
SdkError<ListPolicyGenerationsError>
source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl ::std::convert::Into<String>)
/set_resource_arn(Option<String>)
:The ARN of the resource to retrieve tags from.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<HashMap<String, String>>)
:The tags that are applied to the specified resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
source§impl Client
impl Client
sourcepub fn start_policy_generation(&self) -> StartPolicyGenerationFluentBuilder
pub fn start_policy_generation(&self) -> StartPolicyGenerationFluentBuilder
Constructs a fluent builder for the StartPolicyGeneration
operation.
- The fluent builder is configurable:
policy_generation_details(PolicyGenerationDetails)
/set_policy_generation_details(Option<PolicyGenerationDetails>)
:Contains the ARN of the IAM entity (user or role) for which you are generating a policy.
cloud_trail_details(CloudTrailDetails)
/set_cloud_trail_details(Option<CloudTrailDetails>)
:A
CloudTrailDetails
object that contains details about aTrail
that you want to analyze to generate policies.client_token(impl ::std::convert::Into<String>)
/set_client_token(Option<String>)
:A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, the subsequent retries with the same client token return the result from the original successful request and they have no additional effect.
If you do not specify a client token, one is automatically generated by the Amazon Web Services SDK.
- On success, responds with
StartPolicyGenerationOutput
with field(s):job_id(Option<String>)
:The
JobId
that is returned by theStartPolicyGeneration
operation. TheJobId
can be used withGetGeneratedPolicy
to retrieve the generated policies or used withCancelPolicyGeneration
to cancel the policy generation request.
- On failure, responds with
SdkError<StartPolicyGenerationError>
source§impl Client
impl Client
sourcepub fn start_resource_scan(&self) -> StartResourceScanFluentBuilder
pub fn start_resource_scan(&self) -> StartResourceScanFluentBuilder
Constructs a fluent builder for the StartResourceScan
operation.
- The fluent builder is configurable:
analyzer_arn(impl ::std::convert::Into<String>)
/set_analyzer_arn(Option<String>)
:The ARN of the analyzer to use to scan the policies applied to the specified resource.
resource_arn(impl ::std::convert::Into<String>)
/set_resource_arn(Option<String>)
:The ARN of the resource to scan.
resource_owner_account(impl ::std::convert::Into<String>)
/set_resource_owner_account(Option<String>)
:The Amazon Web Services account ID that owns the resource. For most Amazon Web Services resources, the owning account is the account in which the resource was created.
- On success, responds with
StartResourceScanOutput
- On failure, responds with
SdkError<StartResourceScanError>
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 ::std::convert::Into<String>)
/set_resource_arn(Option<String>)
:The ARN of the resource to add the tag to.
tags(HashMap<String, String>)
/set_tags(Option<HashMap<String, String>>)
:The tags to add to the 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 ::std::convert::Into<String>)
/set_resource_arn(Option<String>)
:The ARN of the resource to remove the tag from.
tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
:The key for the tag to add.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
source§impl Client
impl Client
sourcepub fn update_archive_rule(&self) -> UpdateArchiveRuleFluentBuilder
pub fn update_archive_rule(&self) -> UpdateArchiveRuleFluentBuilder
Constructs a fluent builder for the UpdateArchiveRule
operation.
- The fluent builder is configurable:
analyzer_name(impl ::std::convert::Into<String>)
/set_analyzer_name(Option<String>)
:The name of the analyzer to update the archive rules for.
rule_name(impl ::std::convert::Into<String>)
/set_rule_name(Option<String>)
:The name of the rule to update.
filter(HashMap<String, Criterion>)
/set_filter(Option<HashMap<String, Criterion>>)
:A filter to match for the rules to update. Only rules that match the filter are updated.
client_token(impl ::std::convert::Into<String>)
/set_client_token(Option<String>)
:A client token.
- On success, responds with
UpdateArchiveRuleOutput
- On failure, responds with
SdkError<UpdateArchiveRuleError>
source§impl Client
impl Client
sourcepub fn update_findings(&self) -> UpdateFindingsFluentBuilder
pub fn update_findings(&self) -> UpdateFindingsFluentBuilder
Constructs a fluent builder for the UpdateFindings
operation.
- The fluent builder is configurable:
analyzer_arn(impl ::std::convert::Into<String>)
/set_analyzer_arn(Option<String>)
:The ARN of the analyzer that generated the findings to update.
status(FindingStatusUpdate)
/set_status(Option<FindingStatusUpdate>)
:The state represents the action to take to update the finding Status. Use
ARCHIVE
to change an Active finding to an Archived finding. UseACTIVE
to change an Archived finding to an Active finding.ids(Vec<String>)
/set_ids(Option<Vec<String>>)
:The IDs of the findings to update.
resource_arn(impl ::std::convert::Into<String>)
/set_resource_arn(Option<String>)
:The ARN of the resource identified in the finding.
client_token(impl ::std::convert::Into<String>)
/set_client_token(Option<String>)
:A client token.
- On success, responds with
UpdateFindingsOutput
- On failure, responds with
SdkError<UpdateFindingsError>
source§impl Client
impl Client
sourcepub fn validate_policy(&self) -> ValidatePolicyFluentBuilder
pub fn validate_policy(&self) -> ValidatePolicyFluentBuilder
Constructs a fluent builder for the ValidatePolicy
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
locale(Locale)
/set_locale(Option<Locale>)
:The locale to use for localizing the findings.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return in the response.
next_token(impl ::std::convert::Into<String>)
/set_next_token(Option<String>)
:A token used for pagination of results returned.
policy_document(impl ::std::convert::Into<String>)
/set_policy_document(Option<String>)
:The JSON policy document to use as the content for the policy.
policy_type(PolicyType)
/set_policy_type(Option<PolicyType>)
:The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups. They also include service-control policies (SCPs) that are attached to an Amazon Web Services organization, organizational unit (OU), or an account.
Resource policies grant permissions on Amazon Web Services resources. Resource policies include trust policies for IAM roles and bucket policies for Amazon S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or Amazon S3 bucket policy.
validate_policy_resource_type(ValidatePolicyResourceType)
/set_validate_policy_resource_type(Option<ValidatePolicyResourceType>)
:The type of resource to attach to your resource policy. Specify a value for the policy validation resource type only if the policy type is
RESOURCE_POLICY
. For example, to validate a resource policy to attach to an Amazon S3 bucket, you can chooseAWS::S3::Bucket
for the policy validation resource type.For resource types not supported as valid values, IAM Access Analyzer runs policy checks that apply to all resource policies. For example, to validate a resource policy to attach to a KMS key, do not specify a value for the policy validation resource type and IAM Access Analyzer will run policy checks that apply to all resource policies.
- On success, responds with
ValidatePolicyOutput
with field(s):findings(Option<Vec<ValidatePolicyFinding>>)
:The list of findings in a policy returned by IAM Access Analyzer based on its suite of policy checks.
next_token(Option<String>)
:A token used for pagination of results returned.
- On failure, responds with
SdkError<ValidatePolicyError>
source§impl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config( client: Client<DynConnector, DynMiddleware<DynConnector>>, conf: Config ) -> Self
Creates a client with the given service configuration.
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_config
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
sdk_config
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it.
sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
Panics
- This method will panic if the
conf
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
conf
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it.