airflow.providers.apache.polaris.operators.principal¶
Operators that create and delete Polaris principals.
Classes¶
Create a Polaris principal (a service identity). |
|
Delete a Polaris principal. |
Module Contents¶
- class airflow.providers.apache.polaris.operators.principal.PolarisCreatePrincipalOperator(*, principal_name, properties=None, credential_rotation_required=False, if_exists='skip', **kwargs)[source]¶
Bases:
airflow.providers.apache.polaris.operators.base.PolarisManagementBaseOperatorCreate a Polaris principal (a service identity).
The operator never returns, logs or stores the new principal’s client secret, which Polaris sends only once. It suits principals that authenticate through an external identity provider; for Polaris-issued credentials, obtain them out of band (for example
polaris principals resetin the Polaris CLI) and store them in your secrets backend.See also
For more information, take a look at the guide: PolarisCreatePrincipalOperator
- Parameters:
principal_name (str) – Name of the principal.
properties (dict[str, str] | None) – Optional principal properties.
credential_rotation_required (bool) – If true, Polaris lets the initial credentials call only
rotateCredentials(enforced when the server enables that check).if_exists (airflow.providers.apache.polaris.hooks.polaris.IfExists) –
"skip"(default) succeeds and returns the existing principal;"fail"raises.polaris_conn_id – Polaris connection id.
- Returns:
The principal as a dict (name, client id, properties); never credentials.
- template_fields: collections.abc.Sequence[str] = ('polaris_conn_id', 'principal_name', 'properties')[source]¶
- class airflow.providers.apache.polaris.operators.principal.PolarisDeletePrincipalOperator(*, principal_name, if_missing='skip', **kwargs)[source]¶
Bases:
airflow.providers.apache.polaris.operators.base.PolarisManagementBaseOperatorDelete a Polaris principal.
See also
For more information, take a look at the guide: PolarisDeletePrincipalOperator
- Parameters:
principal_name (str) – Principal to delete.
if_missing (airflow.providers.apache.polaris.hooks.polaris.IfMissing) –
"skip"(default) succeeds when the principal does not exist;"fail"raises.polaris_conn_id – Polaris connection id.
- Returns:
Trueif deleted,Falseif it did not exist.
- template_fields: collections.abc.Sequence[str] = ('polaris_conn_id', 'principal_name')[source]¶