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.
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginTestType and EndTestType.
Namespace: Amazon.CloudFormation
Assembly: AWSSDK.CloudFormation.dll
Version: 3.x.y.z
public abstract Task<TestTypeResponse> TestTypeAsync( TestTypeRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the TestType service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exception | Condition |
---|---|
CFNRegistryException | An error occurred during a CloudFormation registry operation. |
TypeNotFoundException | The specified extension doesn't exist in the CloudFormation registry. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5