Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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. You can use the Attribute
parameter to specify the attribute or one of the following parameters: Description
, LaunchPermission
, or ProductCode
.
AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public.
To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance and create an AMI from the instance.
Synopsis
- 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:
miaAttribute
- The name of the attribute to modify. The valid values aredescription
,launchPermission
, andproductCodes
.miaUserIds
- One or more AWS account IDs. This parameter can be used only when theAttribute
parameter islaunchPermission
.miaUserGroups
- One or more user groups. This parameter can be used only when theAttribute
parameter islaunchPermission
.miaValue
- The value of the attribute being modified. This parameter can be used only when theAttribute
parameter isdescription
orproductCodes
.miaLaunchPermission
- A new launch permission for the AMI.miaOperationType
- The operation type. This parameter can be used only when theAttribute
parameter islaunchPermission
.miaProductCodes
- One or more DevPay product codes. After you add a product code to an AMI, it can't be removed.miaDescription
- A new 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. The valid values are description
, launchPermission
, and productCodes
.
miaUserIds :: Lens' ModifyImageAttribute [Text] Source #
One or more AWS account IDs. This parameter can be used only when the Attribute
parameter is launchPermission
.
miaUserGroups :: Lens' ModifyImageAttribute [Text] Source #
One or more user groups. This parameter can be used only when the Attribute
parameter is launchPermission
.
miaValue :: Lens' ModifyImageAttribute (Maybe Text) Source #
The value of the attribute being modified. This parameter can be used only when the Attribute
parameter is description
or productCodes
.
miaLaunchPermission :: Lens' ModifyImageAttribute (Maybe LaunchPermissionModifications) Source #
A new launch permission for the AMI.
miaOperationType :: Lens' ModifyImageAttribute (Maybe OperationType) Source #
The operation type. This parameter can be used only when the Attribute
parameter is launchPermission
.
miaProductCodes :: Lens' ModifyImageAttribute [Text] Source #
One or more DevPay product codes. After you add a product code to an AMI, it can't be removed.
miaDescription :: Lens' ModifyImageAttribute (Maybe AttributeValue) Source #
A new 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.