VerifiedPermissionsClient#
Index > VerifiedPermissions > VerifiedPermissionsClient
Auto-generated documentation for VerifiedPermissions type annotations stubs module mypy-boto3-verifiedpermissions.
VerifiedPermissionsClient#
Type annotations and code completion for boto3.client("verifiedpermissions")
.
boto3 documentation
# VerifiedPermissionsClient usage example
from boto3.session import Session
from mypy_boto3_verifiedpermissions.client import VerifiedPermissionsClient
def get_verifiedpermissions_client() -> VerifiedPermissionsClient:
return Session().client("verifiedpermissions")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("verifiedpermissions").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("verifiedpermissions")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_verifiedpermissions.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
batch_is_authorized#
Makes a series of decisions about multiple authorization requests for one principal or resource.
Type annotations and code completion for boto3.client("verifiedpermissions").batch_is_authorized
method.
boto3 documentation
# batch_is_authorized method definition
def batch_is_authorized(
self,
*,
policyStoreId: str,
requests: Sequence[Union[BatchIsAuthorizedInputItemTypeDef, BatchIsAuthorizedInputItemOutputTypeDef]], # (1)
entities: EntitiesDefinitionTypeDef = ..., # (2)
) -> BatchIsAuthorizedOutputTypeDef: # (3)
...
- See BatchIsAuthorizedInputItemTypeDef BatchIsAuthorizedInputItemOutputTypeDef
- See EntitiesDefinitionTypeDef
- See BatchIsAuthorizedOutputTypeDef
# batch_is_authorized method usage example with argument unpacking
kwargs: BatchIsAuthorizedInputRequestTypeDef = { # (1)
"policyStoreId": ...,
"requests": ...,
}
parent.batch_is_authorized(**kwargs)
batch_is_authorized_with_token#
Makes a series of decisions about multiple authorization requests for one token.
Type annotations and code completion for boto3.client("verifiedpermissions").batch_is_authorized_with_token
method.
boto3 documentation
# batch_is_authorized_with_token method definition
def batch_is_authorized_with_token(
self,
*,
policyStoreId: str,
requests: Sequence[Union[BatchIsAuthorizedWithTokenInputItemTypeDef, BatchIsAuthorizedWithTokenInputItemOutputTypeDef]], # (1)
identityToken: str = ...,
accessToken: str = ...,
entities: EntitiesDefinitionTypeDef = ..., # (2)
) -> BatchIsAuthorizedWithTokenOutputTypeDef: # (3)
...
- See BatchIsAuthorizedWithTokenInputItemTypeDef BatchIsAuthorizedWithTokenInputItemOutputTypeDef
- See EntitiesDefinitionTypeDef
- See BatchIsAuthorizedWithTokenOutputTypeDef
# batch_is_authorized_with_token method usage example with argument unpacking
kwargs: BatchIsAuthorizedWithTokenInputRequestTypeDef = { # (1)
"policyStoreId": ...,
"requests": ...,
}
parent.batch_is_authorized_with_token(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("verifiedpermissions").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("verifiedpermissions").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_identity_source#
Adds an identity source to a policy store-an Amazon Cognito user pool or OpenID Connect (OIDC) identity provider (IdP).
Type annotations and code completion for boto3.client("verifiedpermissions").create_identity_source
method.
boto3 documentation
# create_identity_source method definition
def create_identity_source(
self,
*,
policyStoreId: str,
configuration: ConfigurationTypeDef, # (1)
clientToken: str = ...,
principalEntityType: str = ...,
) -> CreateIdentitySourceOutputTypeDef: # (2)
...
# create_identity_source method usage example with argument unpacking
kwargs: CreateIdentitySourceInputRequestTypeDef = { # (1)
"policyStoreId": ...,
"configuration": ...,
}
parent.create_identity_source(**kwargs)
create_policy#
Creates a Cedar policy and saves it in the specified policy store.
Type annotations and code completion for boto3.client("verifiedpermissions").create_policy
method.
boto3 documentation
# create_policy method definition
def create_policy(
self,
*,
policyStoreId: str,
definition: PolicyDefinitionTypeDef, # (1)
clientToken: str = ...,
) -> CreatePolicyOutputTypeDef: # (2)
...
# create_policy method usage example with argument unpacking
kwargs: CreatePolicyInputRequestTypeDef = { # (1)
"policyStoreId": ...,
"definition": ...,
}
parent.create_policy(**kwargs)
create_policy_store#
Creates a policy store.
Type annotations and code completion for boto3.client("verifiedpermissions").create_policy_store
method.
boto3 documentation
# create_policy_store method definition
def create_policy_store(
self,
*,
validationSettings: ValidationSettingsTypeDef, # (1)
clientToken: str = ...,
description: str = ...,
) -> CreatePolicyStoreOutputTypeDef: # (2)
...
# create_policy_store method usage example with argument unpacking