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

Defined in Network.AWS.EC2.ModifyVPCTenancy

Data ModifyVPCTenancy Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

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

Defined in Network.AWS.EC2.ModifyVPCTenancy

Show ModifyVPCTenancy Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

Generic ModifyVPCTenancy Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

Associated Types

type Rep ModifyVPCTenancy :: Type -> Type #

Hashable ModifyVPCTenancy Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

AWSRequest ModifyVPCTenancy Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

Associated Types

type Rs ModifyVPCTenancy :: Type #

ToHeaders ModifyVPCTenancy Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

ToPath ModifyVPCTenancy Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

ToQuery ModifyVPCTenancy Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

NFData ModifyVPCTenancy Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

Methods

rnf :: ModifyVPCTenancy -> () #

type Rep ModifyVPCTenancy Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

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

Defined in Network.AWS.EC2.ModifyVPCTenancy

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

Defined in Network.AWS.EC2.ModifyVPCTenancy

Data ModifyVPCTenancyResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

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

Defined in Network.AWS.EC2.ModifyVPCTenancy

Show ModifyVPCTenancyResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

Generic ModifyVPCTenancyResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

Associated Types

type Rep ModifyVPCTenancyResponse :: Type -> Type #

NFData ModifyVPCTenancyResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

type Rep ModifyVPCTenancyResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyVPCTenancy

type Rep ModifyVPCTenancyResponse = D1 (MetaData "ModifyVPCTenancyResponse" "Network.AWS.EC2.ModifyVPCTenancy" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ModifyVPCTenancyResponse'" PrefixI True) (S1 (MetaSel (Just "_mvtrsReturnValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_mvtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

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

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