AWS SDK Version 3 for .NET
API Reference

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 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.

Note:

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

Syntax

C#
public abstract TestTypeResponse TestType(
         TestTypeRequest request
)

Parameters

request
Type: Amazon.CloudFormation.Model.TestTypeRequest

Container for the necessary parameters to execute the TestType service method.

Return Value


The response from the TestType service method, as returned by CloudFormation.

Exceptions

ExceptionCondition
CFNRegistryException An error occurred during a CloudFormation registry operation.
TypeNotFoundException The specified extension doesn't exist in the CloudFormation registry.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also