Skip to content

CloudFormationClient.validate_template

rboto-cloudformation==0.4.0 · Service index · Types

Model summary (excerpt): Validates a specified template. CloudFormation first checks if the template is valid JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these checks fail, CloudFormation returns a template validation error.

Install and imports

python -m pip install "rboto[cloudformation]==0.4.0"
from rboto import CloudFormationClient
from rboto_cloudformation.types import (
    ValidateTemplateOutput,
)

Signature

async def validate_template(
    *,
    template_body: str | None = None,
    template_url: str | None = None,
) -> ValidateTemplateOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
template_body No Structure that contains the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. Conditional: You must pass TemplateURL or TemplateBody . If both are passed, only TemplateBody is used.
template_url No The URL of a file that contains the template body. The URL must point to a template (max size: 1 MB) that is located in an Amazon S3 bucket or a Systems Manager document. The location for an Amazon S3 bucket must start with https:// . Conditional: You must pass TemplateURL or TemplateBody . If both are passed, only TemplateBody is used.

Output

ValidateTemplateOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
parameters list[TemplateParameterOutput] | None Always present TemplateParameterOutput
description str | None Always present —
capabilities list[CapabilityOutput] | None Always present CapabilityOutput
capabilities_reason str | None Always present —
declared_transforms list[str] | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

ValidateTemplateOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

No modeled service errors for this operation.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model