[ AWS CLI Command Reference ](../../index.html)

  * [ Home ](../../index.html)
  * [ User Guide ](https://docs.aws.amazon.com/cli/latest/userguide/)
  * [ Forum ](https://forums.aws.amazon.com/forum.jspa?forumID=150)
  * [ GitHub ](https://github.com/aws/aws-cli)

###  Navigation

  * [ index ](../../genindex.html "General Index")
  * [ next ](update-generated-template.html "update-generated-template") | 
  * [ previous ](stop-stack-set-operation.html "stop-stack-set-operation") | 
  * [ AWS CLI 2.15.40 Command Reference ](../../index.html) » 
  * [ aws ](../index.html) » 
  * [ cloudformation ](index.html) » 

  * [ ← stop-stack-set-operation ](stop-stack-set-operation.html "previous chapter \(use the left arrow\)") / 
  * [ update-generated-template → ](update-generated-template.html "next chapter \(use the right arrow\)")

[ ![Amazon Web Services logo](../../_static/logo.png) ](../../index.html)

###  [ Table of Contents ](../../index.html)

  * test-type 
    * Description 
    * Synopsis 
    * Options 
    * Global Options 
    * Examples 
    * Output 

###  Quick search

Search box  Search

###  Feedback

Did you find this page useful? Do you have a suggestion to improve the
documentation? [ Give us feedback ](https://docs.aws.amazon.com/forms/aws-doc-
feedback?hidden_service_name=AWS%20Command%20Line%20Interface&hidden_guide_name=Reference&topic_url=https%3A%2F%2Fdocs.aws.amazon.com%2Fcli%2Flatest%2Freference/cloudformation/test-
type.html) .  
If you would like to suggest an improvement or fix for the AWS CLI, check out
our [ contributing guide ](https://github.com/aws/aws-
cli/blob/develop/CONTRIBUTING.md) on GitHub.

###  User Guide

First time using the AWS CLI? See the [ User Guide
](https://docs.aws.amazon.com/cli/latest/userguide/) for help getting started.

[ [ aws  ](../index.html#cli-aws) . [ cloudformation  ](index.html#cli-aws-
cloudformation) ]

#  test-type  Â¶

##  Description  Â¶

Tests a registered extension to make sure it meets all necessary requirements
for being published in the CloudFormation registry.

  * For resource types, this includes passing all contracts tests defined for the type. 
  * For modules, this includes determining if the moduleâs model meets all necessary requirements. 

For more information, see [ Testing your public extension prior to publishing
](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-
extension.html#publish-extension-testing) in the _CloudFormation CLI User
Guide_ .

If you donât specify a version, CloudFormation uses the default version of
the extension in your account and Region for testing.

To perform testing, CloudFormation assumes the execution role specified when
the type was registered. For more information, see [ RegisterType
](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html)
.

Once youâve initiated testing on an extension using ` TestType  ` , you can
pass the returned ` TypeVersionArn  ` into [ DescribeType
](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DescribeType.html)
to monitor the current test status and test status description for the
extension.

An extension must have a test status of ` PASSED  ` before it can be
published. For more information, see [ Publishing extensions to make them
available for public use ](https://docs.aws.amazon.com/cloudformation-
cli/latest/userguide/resource-type-publish.html) in the _CloudFormation CLI
User Guide_ .

See also: [ AWS API Documentation
](https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/TestType)

##  Synopsis  Â¶

    
    
      test-type
    [--arn <value>]
    [--type <value>]
    [--type-name <value>]
    [--version-id <value>]
    [--log-delivery-bucket <value>]
    [--cli-input-json | --cli-input-yaml]
    [--generate-cli-skeleton <value>]
    [--debug]
    [--endpoint-url <value>]
    [--no-verify-ssl]
    [--no-paginate]
    [--output <value>]
    [--query <value>]
    [--profile <val