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

Contents

Description

Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Valid attribute values are: instanceType | kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck | groupSet | ebsOptimized | sriovNetSupport

Synopsis

Creating a Request

describeInstanceAttribute Source #

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

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

  • diaDryRun - Checks whether you have the required permissions for the action, 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 .
  • diaAttribute - The instance attribute. Note: The enaSupport attribute is not supported at this time.
  • diaInstanceId - The ID of the instance.

data DescribeInstanceAttribute Source #

Contains the parameters for DescribeInstanceAttribute.

See: describeInstanceAttribute smart constructor.

Instances
Eq DescribeInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

Data DescribeInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

Methods

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

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

toConstr :: DescribeInstanceAttribute -> Constr #

dataTypeOf :: DescribeInstanceAttribute -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

Show DescribeInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

Generic DescribeInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

Associated Types

type Rep DescribeInstanceAttribute :: Type -> Type #

Hashable DescribeInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

AWSRequest DescribeInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

Associated Types

type Rs DescribeInstanceAttribute :: Type #

ToHeaders DescribeInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

ToPath DescribeInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

ToQuery DescribeInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

NFData DescribeInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

type Rep DescribeInstanceAttribute Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

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

Defined in Network.AWS.EC2.DescribeInstanceAttribute

Request Lenses

diaDryRun :: Lens' DescribeInstanceAttribute (Maybe Bool) Source #

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

diaAttribute :: Lens' DescribeInstanceAttribute InstanceAttributeName Source #

The instance attribute. Note: The enaSupport attribute is not supported at this time.

Destructuring the Response

describeInstanceAttributeResponse Source #

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

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

data DescribeInstanceAttributeResponse Source #

Describes an instance attribute.

See: describeInstanceAttributeResponse smart constructor.

Instances
Eq DescribeInstanceAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

Data DescribeInstanceAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

Methods

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

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

toConstr :: DescribeInstanceAttributeResponse -> Constr #

dataTypeOf :: DescribeInstanceAttributeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeInstanceAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

Show DescribeInstanceAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

Generic DescribeInstanceAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

Associated Types

type Rep DescribeInstanceAttributeResponse :: Type -> Type #

NFData DescribeInstanceAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

type Rep DescribeInstanceAttributeResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeInstanceAttribute

type Rep DescribeInstanceAttributeResponse = D1 (MetaData "DescribeInstanceAttributeResponse" "Network.AWS.EC2.DescribeInstanceAttribute" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DescribeInstanceAttributeResponse'" PrefixI True) ((((S1 (MetaSel (Just "_desrsInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_desrsGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [GroupIdentifier]))) :*: (S1 (MetaSel (Just "_desrsEnaSupport") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeBooleanValue)) :*: S1 (MetaSel (Just "_desrsSourceDestCheck") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeBooleanValue)))) :*: ((S1 (MetaSel (Just "_desrsDisableAPITermination") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeBooleanValue)) :*: S1 (MetaSel (Just "_desrsRAMDiskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue))) :*: (S1 (MetaSel (Just "_desrsKernelId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue)) :*: S1 (MetaSel (Just "_desrsRootDeviceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue))))) :*: (((S1 (MetaSel (Just "_desrsInstanceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue)) :*: S1 (MetaSel (Just "_desrsSRIOVNetSupport") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue))) :*: (S1 (MetaSel (Just "_desrsEBSOptimized") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeBooleanValue)) :*: S1 (MetaSel (Just "_desrsUserData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue)))) :*: ((S1 (MetaSel (Just "_desrsInstanceInitiatedShutdownBehavior") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue)) :*: S1 (MetaSel (Just "_desrsProductCodes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ProductCode]))) :*: (S1 (MetaSel (Just "_desrsBlockDeviceMappings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [InstanceBlockDeviceMapping])) :*: S1 (MetaSel (Just "_desrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))

Response Lenses

desrsGroups :: Lens' DescribeInstanceAttributeResponse [GroupIdentifier] Source #

The security groups associated with the instance.

desrsEnaSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) Source #

Indicates whether enhanced networking with ENA is enabled.

desrsSourceDestCheck :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) Source #

Indicates whether source/destination checking is enabled. A value of true means that checking is enabled, and false means that checking is disabled. This value must be false for a NAT instance to perform NAT.

desrsDisableAPITermination :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) Source #

If the value is true , you can't terminate the instance through the Amazon EC2 console, CLI, or API; otherwise, you can.

desrsRootDeviceName :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #

The device name of the root device volume (for example, devsda1 ).

desrsSRIOVNetSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #

Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

desrsEBSOptimized :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) Source #

Indicates whether the instance is optimized for Amazon EBS I/O.

desrsInstanceInitiatedShutdownBehavior :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) Source #

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).