| 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 |
Network.AWS.EC2.ModifyImageAttribute
Description
Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time.
- 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
Arguments
| :: Text | |
| -> ModifyImageAttribute |
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:
miaAttribute- The name of the attribute to modify.miaUserIds- One or more AWS account IDs. This is only valid when modifying thelaunchPermissionattribute.miaUserGroups- One or more user groups. This is only valid when modifying thelaunchPermissionattribute.miaValue- The value of the attribute being modified. This is only valid when modifying thedescriptionattribute.miaLaunchPermission- A launch permission modification.miaOperationType- The operation type.miaProductCodes- 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 theproductCodesattribute.miaDescription- A description for the AMI.miaDryRun- 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 isDryRunOperation. Otherwise, it isUnauthorizedOperation.miaImageId- The ID of the AMI.
data ModifyImageAttribute Source #
Contains the parameters for ModifyImageAttribute.
See: modifyImageAttribute smart constructor.
Instances
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.
Instances