DeleteResource
Source:
src/AWS/CloudControl/DeleteResource.ts
Runtime binding for cloudformation:DeleteResource.
Deletes a Cloud Control-supported resource. The call is asynchronous: poll
the returned RequestToken with GetResourceRequestStatus until the
operation settles. Because Cloud Control invokes the resource type’s delete
handler with the caller’s credentials, pass the handler’s underlying
permissions via
CloudControlBindingOptions.handlerPolicyStatements.
Provisioning Resources
Section titled “Provisioning Resources”const deleteResource = yield* CloudControl.DeleteResource({ handlerPolicyStatements: [ { Effect: "Allow", Action: ["ssm:DeleteParameter"], Resource: ["*"] }, ],});
// runtimeconst deleted = yield* deleteResource({ TypeName: "AWS::SSM::Parameter", Identifier: "/tenants/acme/greeting",});