airflow.providers.amazon.aws.auth_manager.avp.entities

Module Contents

Classes

AvpEntities

Enum of Amazon Verified Permissions entities.

Functions

get_entity_type(resource_type)

Return entity type.

get_action_id(resource_type, method)

Return action id.

Attributes

AVP_PREFIX_ENTITIES

airflow.providers.amazon.aws.auth_manager.avp.entities.AVP_PREFIX_ENTITIES = 'Airflow::'[source]
class airflow.providers.amazon.aws.auth_manager.avp.entities.AvpEntities[source]

Bases: enum.Enum

Enum of Amazon Verified Permissions entities.

ACTION = 'Action'[source]
ROLE = 'Role'[source]
USER = 'User'[source]
CONFIGURATION = 'Configuration'[source]
CONNECTION = 'Connection'[source]
DATASET = 'Dataset'[source]
POOL = 'Pool'[source]
VARIABLE = 'Variable'[source]
VIEW = 'View'[source]
airflow.providers.amazon.aws.auth_manager.avp.entities.get_entity_type(resource_type)[source]

Return entity type.

Parameters

resource_type (AvpEntities) – Resource type.

Example: Airflow::Action, Airflow::Role, Airflow::Variable, Airflow::User.

airflow.providers.amazon.aws.auth_manager.avp.entities.get_action_id(resource_type, method)[source]

Return action id.

Convention for action ID is <resource_type>::<method>. Example: Variable::GET.

Parameters
  • resource_type (AvpEntities) – Resource type.

  • method (airflow.auth.managers.base_auth_manager.ResourceMethod) – Resource method.

Was this entry helpful?