latestOpenAPI 3.0.32026-08-10152216352.3 KB

eea119b4113f

Codification

Create a new module

Create a new module using the provided resource

post/api/codify/module/create

Request body

assetIdstring required

The id of the resource to be codified using create module

assetTypestring required

The Terraform asset type (e.g. aws_s3_bucket)

provider'akamai' | 'aws' | 'azurerm' | 'cloudflare' | 'datadog' | 'gcp' | 'github' | 'mongodbatlas' | 'newrelic' | 'ns1' | 'oci' | 'pagerduty' | 'vault' required

The provider of the resource type

providerIdstring required

The Firefly integration ID where the resource is located

tfVersionstring

The Terraform version to use from the specified provider

withAiboolean

Whether to use AI to create the module

withDependenciesboolean

Whether to include dependencies in the module (only available when withAi is true)

Response

Successfully created module

CreateModuleResponse required

Map of file paths to their contents