Skip to main content

Governance

Governance policies, solutions, and the gate-submission workflow.

Access it as client.governance on a Strongly client, or the same path on AsyncStrongly with await. All methods exist on both with identical signatures.

Methods

All methods

approve_gate_submission

approve_gate_submission(submission_id: str, *, decision: str, comments: Optional[str] = None) -> Dict[str, Any]

Approve a pending gate submission.

Args: submission_id: Target submission id. decision: approved | denied | conditional. comments: Optional reviewer comments.

audit

audit(**params) -> Dict[str, Any]

Query the governance audit log.

create_policy

create_policy(*, name: str, description: str, category: str, severity: str, applicable_resource_types: Sequence[str], stages: Sequence[Mapping[str, Any]], is_active: bool, is_draft: bool) -> GovernancePolicy

Create a governance policy.

Args: name: Policy name. description: Policy description. category: Policy category. severity: Policy severity. applicable_resource_types: Resource types this policy governs (see resource_types). stages: Stage definitions, each carrying its own gates (free-form stage objects). is_active: Whether the policy is active. is_draft: Whether the policy is a draft.

create_solution

create_solution(*, name: str, description: Optional[str] = None, policy_ids: Optional[Sequence[str]] = None) -> GovernanceSolution

Create a governance solution.

Args: name: Solution name. description: Optional description. policy_ids: Ids of the policies this solution is gated against.

delete_policy

delete_policy(policy_id: str) -> None

Delete a governance policy. Raises on failure; returns nothing.

delete_solution

delete_solution(solution_id: str) -> None

Delete a governance solution. Raises on failure; returns nothing.

enforcement_check

enforcement_check(**params) -> Dict[str, Any]

Check whether a resource passes governance enforcement.

list_policies

list_policies(*, category: Optional[str] = None, severity: Optional[str] = None, is_active: Optional[bool] = None, search: Optional[str] = None, limit: Optional[int] = None) -> SyncPaginator[GovernancePolicy]

List governance policies with pagination and filters.

Args: category: Filter by policy category. severity: Filter by severity. is_active: Restrict to active (or inactive) policies. search: Full-text search over name and description. limit: Maximum number of items to return (default: all matching items).

list_solutions

list_solutions(**params) -> SyncPaginator[GovernanceSolution]

List governance solutions with pagination.

metrics

metrics() -> Dict[str, Any]

Get aggregate governance metrics.

pending_reviews

pending_reviews(**params) -> Dict[str, Any]

List gate submissions awaiting review.

recompute_solution

recompute_solution(solution_id: str) -> Dict[str, Any]

Recompute a solution's gate/compliance status.

resource_types

resource_types() -> Dict[str, Any]

List the resource types governance can be applied to.

retrieve_evidence

retrieve_evidence(evidence_id: str) -> Dict[str, Any]

Retrieve a governance evidence document by id.

retrieve_policy

retrieve_policy(policy_id: str) -> GovernancePolicy

Retrieve a single governance policy by id.

retrieve_solution

retrieve_solution(solution_id: str) -> GovernanceSolution

Retrieve a single governance solution by id.

solution_requirements

solution_requirements(solution_id: str) -> Dict[str, Any]

Get the policy requirements (gates) for a solution.

submit_gate

submit_gate(solution_id: str, gate_id: str, *, policy_id: str, data: Optional[Mapping[str, Any]] = None) -> Dict[str, Any]

Submit evidence for a specific gate on a solution.

Args: solution_id: Target solution id. gate_id: Target gate id. policy_id: Id of the policy the gate belongs to. data: Free-form evidence payload for the gate.

update_policy

update_policy(policy_id: str, *, name: Optional[str] = None, description: Optional[str] = None, category: Optional[str] = None, severity: Optional[str] = None, applicable_resource_types: Optional[Sequence[str]] = None, stages: Optional[Sequence[Mapping[str, Any]]] = None, is_active: Optional[bool] = None, is_draft: Optional[bool] = None) -> GovernancePolicy

Update a governance policy and return the updated record.

update_solution

update_solution(solution_id: str, *, name: Optional[str] = None, description: Optional[str] = None, status: Optional[str] = None) -> GovernanceSolution

Update a governance solution and return the updated record.

waive_gate_submission

waive_gate_submission(submission_id: str, *, reason: str) -> Dict[str, Any]

Waive a gate submission (record an approved exception).