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.

Retrieves a resource policy that you created in a PutResourcePolicy request.

Note:

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

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

Syntax

C#
public abstract DescribeResourcePolicyResponse DescribeResourcePolicy(
         DescribeResourcePolicyRequest request
)

Parameters

request
Type: Amazon.NetworkFirewall.Model.DescribeResourcePolicyRequest

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

Return Value


The response from the DescribeResourcePolicy service method, as returned by NetworkFirewall.

Exceptions

ExceptionCondition
InternalServerErrorException Your request is valid, but Network Firewall couldn't perform the operation because of a system problem. Retry your request.
InvalidRequestException The operation failed because of a problem with your request. Examples include: You specified an unsupported parameter name or value. You tried to update a property with a value that isn't among the available types. Your request references an ARN that is malformed, or corresponds to a resource that isn't valid in the context of the request.
ResourceNotFoundException Unable to locate a resource using the parameters that you provided.
ThrottlingException Unable to process the request due to throttling limitations.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also