amazonka-ec2-1.6.0: 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.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.

This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway .

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 Source #

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: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway . Alternatively, use the all-current option to include all resource types that are currently within their opt-in period for longer IDs.
  • mifUseLongIds - Indicate whether the resource should use longer IDs (17-character IDs).

data ModifyIdFormat Source #

Contains the parameters of ModifyIdFormat.

See: modifyIdFormat smart constructor.

Instances

Eq ModifyIdFormat Source # 
Data ModifyIdFormat Source # 

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 Source # 
Show ModifyIdFormat Source # 
Generic ModifyIdFormat Source # 

Associated Types

type Rep ModifyIdFormat :: * -> * #

Hashable ModifyIdFormat Source # 
NFData ModifyIdFormat Source # 

Methods

rnf :: ModifyIdFormat -> () #

AWSRequest ModifyIdFormat Source # 
ToHeaders ModifyIdFormat Source # 
ToPath ModifyIdFormat Source # 
ToQuery ModifyIdFormat Source # 
type Rep ModifyIdFormat Source # 
type Rep ModifyIdFormat = D1 * (MetaData "ModifyIdFormat" "Network.AWS.EC2.ModifyIdFormat" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" 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 Source # 

Request Lenses

mifResource :: Lens' ModifyIdFormat Text Source #

The type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway . Alternatively, use the all-current option to include all resource types that are currently within their opt-in period for longer IDs.

mifUseLongIds :: Lens' ModifyIdFormat Bool Source #

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

Destructuring the Response

modifyIdFormatResponse :: ModifyIdFormatResponse Source #

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

data ModifyIdFormatResponse Source #

See: modifyIdFormatResponse smart constructor.

Instances

Eq ModifyIdFormatResponse Source # 
Data ModifyIdFormatResponse Source # 

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 Source # 
Show ModifyIdFormatResponse Source # 
Generic ModifyIdFormatResponse Source # 
NFData ModifyIdFormatResponse Source # 

Methods

rnf :: ModifyIdFormatResponse -> () #

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