AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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 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.
Once you've initiated testing on an extension using TestType
, you can pass
the returned TypeVersionArn
into DescribeType
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 in the CloudFormation CLI
User Guide.
For .NET Core this operation is only available in asynchronous form. Please refer to TestTypeAsync.
Namespace: Amazon.CloudFormation
Assembly: AWSSDK.CloudFormation.dll
Version: 3.x.y.z
public abstract TestTypeResponse TestType( TestTypeRequest request )
Container for the necessary parameters to execute the TestType service method.
Exception | Condition |
---|---|
CFNRegistryException | An error occurred during a CloudFormation registry operation. |
TypeNotFoundException | The specified extension doesn't exist in the CloudFormation registry. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5