{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudformation/json-schema/amazon-cloudformation-describe-generated-template-output-schema.json",
  "title": "DescribeGeneratedTemplateOutput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudformation-generated-template-api-openapi.yml#/components/schemas/DescribeGeneratedTemplateOutput",
  "type": "object",
  "properties": {
    "GeneratedTemplateId": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the generated template. The format is arn:${Partition}:cloudformation:${Region}:${Account}:generatedtemplate/${Id}. For example, arn:aws:cloudformation:us-east-1:123456789012:generatedtemplate/2e8465c1-9a80-43ea-a3a3-4f2d692fe6dc ."
    },
    "GeneratedTemplateName": {
      "type": "string",
      "description": "The name of the generated template."
    },
    "Resources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourceDetail"
      },
      "description": "A list of objects describing the details of the resources in the template generation."
    },
    "Status": {
      "type": "string",
      "enum": [
        "CREATE_PENDING",
        "UPDATE_PENDING",
        "DELETE_PENDING",
        "CREATE_IN_PROGRESS",
        "UPDATE_IN_PROGRESS",
        "DELETE_IN_PROGRESS",
        "FAILED",
        "COMPLETE"
      ],
      "description": "The status of the template generation. Supported values are: CreatePending - the creation of the template is pending. CreateInProgress - the creation of the template is in progress. DeletePending - the deletion of the template is pending. DeleteInProgress - the deletion of the template is in progress. UpdatePending - the update of the template is pending. UpdateInProgress - the update of the template is in progress. Failed - the template operation failed. Complete - the template operation is complete."
    },
    "StatusReason": {
      "type": "string",
      "description": "The reason for the current template generation status. This will provide more details if a failure happened."
    },
    "CreationTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time the generated template was created."
    },
    "LastUpdatedTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time the generated template was last updated."
    },
    "Progress": {
      "$ref": "#/$defs/TemplateProgress"
    },
    "StackId": {
      "type": "string",
      "description": "The stack ARN of the base stack if a base stack was provided when generating the template."
    },
    "TemplateConfiguration": {
      "$ref": "#/$defs/TemplateConfiguration"
    },
    "TotalWarnings": {
      "type": "integer",
      "description": "The number of warnings generated for this template. The warnings are found in the details of each of the resources in the template."
    }
  },
  "$defs": {
    "ResourceDetail": {
      "type": "object",
      "properties": {
        "ResourceType": {
          "type": "string",
          "description": "The type of the resource, such as AWS::DynamoDB::Table. For the list of supported resources, see Resource type support for imports and drift detection In the CloudFormation User Guide"
        },
        "LogicalResourceId": {
          "type": "string",
          "description": "The logical id for this resource in the final generated template."
        },
        "ResourceIdentifier": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A list of up to 256 key-value pairs that identifies the resource in the generated template. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table resource, the primary identifiers is TableName so the key-value pair could be \"TableName\": \"MyDDBTable\". For more information, see primaryIdentifier in the CloudFormation Command Line Interface (CLI) User Guide."
        },
        "ResourceStatus": {
          "type": "string",
          "enum": [
            "PENDING",
            "IN_PROGRESS",
            "FAILED",
            "COMPLETE"
          ],
          "description": "Status of the processing of a resource in a generated template. InProgress The resource processing is still in progress. Complete The resource processing is complete. Pending The resource processing is pending. Failed The resource processing has failed."
        },
        "ResourceStatusReason": {
          "type": "string",
          "description": "The reason for the resource detail, providing more information if a failure happened."
        },
        "Warnings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WarningDetail"
          },
          "description": "The warnings generated for this resource."
        }
      }
    },
    "TemplateConfiguration": {
      "type": "object",
      "properties": {
        "DeletionPolicy": {
          "type": "string",
          "enum": [
            "DELETE",
            "RETAIN"
          ],
          "description": "The DeletionPolicy assigned to resources in the generated template. Supported values are: DELETE - delete all resources when the stack is deleted. RETAIN - retain all resources when the stack is deleted. For more information, see DeletionPolicy attribute in the CloudFormation User Guide."
        },
        "UpdateReplacePolicy": {
          "type": "string",
          "enum": [
            "DELETE",
            "RETAIN"
          ],
          "description": "The UpdateReplacePolicy assigned to resources in the generated template. Supported values are: DELETE - delete all resources when the resource is replaced during an update operation. RETAIN - retain all resources when the resource is replaced during an update operation. For more information, see UpdateReplacePolicy attribute in the CloudFormation User Guide."
        }
      }
    },
    "TemplateProgress": {
      "type": "object",
      "properties": {
        "ResourcesSucceeded": {
          "type": "integer",
          "description": "The number of resources that succeeded the template generation."
        },
        "ResourcesFailed": {
          "type": "integer",
          "description": "The number of resources that failed the template generation."
        },
        "ResourcesProcessing": {
          "type": "integer",
          "description": "The number of resources that are in-process for the template generation."
        },
        "ResourcesPending": {
          "type": "integer",
          "description": "The number of resources that are still pending the template generation."
        }
      }
    },
    "WarningDetail": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "MUTUALLY_EXCLUSIVE_PROPERTIES",
            "UNSUPPORTED_PROPERTIES",
            "MUTUALLY_EXCLUSIVE_TYPES",
            "EXCLUDED_PROPERTIES",
            "EXCLUDED_RESOURCES"
          ],
          "description": "The type of this warning. For more information, see Resolve write-only properties in the CloudFormation User Guide. MUTUALLY_EXCLUSIVE_PROPERTIES - The resource requires mutually-exclusive write-only properties. The IaC generator selects one set of mutually exclusive properties and converts the included properties into parameters. The parameter names have a suffix OneOf and the parameter descriptions indicate that the corresponding property can be replaced with other exclusive properties. UNSUPPORTED_PROPERTIES - Unsupported properties are present in the resource. One example of unsupported pr"
        },
        "Properties": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/WarningProperty"
          },
          "description": "The properties of the resource that are impacted by this warning."
        }
      }
    },
    "WarningProperty": {
      "type": "object",
      "properties": {
        "PropertyPath": {
          "type": "string",
          "description": "The path of the property. For example, if this is for the S3Bucket member of the Code property, the property path would be Code/S3Bucket."
        },
        "Required": {
          "type": "boolean",
          "description": "If true, the specified property is required."
        },
        "Description": {
          "type": "string",
          "description": "The description of the property from the resource provider schema."
        }
      }
    }
  }
}