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.DescribeIdFormat

Contents

Description

Describes the ID format settings for your resources on a per-region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

The following resource types support longer IDs: instance | reservation | snapshot | volume .

These settings apply to the IAM user who makes the request; they do not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM 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

describeIdFormat :: DescribeIdFormat #

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

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

  • difResource - The type of resource: instance | reservation | snapshot | volume

data DescribeIdFormat #

Contains the parameters for DescribeIdFormat.

See: describeIdFormat smart constructor.

Instances

Eq DescribeIdFormat # 
Data DescribeIdFormat # 

Methods

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

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

toConstr :: DescribeIdFormat -> Constr #

dataTypeOf :: DescribeIdFormat -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeIdFormat # 
Show DescribeIdFormat # 
Generic DescribeIdFormat # 
Hashable DescribeIdFormat # 
NFData DescribeIdFormat # 

Methods

rnf :: DescribeIdFormat -> () #

AWSRequest DescribeIdFormat # 
ToQuery DescribeIdFormat # 
ToPath DescribeIdFormat # 
ToHeaders DescribeIdFormat # 
type Rep DescribeIdFormat # 
type Rep DescribeIdFormat = D1 (MetaData "DescribeIdFormat" "Network.AWS.EC2.DescribeIdFormat" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" True) (C1 (MetaCons "DescribeIdFormat'" PrefixI True) (S1 (MetaSel (Just Symbol "_difResource") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))
type Rs DescribeIdFormat # 

Request Lenses

difResource :: Lens' DescribeIdFormat (Maybe Text) #

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

Destructuring the Response

describeIdFormatResponse #

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

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

data DescribeIdFormatResponse #

Contains the output of DescribeIdFormat.

See: describeIdFormatResponse smart constructor.

Instances

Eq DescribeIdFormatResponse # 
Data DescribeIdFormatResponse # 

Methods

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

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

toConstr :: DescribeIdFormatResponse -> Constr #

dataTypeOf :: DescribeIdFormatResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeIdFormatResponse # 
Show DescribeIdFormatResponse # 
Generic DescribeIdFormatResponse # 
NFData DescribeIdFormatResponse # 
type Rep DescribeIdFormatResponse # 
type Rep DescribeIdFormatResponse = D1 (MetaData "DescribeIdFormatResponse" "Network.AWS.EC2.DescribeIdFormat" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DescribeIdFormatResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_difrsStatuses") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [IdFormat]))) (S1 (MetaSel (Just Symbol "_difrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

difrsStatuses :: Lens' DescribeIdFormatResponse [IdFormat] #

Information about the ID format for the resource.

difrsResponseStatus :: Lens' DescribeIdFormatResponse Int #

  • - | The response status code.