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 |
Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time.
AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public.
The SriovNetSupport enhanced networking attribute cannot be changed using this command. Instead, enable SriovNetSupport on an instance and create an AMI from the instance. This will result in an image with SriovNetSupport enabled.
- modifyImageAttribute :: Text -> ModifyImageAttribute
- data ModifyImageAttribute
- miaAttribute :: Lens' ModifyImageAttribute (Maybe Text)
- miaUserIds :: Lens' ModifyImageAttribute [Text]
- miaUserGroups :: Lens' ModifyImageAttribute [Text]
- miaValue :: Lens' ModifyImageAttribute (Maybe Text)
- miaLaunchPermission :: Lens' ModifyImageAttribute (Maybe LaunchPermissionModifications)
- miaOperationType :: Lens' ModifyImageAttribute (Maybe OperationType)
- miaProductCodes :: Lens' ModifyImageAttribute [Text]
- miaDescription :: Lens' ModifyImageAttribute (Maybe AttributeValue)
- miaDryRun :: Lens' ModifyImageAttribute (Maybe Bool)
- miaImageId :: Lens' ModifyImageAttribute Text
- modifyImageAttributeResponse :: ModifyImageAttributeResponse
- data ModifyImageAttributeResponse
Creating a Request
Creates a value of ModifyImageAttribute
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ModifyImageAttribute Source #
Contains the parameters for ModifyImageAttribute.
See: modifyImageAttribute
smart constructor.
Request Lenses
miaAttribute :: Lens' ModifyImageAttribute (Maybe Text) Source #
The name of the attribute to modify.
miaUserIds :: Lens' ModifyImageAttribute [Text] Source #
One or more AWS account IDs. This is only valid when modifying the launchPermission
attribute.
miaUserGroups :: Lens' ModifyImageAttribute [Text] Source #
One or more user groups. This is only valid when modifying the launchPermission
attribute.
miaValue :: Lens' ModifyImageAttribute (Maybe Text) Source #
The value of the attribute being modified. This is only valid when modifying the description
attribute.
miaLaunchPermission :: Lens' ModifyImageAttribute (Maybe LaunchPermissionModifications) Source #
A launch permission modification.
miaOperationType :: Lens' ModifyImageAttribute (Maybe OperationType) Source #
The operation type.
miaProductCodes :: Lens' ModifyImageAttribute [Text] Source #
One or more product codes. After you add a product code to an AMI, it can't be removed. This is only valid when modifying the productCodes
attribute.
miaDescription :: Lens' ModifyImageAttribute (Maybe AttributeValue) Source #
A description for the AMI.
miaDryRun :: Lens' ModifyImageAttribute (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
.
miaImageId :: Lens' ModifyImageAttribute Text Source #
The ID of the AMI.
Destructuring the Response
modifyImageAttributeResponse :: ModifyImageAttributeResponse Source #
Creates a value of ModifyImageAttributeResponse
with the minimum fields required to make a request.
data ModifyImageAttributeResponse Source #
See: modifyImageAttributeResponse
smart constructor.