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.

Returns metadata about a query, including query run time in milliseconds, number of events scanned and matched, and query status. If the query results were delivered to an S3 bucket, the response also provides the S3 URI and the delivery status.

You must specify either a QueryID or a QueryAlias. Specifying the QueryAlias parameter returns information about the last query run for the alias.

Note:

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

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

Syntax

C#
public virtual DescribeQueryResponse DescribeQuery(
         DescribeQueryRequest request
)

Parameters

request
Type: Amazon.CloudTrail.Model.DescribeQueryRequest

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

Return Value


The response from the DescribeQuery service method, as returned by CloudTrail.

Exceptions

ExceptionCondition
EventDataStoreARNInvalidException The specified event data store ARN is not valid or does not map to an event data store in your account.
EventDataStoreNotFoundException The specified event data store was not found.
InactiveEventDataStoreException The event data store is inactive.
InvalidParameterException The request includes a parameter that is not valid.
NoManagementAccountSLRExistsException This exception is thrown when the management account does not have a service-linked role.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
QueryIdNotFoundException The query ID does not exist or does not map to a query.
UnsupportedOperationException This exception is thrown when the requested operation is not supported.

Version Information

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

See Also