AWS SDK Version 4 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 connection function.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to TestConnectionFunctionAsync.

Namespace: Amazon.CloudFront
Assembly: AWSSDK.CloudFront.dll
Version: 3.x.y.z

Syntax

C#
public abstract TestConnectionFunctionResponse TestConnectionFunction(
         TestConnectionFunctionRequest request
)

Parameters

request
Type: Amazon.CloudFront.Model.TestConnectionFunctionRequest

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

Return Value


The response from the TestConnectionFunction service method, as returned by CloudFront.

Exceptions

ExceptionCondition
EntityNotFoundException The entity was not found.
InvalidArgumentException An argument is invalid.
InvalidIfMatchVersionException The If-Match version is missing or not valid.
PreconditionFailedException The precondition in one or more of the request fields evaluated to false.
TestFunctionFailedException The CloudFront function failed.
UnsupportedOperationException This operation is not supported in this Amazon Web Services Region.

Version Information

.NET Framework:
Supported in: 4.7.2 and newer

See Also