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.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 # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

Data ModifyIdFormat Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

Show ModifyIdFormat Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

Generic ModifyIdFormat Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

Associated Types

type Rep ModifyIdFormat :: Type -> Type #

Hashable ModifyIdFormat Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

AWSRequest ModifyIdFormat Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

Associated Types

type Rs ModifyIdFormat :: Type #

ToHeaders ModifyIdFormat Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

ToPath ModifyIdFormat Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

ToQuery ModifyIdFormat Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

NFData ModifyIdFormat Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

Methods

rnf :: ModifyIdFormat -> () #

type Rep ModifyIdFormat Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

type Rep ModifyIdFormat = D1 (MetaData "ModifyIdFormat" "Network.AWS.EC2.ModifyIdFormat" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ModifyIdFormat'" PrefixI True) (S1 (MetaSel (Just "_mifResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_mifUseLongIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))
type Rs ModifyIdFormat Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

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 # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

Data ModifyIdFormatResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

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 # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

Show ModifyIdFormatResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

Generic ModifyIdFormatResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

Associated Types

type Rep ModifyIdFormatResponse :: Type -> Type #

NFData ModifyIdFormatResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

Methods

rnf :: ModifyIdFormatResponse -> () #

type Rep ModifyIdFormatResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyIdFormat

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