Skip to content

TerminateProvisionedProduct

Source: src/AWS/ServiceCatalog/TerminateProvisionedProduct.ts

Runtime binding for servicecatalog:TerminateProvisionedProduct.

Terminates a provisioned product, deleting the underlying CloudFormation stack. Returns the in-flight record — poll it with DescribeRecord.

Also grants the CloudFormation stack-deletion actions Service Catalog performs with the caller’s credentials when the product has no launch-role constraint.

Account-level operation — which products the caller can see and act on is governed by portfolio principal associations, so the binding takes no resource argument. Provide the implementation with Effect.provide(AWS.ServiceCatalog.TerminateProvisionedProductHttp).

// init — account-level binding, no resource argument
const terminateProvisionedProduct = yield* AWS.ServiceCatalog.TerminateProvisionedProduct();
// runtime
const { RecordDetail } = yield* terminateProvisionedProduct({
ProvisionedProductName: "my-vpc",
TerminateToken: crypto.randomUUID(),
});