Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.
- describeImageAttribute :: Text -> ImageAttributeName -> DescribeImageAttribute
- data DescribeImageAttribute
- diaiDryRun :: Lens' DescribeImageAttribute (Maybe Bool)
- diaiImageId :: Lens' DescribeImageAttribute Text
- diaiAttribute :: Lens' DescribeImageAttribute ImageAttributeName
- describeImageAttributeResponse :: Int -> DescribeImageAttributeResponse
- data DescribeImageAttributeResponse
- diarsLaunchPermissions :: Lens' DescribeImageAttributeResponse [LaunchPermission]
- diarsRAMDiskId :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue)
- diarsKernelId :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue)
- diarsSRIOVNetSupport :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue)
- diarsImageId :: Lens' DescribeImageAttributeResponse (Maybe Text)
- diarsProductCodes :: Lens' DescribeImageAttributeResponse [ProductCode]
- diarsDescription :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue)
- diarsBlockDeviceMappings :: Lens' DescribeImageAttributeResponse [BlockDeviceMapping]
- diarsResponseStatus :: Lens' DescribeImageAttributeResponse Int
Creating a Request
Creates a value of DescribeImageAttribute
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeImageAttribute Source
See: describeImageAttribute
smart constructor.
Request Lenses
diaiDryRun :: Lens' DescribeImageAttribute (Maybe Bool) Source
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
diaiImageId :: Lens' DescribeImageAttribute Text Source
The ID of the AMI.
diaiAttribute :: Lens' DescribeImageAttribute ImageAttributeName Source
The AMI attribute.
Note: Depending on your account privileges, the blockDeviceMapping
attribute may return a AuthFailure
error. If this happens, use
DescribeImages to get information about the block device mapping for
the AMI.
Destructuring the Response
describeImageAttributeResponse Source
Creates a value of DescribeImageAttributeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeImageAttributeResponse Source
Describes an image attribute.
See: describeImageAttributeResponse
smart constructor.
Response Lenses
diarsLaunchPermissions :: Lens' DescribeImageAttributeResponse [LaunchPermission] Source
One or more launch permissions.
diarsRAMDiskId :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue) Source
The RAM disk ID.
diarsKernelId :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue) Source
The kernel ID.
diarsSRIOVNetSupport :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue) Source
Undocumented member.
diarsImageId :: Lens' DescribeImageAttributeResponse (Maybe Text) Source
The ID of the AMI.
diarsProductCodes :: Lens' DescribeImageAttributeResponse [ProductCode] Source
One or more product codes.
diarsDescription :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue) Source
A description for the AMI.
diarsBlockDeviceMappings :: Lens' DescribeImageAttributeResponse [BlockDeviceMapping] Source
One or more block device mapping entries.
diarsResponseStatus :: Lens' DescribeImageAttributeResponse Int Source
The response status code.