1. Packages
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. cloudformation
  6. getGeneratedTemplate

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.74.1
published on Monday, Aug 3, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.74.1
published on Monday, Aug 3, 2026 by Pulumi

    Creates a generated template from existing resources using the CloudFormation IaC Generator.

    Using getGeneratedTemplate

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getGeneratedTemplate(args: GetGeneratedTemplateArgs, opts?: InvokeOptions): Promise<GetGeneratedTemplateResult>
    function getGeneratedTemplateOutput(args: GetGeneratedTemplateOutputArgs, opts?: InvokeOptions): Output<GetGeneratedTemplateResult>
    def get_generated_template(generated_template_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetGeneratedTemplateResult
    def get_generated_template_output(generated_template_id: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetGeneratedTemplateResult]
    func LookupGeneratedTemplate(ctx *Context, args *LookupGeneratedTemplateArgs, opts ...InvokeOption) (*LookupGeneratedTemplateResult, error)
    func LookupGeneratedTemplateOutput(ctx *Context, args *LookupGeneratedTemplateOutputArgs, opts ...InvokeOption) LookupGeneratedTemplateResultOutput

    > Note: This function is named LookupGeneratedTemplate in the Go SDK.

    public static class GetGeneratedTemplate 
    {
        public static Task<GetGeneratedTemplateResult> InvokeAsync(GetGeneratedTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetGeneratedTemplateResult> Invoke(GetGeneratedTemplateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGeneratedTemplateResult> getGeneratedTemplate(GetGeneratedTemplateArgs args, InvokeOptions options)
    public static Output<GetGeneratedTemplateResult> getGeneratedTemplate(GetGeneratedTemplateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:cloudformation:getGeneratedTemplate
      arguments:
        # arguments dictionary
    data "aws-native_cloudformation_get_generated_template" "name" {
        # arguments
    }

    The following arguments are supported:

    GeneratedTemplateId string
    The Amazon Resource Name (ARN) of the generated template.
    GeneratedTemplateId string
    The Amazon Resource Name (ARN) of the generated template.
    generated_template_id string
    The Amazon Resource Name (ARN) of the generated template.
    generatedTemplateId String
    The Amazon Resource Name (ARN) of the generated template.
    generatedTemplateId string
    The Amazon Resource Name (ARN) of the generated template.
    generated_template_id str
    The Amazon Resource Name (ARN) of the generated template.
    generatedTemplateId String
    The Amazon Resource Name (ARN) of the generated template.

    getGeneratedTemplate Result

    The following output properties are available:

    CreationTime string
    The time the generated template was created.
    GeneratedTemplateId string
    The Amazon Resource Name (ARN) of the generated template.
    GeneratedTemplateName string
    The name assigned to the generated template.
    LastUpdatedTime string
    The time the generated template was last updated.
    Progress Pulumi.AwsNative.CloudFormation.Outputs.GeneratedTemplateTemplateProgress
    Status Pulumi.AwsNative.CloudFormation.GeneratedTemplateStatus
    The status of the template generation.
    TemplateConfiguration Pulumi.AwsNative.CloudFormation.Outputs.GeneratedTemplateTemplateConfiguration
    TotalWarnings int
    The number of warnings generated for this template.
    CreationTime string
    The time the generated template was created.
    GeneratedTemplateId string
    The Amazon Resource Name (ARN) of the generated template.
    GeneratedTemplateName string
    The name assigned to the generated template.
    LastUpdatedTime string
    The time the generated template was last updated.
    Progress GeneratedTemplateTemplateProgress
    Status GeneratedTemplateStatus
    The status of the template generation.
    TemplateConfiguration GeneratedTemplateTemplateConfiguration
    TotalWarnings int
    The number of warnings generated for this template.
    creation_time string
    The time the generated template was created.
    generated_template_id string
    The Amazon Resource Name (ARN) of the generated template.
    generated_template_name string
    The name assigned to the generated template.
    last_updated_time string
    The time the generated template was last updated.
    progress object
    status "CREATE_PENDING" | "UPDATE_PENDING" | "DELETE_PENDING" | "CREATE_IN_PROGRESS" | "UPDATE_IN_PROGRESS" | "DELETE_IN_PROGRESS" | "FAILED" | "COMPLETE"
    The status of the template generation.
    template_configuration object
    total_warnings number
    The number of warnings generated for this template.
    creationTime String
    The time the generated template was created.
    generatedTemplateId String
    The Amazon Resource Name (ARN) of the generated template.
    generatedTemplateName String
    The name assigned to the generated template.
    lastUpdatedTime String
    The time the generated template was last updated.
    progress GeneratedTemplateTemplateProgress
    status GeneratedTemplateStatus
    The status of the template generation.
    templateConfiguration GeneratedTemplateTemplateConfiguration
    totalWarnings Integer
    The number of warnings generated for this template.
    creationTime string
    The time the generated template was created.
    generatedTemplateId string
    The Amazon Resource Name (ARN) of the generated template.
    generatedTemplateName string
    The name assigned to the generated template.
    lastUpdatedTime string
    The time the generated template was last updated.
    progress GeneratedTemplateTemplateProgress
    status GeneratedTemplateStatus
    The status of the template generation.
    templateConfiguration GeneratedTemplateTemplateConfiguration
    totalWarnings number
    The number of warnings generated for this template.
    creation_time str
    The time the generated template was created.
    generated_template_id str
    The Amazon Resource Name (ARN) of the generated template.
    generated_template_name str
    The name assigned to the generated template.
    last_updated_time str
    The time the generated template was last updated.
    progress GeneratedTemplateTemplateProgress
    status GeneratedTemplateStatus
    The status of the template generation.
    template_configuration GeneratedTemplateTemplateConfiguration
    total_warnings int
    The number of warnings generated for this template.
    creationTime String
    The time the generated template was created.
    generatedTemplateId String
    The Amazon Resource Name (ARN) of the generated template.
    generatedTemplateName String
    The name assigned to the generated template.
    lastUpdatedTime String
    The time the generated template was last updated.
    progress Property Map
    status "CREATE_PENDING" | "UPDATE_PENDING" | "DELETE_PENDING" | "CREATE_IN_PROGRESS" | "UPDATE_IN_PROGRESS" | "DELETE_IN_PROGRESS" | "FAILED" | "COMPLETE"
    The status of the template generation.
    templateConfiguration Property Map
    totalWarnings Number
    The number of warnings generated for this template.

    Supporting Types

    GeneratedTemplateStatus

    GeneratedTemplateTemplateConfiguration

    DeletionPolicy Pulumi.AwsNative.CloudFormation.GeneratedTemplateTemplateConfigurationDeletionPolicy
    The DeletionPolicy assigned to resources in the generated template.
    UpdateReplacePolicy Pulumi.AwsNative.CloudFormation.GeneratedTemplateTemplateConfigurationUpdateReplacePolicy
    The UpdateReplacePolicy assigned to resources in the generated template.
    DeletionPolicy GeneratedTemplateTemplateConfigurationDeletionPolicy
    The DeletionPolicy assigned to resources in the generated template.
    UpdateReplacePolicy GeneratedTemplateTemplateConfigurationUpdateReplacePolicy
    The UpdateReplacePolicy assigned to resources in the generated template.
    deletion_policy "DELETE" | "RETAIN"
    The DeletionPolicy assigned to resources in the generated template.
    update_replace_policy "DELETE" | "RETAIN"
    The UpdateReplacePolicy assigned to resources in the generated template.
    deletionPolicy GeneratedTemplateTemplateConfigurationDeletionPolicy
    The DeletionPolicy assigned to resources in the generated template.
    updateReplacePolicy GeneratedTemplateTemplateConfigurationUpdateReplacePolicy
    The UpdateReplacePolicy assigned to resources in the generated template.
    deletionPolicy GeneratedTemplateTemplateConfigurationDeletionPolicy
    The DeletionPolicy assigned to resources in the generated template.
    updateReplacePolicy GeneratedTemplateTemplateConfigurationUpdateReplacePolicy
    The UpdateReplacePolicy assigned to resources in the generated template.
    deletion_policy GeneratedTemplateTemplateConfigurationDeletionPolicy
    The DeletionPolicy assigned to resources in the generated template.
    update_replace_policy GeneratedTemplateTemplateConfigurationUpdateReplacePolicy
    The UpdateReplacePolicy assigned to resources in the generated template.
    deletionPolicy "DELETE" | "RETAIN"
    The DeletionPolicy assigned to resources in the generated template.
    updateReplacePolicy "DELETE" | "RETAIN"
    The UpdateReplacePolicy assigned to resources in the generated template.

    GeneratedTemplateTemplateConfigurationDeletionPolicy

    GeneratedTemplateTemplateConfigurationUpdateReplacePolicy

    GeneratedTemplateTemplateProgress

    ResourcesFailed int
    The number of resources that failed the template generation.
    ResourcesPending int
    The number of resources that are still pending the template generation.
    ResourcesProcessing int
    The number of resources that are in-process for the template generation.
    ResourcesSucceeded int
    The number of resources that succeeded the template generation.
    ResourcesFailed int
    The number of resources that failed the template generation.
    ResourcesPending int
    The number of resources that are still pending the template generation.
    ResourcesProcessing int
    The number of resources that are in-process for the template generation.
    ResourcesSucceeded int
    The number of resources that succeeded the template generation.
    resources_failed number
    The number of resources that failed the template generation.
    resources_pending number
    The number of resources that are still pending the template generation.
    resources_processing number
    The number of resources that are in-process for the template generation.
    resources_succeeded number
    The number of resources that succeeded the template generation.
    resourcesFailed Integer
    The number of resources that failed the template generation.
    resourcesPending Integer
    The number of resources that are still pending the template generation.
    resourcesProcessing Integer
    The number of resources that are in-process for the template generation.
    resourcesSucceeded Integer
    The number of resources that succeeded the template generation.
    resourcesFailed number
    The number of resources that failed the template generation.
    resourcesPending number
    The number of resources that are still pending the template generation.
    resourcesProcessing number
    The number of resources that are in-process for the template generation.
    resourcesSucceeded number
    The number of resources that succeeded the template generation.
    resources_failed int
    The number of resources that failed the template generation.
    resources_pending int
    The number of resources that are still pending the template generation.
    resources_processing int
    The number of resources that are in-process for the template generation.
    resources_succeeded int
    The number of resources that succeeded the template generation.
    resourcesFailed Number
    The number of resources that failed the template generation.
    resourcesPending Number
    The number of resources that are still pending the template generation.
    resourcesProcessing Number
    The number of resources that are in-process for the template generation.
    resourcesSucceeded Number
    The number of resources that succeeded the template generation.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.74.1
    published on Monday, Aug 3, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial