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.

Gets an image policy.

Note:

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

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

Syntax

C#
public virtual GetImagePolicyResponse GetImagePolicy(
         GetImagePolicyRequest request
)

Parameters

request
Type: Amazon.Imagebuilder.Model.GetImagePolicyRequest

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

Return Value


The response from the GetImagePolicy service method, as returned by Imagebuilder.

Exceptions

ExceptionCondition
CallRateLimitExceededException You have exceeded the permitted request rate for the specific operation.
ForbiddenException You are not authorized to perform the requested operation.
InvalidRequestException You have requested an action that that the service doesn't support.
ResourceNotFoundException At least one of the resources referenced by your request does not exist.
ServiceException This exception is thrown when the service encounters an unrecoverable exception.
ServiceUnavailableException The service is unable to process your request at this time.

Version Information

.NET Framework:
Supported in: 4.7.2 and newer

See Also