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

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 #

Contains the parameters for ModifyVpcTenancy.

See: modifyVPCTenancy smart constructor.

Instances

Eq ModifyVPCTenancy # 
Data 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 # 
Show ModifyVPCTenancy # 
Generic ModifyVPCTenancy # 
Hashable ModifyVPCTenancy # 
NFData ModifyVPCTenancy # 

Methods

rnf :: ModifyVPCTenancy -> () #

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

Request Lenses

mvtDryRun :: Lens' ModifyVPCTenancy (Maybe Bool) #

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 :: Lens' ModifyVPCTenancy Text #

The ID of the VPC.

mvtInstanceTenancy :: Lens' ModifyVPCTenancy VPCTenancy #

The instance tenancy attribute for the VPC.

Destructuring the Response

modifyVPCTenancyResponse #

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 #

Contains the output of ModifyVpcTenancy.

See: modifyVPCTenancyResponse smart constructor.

Instances

Eq ModifyVPCTenancyResponse # 
Data ModifyVPCTenancyResponse # 

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 # 
Show ModifyVPCTenancyResponse # 
Generic ModifyVPCTenancyResponse # 
NFData ModifyVPCTenancyResponse # 
type Rep ModifyVPCTenancyResponse # 
type Rep ModifyVPCTenancyResponse = D1 * (MetaData "ModifyVPCTenancyResponse" "Network.AWS.EC2.ModifyVPCTenancy" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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) #

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

mvtrsResponseStatus :: Lens' ModifyVPCTenancyResponse Int #

  • - | The response status code.