Safe Haskell | None |
---|---|
Language | Haskell2010 |
Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeImageAttribute.html
- data DescribeImageAttribute
- describeImageAttribute :: Text -> ImageAttributeName -> DescribeImageAttribute
- dia1Attribute :: Lens' DescribeImageAttribute ImageAttributeName
- dia1DryRun :: Lens' DescribeImageAttribute (Maybe Bool)
- dia1ImageId :: Lens' DescribeImageAttribute Text
- data DescribeImageAttributeResponse
- describeImageAttributeResponse :: DescribeImageAttributeResponse
- diarBlockDeviceMappings :: Lens' DescribeImageAttributeResponse [BlockDeviceMapping]
- diarDescription :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue)
- diarImageId :: Lens' DescribeImageAttributeResponse (Maybe Text)
- diarKernelId :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue)
- diarLaunchPermissions :: Lens' DescribeImageAttributeResponse [LaunchPermission]
- diarProductCodes :: Lens' DescribeImageAttributeResponse [ProductCode]
- diarRamdiskId :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue)
- diarSriovNetSupport :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue)
Request
data DescribeImageAttribute Source
Request constructor
DescribeImageAttribute
constructor.
The fields accessible through corresponding lenses are:
Request lenses
dia1Attribute :: 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.
dia1DryRun :: 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
.
dia1ImageId :: Lens' DescribeImageAttribute Text Source
The ID of the AMI.
Response
Response constructor
describeImageAttributeResponse :: DescribeImageAttributeResponse Source
DescribeImageAttributeResponse
constructor.
The fields accessible through corresponding lenses are:
diarBlockDeviceMappings
::
[BlockDeviceMapping
]diarDescription
::
Maybe
AttributeValue
diarImageId
::
Maybe
Text
diarKernelId
::
Maybe
AttributeValue
diarLaunchPermissions
::
[LaunchPermission
]diarProductCodes
::
[ProductCode
]diarRamdiskId
::
Maybe
AttributeValue
diarSriovNetSupport
::
Maybe
AttributeValue
Response lenses
diarBlockDeviceMappings :: Lens' DescribeImageAttributeResponse [BlockDeviceMapping] Source
One or more block device mapping entries.
diarDescription :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue) Source
A description for the AMI.
diarImageId :: Lens' DescribeImageAttributeResponse (Maybe Text) Source
The ID of the AMI.
diarKernelId :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue) Source
The kernel ID.
diarLaunchPermissions :: Lens' DescribeImageAttributeResponse [LaunchPermission] Source
One or more launch permissions.
diarProductCodes :: Lens' DescribeImageAttributeResponse [ProductCode] Source
One or more product codes.
diarRamdiskId :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue) Source
The RAM disk ID.