airflow.providers.amazon.aws.auth_manager.avp.facade

Module Contents

Classes

IsAuthorizedRequest

Represent the parameters of is_authorized method in AVP facade.

AwsAuthManagerAmazonVerifiedPermissionsFacade

Facade for Amazon Verified Permissions.

Attributes

NB_REQUESTS_PER_BATCH

airflow.providers.amazon.aws.auth_manager.avp.facade.NB_REQUESTS_PER_BATCH = 30[source]
class airflow.providers.amazon.aws.auth_manager.avp.facade.IsAuthorizedRequest[source]

Bases: TypedDict

Represent the parameters of is_authorized method in AVP facade.

method: airflow.auth.managers.base_auth_manager.ResourceMethod[source]
entity_type: airflow.providers.amazon.aws.auth_manager.avp.entities.AvpEntities[source]
entity_id: str | None[source]
context: dict | None[source]
class airflow.providers.amazon.aws.auth_manager.avp.facade.AwsAuthManagerAmazonVerifiedPermissionsFacade(context=None)[source]

Bases: airflow.utils.log.logging_mixin.LoggingMixin

Facade for Amazon Verified Permissions.

Used as an intermediate layer between AWS auth manager and Amazon Verified Permissions.

avp_client()[source]

Build Amazon Verified Permissions client.

avp_policy_store_id()[source]

Get the Amazon Verified Permission policy store ID from config.

is_authorized(*, method, entity_type, user, entity_id=None, context=None)[source]

Make an authorization decision against Amazon Verified Permissions.

Check whether the user has permissions to access given resource.

Parameters
get_batch_is_authorized_results(*, requests, user)[source]

Make a batch authorization decision against Amazon Verified Permissions.

Return a list of results for each request.

Parameters
batch_is_authorized(*, requests, user)[source]

Make a batch authorization decision against Amazon Verified Permissions.

Check whether the user has permissions to access all resources.

Parameters
get_batch_is_authorized_single_result(*, batch_is_authorized_results, request, user)[source]

Get a specific authorization result from the output of get_batch_is_authorized_results.

Parameters

Was this entry helpful?