Skip to content

DeletePolicy

Source: src/AWS/FMS/DeletePolicy.ts

Runtime binding for fms:DeletePolicy.

Permanently deletes the specified Firewall Manager policy, optionally cleaning up the resources it created in member accounts. Provide the implementation with Effect.provide(AWS.FMS.DeletePolicyHttp).

// init — account-level binding takes no resource
const deletePolicy = yield* AWS.FMS.DeletePolicy();
// runtime
yield* deletePolicy({ PolicyId: policyId, DeleteAllPolicyResources: true });