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

Copyright(c) 2013-2017 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.ModifyVPCTenancy

Contents

Description

Modifies the instance tenancy attribute of the specified VPC. You can change the instance tenancy attribute of a VPC to default only. You cannot change the instance tenancy attribute to dedicated .

After you modify the tenancy of the VPC, any new instances that you launch into the VPC have a tenancy of default , unless you specify otherwise during launch. The tenancy of any existing instances in the VPC is not affected.

For more information about Dedicated Instances, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide .

Synopsis

Creating a Request

modifyVPCTenancy Source #

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

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

  • mvtDryRun - Checks whether you have the required permissions for the operation, 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 .
  • mvtVPCId - The ID of the VPC.
  • mvtInstanceTenancy - The instance tenancy attribute for the VPC.

data ModifyVPCTenancy Source #

Contains the parameters for ModifyVpcTenancy.

See: modifyVPCTenancy smart constructor.

Instances

Eq ModifyVPCTenancy Source # 
Data ModifyVPCTenancy Source # 

Methods

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

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

toConstr :: ModifyVPCTenancy -> Constr #

dataTypeOf :: ModifyVPCTenancy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyVPCTenancy Source # 
Show ModifyVPCTenancy Source # 
Generic ModifyVPCTenancy Source # 
Hashable ModifyVPCTenancy Source # 
NFData ModifyVPCTenancy Source # 

Methods

rnf :: ModifyVPCTenancy -> () #

AWSRequest ModifyVPCTenancy Source # 
ToQuery ModifyVPCTenancy Source # 
ToPath ModifyVPCTenancy Source # 
ToHeaders ModifyVPCTenancy Source # 
type Rep ModifyVPCTenancy Source # 
type Rep ModifyVPCTenancy = D1 (MetaData "ModifyVPCTenancy" "Network.AWS.EC2.ModifyVPCTenancy" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "ModifyVPCTenancy'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mvtDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_mvtVPCId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_mvtInstanceTenancy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 VPCTenancy)))))
type Rs ModifyVPCTenancy Source # 

Request Lenses

mvtDryRun :: Lens' ModifyVPCTenancy (Maybe Bool) Source #

Checks whether you have the required permissions for the operation, 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 .

mvtInstanceTenancy :: Lens' ModifyVPCTenancy VPCTenancy Source #

The instance tenancy attribute for the VPC.

Destructuring the Response

modifyVPCTenancyResponse Source #

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

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

data ModifyVPCTenancyResponse Source #

Contains the output of ModifyVpcTenancy.

See: modifyVPCTenancyResponse smart constructor.

Instances

Eq ModifyVPCTenancyResponse Source # 
Data ModifyVPCTenancyResponse Source # 

Methods

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

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

toConstr :: ModifyVPCTenancyResponse -> Constr #

dataTypeOf :: ModifyVPCTenancyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyVPCTenancyResponse Source # 
Show ModifyVPCTenancyResponse Source # 
Generic ModifyVPCTenancyResponse Source # 
NFData ModifyVPCTenancyResponse Source # 
type Rep ModifyVPCTenancyResponse Source # 
type Rep ModifyVPCTenancyResponse = D1 (MetaData "ModifyVPCTenancyResponse" "Network.AWS.EC2.ModifyVPCTenancy" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "ModifyVPCTenancyResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_mvtrsReturnValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_mvtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

mvtrsReturnValue :: Lens' ModifyVPCTenancyResponse (Maybe Bool) Source #

Returns true if the request succeeds; otherwise, returns an error.