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

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

Network.AWS.EC2.ModifyIdFormat

Contents

Description

Modifies the ID format for the specified resource on a per-region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created. The following resource types support longer IDs: instance | reservation | snapshot | volume .

This setting applies to the IAM user who makes the request; it does not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user. If you're using this action as the root user, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide .

Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

Synopsis

Creating a Request

modifyIdFormat #

Creates a value of ModifyIdFormat with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • mifResource - The type of resource: instance | reservation | snapshot | volume
  • mifUseLongIds - Indicate whether the resource should use longer IDs (17-character IDs).

data ModifyIdFormat #

Contains the parameters of ModifyIdFormat.

See: modifyIdFormat smart constructor.

Instances

Eq ModifyIdFormat # 
Data ModifyIdFormat # 

Methods

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

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

toConstr :: ModifyIdFormat -> Constr #

dataTypeOf :: ModifyIdFormat -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyIdFormat # 
Show ModifyIdFormat # 
Generic ModifyIdFormat # 

Associated Types

type Rep ModifyIdFormat :: * -> * #

Hashable ModifyIdFormat # 
NFData ModifyIdFormat # 

Methods

rnf :: ModifyIdFormat -> () #

AWSRequest ModifyIdFormat # 
ToQuery ModifyIdFormat # 
ToPath ModifyIdFormat # 
ToHeaders ModifyIdFormat # 
type Rep ModifyIdFormat # 
type Rep ModifyIdFormat = D1 (MetaData "ModifyIdFormat" "Network.AWS.EC2.ModifyIdFormat" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "ModifyIdFormat'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mifResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_mifUseLongIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))))
type Rs ModifyIdFormat # 

Request Lenses

mifResource :: Lens' ModifyIdFormat Text #

The type of resource: instance | reservation | snapshot | volume

mifUseLongIds :: Lens' ModifyIdFormat Bool #

Indicate whether the resource should use longer IDs (17-character IDs).

Destructuring the Response

modifyIdFormatResponse :: ModifyIdFormatResponse #

Creates a value of ModifyIdFormatResponse with the minimum fields required to make a request.

data ModifyIdFormatResponse #

See: modifyIdFormatResponse smart constructor.

Instances

Eq ModifyIdFormatResponse # 
Data ModifyIdFormatResponse # 

Methods

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

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

toConstr :: ModifyIdFormatResponse -> Constr #

dataTypeOf :: ModifyIdFormatResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyIdFormatResponse # 
Show ModifyIdFormatResponse # 
Generic ModifyIdFormatResponse # 
NFData ModifyIdFormatResponse # 

Methods

rnf :: ModifyIdFormatResponse -> () #

type Rep ModifyIdFormatResponse # 
type Rep ModifyIdFormatResponse = D1 (MetaData "ModifyIdFormatResponse" "Network.AWS.EC2.ModifyIdFormat" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "ModifyIdFormatResponse'" PrefixI False) U1)