AccessAnalyzerClient#
Index > AccessAnalyzer > AccessAnalyzerClient
Auto-generated documentation for AccessAnalyzer type annotations stubs module mypy-boto3-accessanalyzer.
AccessAnalyzerClient#
Type annotations and code completion for boto3.client("accessanalyzer")
.
boto3 documentation
# AccessAnalyzerClient usage example
from boto3.session import Session
from mypy_boto3_accessanalyzer.client import AccessAnalyzerClient
def get_accessanalyzer_client() -> AccessAnalyzerClient:
return Session().client("accessanalyzer")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("accessanalyzer").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("accessanalyzer")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.InvalidParameterException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.UnprocessableEntityException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_accessanalyzer.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
apply_archive_rule#
Retroactively applies the archive rule to existing findings that meet the archive rule criteria.
Type annotations and code completion for boto3.client("accessanalyzer").apply_archive_rule
method.
boto3 documentation
# apply_archive_rule method definition
def apply_archive_rule(
self,
*,
analyzerArn: str,
ruleName: str,
clientToken: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# apply_archive_rule method usage example with argument unpacking
kwargs: ApplyArchiveRuleRequestRequestTypeDef = { # (1)
"analyzerArn": ...,
"ruleName": ...,
}
parent.apply_archive_rule(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("accessanalyzer").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
cancel_policy_generation#
Cancels the requested policy generation.
Type annotations and code completion for boto3.client("accessanalyzer").cancel_policy_generation
method.
boto3 documentation
# cancel_policy_generation method definition
def cancel_policy_generation(
self,
*,
jobId: str,
) -> Dict[str, Any]:
...
# cancel_policy_generation method usage example with argument unpacking
kwargs: CancelPolicyGenerationRequestRequestTypeDef = { # (1)
"jobId": ...,
}
parent.cancel_policy_generation(**kwargs)
check_access_not_granted#
Checks whether the specified access isn't allowed by a policy.
Type annotations and code completion for boto3.client("accessanalyzer").check_access_not_granted
method.
boto3 documentation
# check_access_not_granted method definition
def check_access_not_granted(
self,
*,
policyDocument: str,
access: Sequence[AccessTypeDef], # (1)
policyType: AccessCheckPolicyTypeType, # (2)
) -> CheckAccessNotGrantedResponseTypeDef: # (3)
...
# check_access_not_granted method usage example with argument unpacking
kwargs: CheckAccessNotGrantedRequestRequestTypeDef = { # (1)
"policyDocument": ...,
"access": ...,
"policyType": ...,
}
parent.check_access_not_granted(**kwargs)
check_no_new_access#
Checks whether new access is allowed for an updated policy when compared to the existing policy.
Type annotations and code completion for boto3.client("accessanalyzer").check_no_new_access
method.
boto3 documentation
# check_no_new_access method definition
def check_no_new_access(
self,
*,
newPolicyDocument: str,
existingPolicyDocument: str,
policyType: AccessCheckPolicyTypeType, # (1)
) -> CheckNoNewAccessResponseTypeDef: # (2)
...
# check_no_new_access method usage example with argument unpacking
kwargs: CheckNoNewAccessRequestRequestTypeDef = { # (1)
"newPolicyDocument": ...,
"existingPolicyDocument": ...,
"policyType": ...,
}
parent.check_no_new_access(**kwargs)
check_no_public_access#
Checks whether a resource policy can grant public access to the specified resource type.
Type annotations and code completion for boto3.client("accessanalyzer").check_no_public_access
method.
boto3 documentation
# check_no_public_access method definition
def check_no_public_access(
self,
*,
policyDocument: str,
resourceType: AccessCheckResourceTypeType, # (1)
) -> CheckNoPublicAccessResponseTypeDef: # (2)
...
# check_no_public_access method usage example with argument unpacking
kwargs: CheckNoPublicAccessRequestRequestTypeDef = { # (1)
"policyDocument": ...,
"resourceType": ...,
}
parent.check_no_public_access(**kwargs)
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("accessanalyzer").close
method.