amazonka-ec2-1.6.1: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.ModifyImageAttribute

Contents

Description

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

Creating a Request

modifyImageAttribute Source #

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 are description , launchPermission , and productCodes .
  • miaUserIds - One or more AWS account IDs. This parameter can be used only when the Attribute parameter is launchPermission .
  • miaUserGroups - One or more user groups. This parameter can be used only when the Attribute parameter is launchPermission .
  • miaValue - The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description or productCodes .
  • miaLaunchPermission - A new launch permission for the AMI.
  • miaOperationType - The operation type. This parameter can be used only when the Attribute parameter is launchPermission .
  • 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 is DryRunOperation . Otherwise, it is UnauthorizedOperation .
  • miaImageId - The ID of the AMI.

data ModifyImageAttribute Source #

Contains the parameters for ModifyImageAttribute.

See: modifyImageAttribute smart constructor.

Instances
Eq ModifyImageAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

Data ModifyImageAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ModifyImageAttribute -> c ModifyImageAttribute #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ModifyImageAttribute #

toConstr :: ModifyImageAttribute -> Constr #

dataTypeOf :: ModifyImageAttribute -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ModifyImageAttribute) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ModifyImageAttribute) #

gmapT :: (forall b. Data b => b -> b) -> ModifyImageAttribute -> ModifyImageAttribute #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ModifyImageAttribute -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ModifyImageAttribute -> r #

gmapQ :: (forall d. Data d => d -> u) -> ModifyImageAttribute -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ModifyImageAttribute -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ModifyImageAttribute -> m ModifyImageAttribute #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyImageAttribute -> m ModifyImageAttribute #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyImageAttribute -> m ModifyImageAttribute #

Read ModifyImageAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

Show ModifyImageAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

Generic ModifyImageAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

Associated Types

type Rep ModifyImageAttribute :: Type -> Type #

Hashable ModifyImageAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

AWSRequest ModifyImageAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

Associated Types

type Rs ModifyImageAttribute :: Type #

ToHeaders ModifyImageAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

ToPath ModifyImageAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

ToQuery ModifyImageAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

NFData ModifyImageAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

Methods

rnf :: ModifyImageAttribute -> () #

type Rep ModifyImageAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

type Rs ModifyImageAttribute Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

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 .

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.

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 .

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
Eq ModifyImageAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

Data ModifyImageAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ModifyImageAttributeResponse -> c ModifyImageAttributeResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ModifyImageAttributeResponse #

toConstr :: ModifyImageAttributeResponse -> Constr #

dataTypeOf :: ModifyImageAttributeResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ModifyImageAttributeResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ModifyImageAttributeResponse) #

gmapT :: (forall b. Data b => b -> b) -> ModifyImageAttributeResponse -> ModifyImageAttributeResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ModifyImageAttributeResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ModifyImageAttributeResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ModifyImageAttributeResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ModifyImageAttributeResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ModifyImageAttributeResponse -> m ModifyImageAttributeResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyImageAttributeResponse -> m ModifyImageAttributeResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ModifyImageAttributeResponse -> m ModifyImageAttributeResponse #

Read ModifyImageAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

Show ModifyImageAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

Generic ModifyImageAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

Associated Types

type Rep ModifyImageAttributeResponse :: Type -> Type #

NFData ModifyImageAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

type Rep ModifyImageAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyImageAttribute

type Rep ModifyImageAttributeResponse = D1 (MetaData "ModifyImageAttributeResponse" "Network.AWS.EC2.ModifyImageAttribute" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ModifyImageAttributeResponse'" PrefixI False) (U1 :: Type -> Type))