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.
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-ModifyImageAttribute.html
- data ModifyImageAttribute
- modifyImageAttribute :: Text -> ModifyImageAttribute
- miaAttribute :: Lens' ModifyImageAttribute (Maybe Text)
- miaDescription :: Lens' ModifyImageAttribute (Maybe AttributeValue)
- miaDryRun :: Lens' ModifyImageAttribute (Maybe Bool)
- miaImageId :: Lens' ModifyImageAttribute Text
- miaLaunchPermission :: Lens' ModifyImageAttribute (Maybe LaunchPermissionModifications)
- miaOperationType :: Lens' ModifyImageAttribute (Maybe Text)
- miaProductCodes :: Lens' ModifyImageAttribute [Text]
- miaUserGroups :: Lens' ModifyImageAttribute [Text]
- miaUserIds :: Lens' ModifyImageAttribute [Text]
- miaValue :: Lens' ModifyImageAttribute (Maybe Text)
- data ModifyImageAttributeResponse
- modifyImageAttributeResponse :: ModifyImageAttributeResponse
Request
Request constructor
ModifyImageAttribute
constructor.
The fields accessible through corresponding lenses are:
Request lenses
miaAttribute :: Lens' ModifyImageAttribute (Maybe Text) Source
The name of the attribute to modify.
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.
miaLaunchPermission :: Lens' ModifyImageAttribute (Maybe LaunchPermissionModifications) Source
A launch permission modification.
miaOperationType :: Lens' ModifyImageAttribute (Maybe Text) 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.
miaUserGroups :: Lens' ModifyImageAttribute [Text] Source
One or more user groups. This is only valid when modifying the launchPermission
attribute.
miaUserIds :: Lens' ModifyImageAttribute [Text] Source
One or more AWS account IDs. 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.