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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 .
  • diaInstanceId - The ID of the instance.
  • diaAttribute - The instance attribute. Note: The enaSupport attribute is not supported at this time.

data DescribeInstanceAttribute Source #

Contains the parameters for DescribeInstanceAttribute.

See: describeInstanceAttribute smart constructor.

Instances

Eq DescribeInstanceAttribute Source # 
Data DescribeInstanceAttribute Source # 

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 # 
Show DescribeInstanceAttribute Source # 
Generic DescribeInstanceAttribute Source # 
Hashable DescribeInstanceAttribute Source # 
NFData DescribeInstanceAttribute Source # 
AWSRequest DescribeInstanceAttribute Source # 
ToPath DescribeInstanceAttribute Source # 
ToHeaders DescribeInstanceAttribute Source # 
ToQuery DescribeInstanceAttribute Source # 
type Rep DescribeInstanceAttribute Source # 
type Rep DescribeInstanceAttribute = D1 (MetaData "DescribeInstanceAttribute" "Network.AWS.EC2.DescribeInstanceAttribute" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" False) (C1 (MetaCons "DescribeInstanceAttribute'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_diaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_diaInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_diaAttribute") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InstanceAttributeName)))))
type Rs DescribeInstanceAttribute Source # 

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 # 
Data DescribeInstanceAttributeResponse Source # 

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 # 
Show DescribeInstanceAttributeResponse Source # 
Generic DescribeInstanceAttributeResponse Source # 
NFData DescribeInstanceAttributeResponse Source # 
type Rep DescribeInstanceAttributeResponse Source # 
type Rep DescribeInstanceAttributeResponse = D1 (MetaData "DescribeInstanceAttributeResponse" "Network.AWS.EC2.DescribeInstanceAttribute" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" False) (C1 (MetaCons "DescribeInstanceAttributeResponse'" PrefixI True) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_drsInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_drsGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [GroupIdentifier])))) ((:*:) (S1 (MetaSel (Just Symbol "_drsEnaSupport") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeBooleanValue))) (S1 (MetaSel (Just Symbol "_drsSourceDestCheck") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeBooleanValue))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_drsDisableAPITermination") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeBooleanValue))) (S1 (MetaSel (Just Symbol "_drsRAMDiskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue)))) ((:*:) (S1 (MetaSel (Just Symbol "_drsKernelId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue))) (S1 (MetaSel (Just Symbol "_drsRootDeviceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue)))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_drsInstanceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue))) (S1 (MetaSel (Just Symbol "_drsSRIOVNetSupport") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue)))) ((:*:) (S1 (MetaSel (Just Symbol "_drsEBSOptimized") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeBooleanValue))) (S1 (MetaSel (Just Symbol "_drsUserData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_drsInstanceInitiatedShutdownBehavior") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AttributeValue))) (S1 (MetaSel (Just Symbol "_drsProductCodes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ProductCode])))) ((:*:) (S1 (MetaSel (Just Symbol "_drsBlockDeviceMappings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [InstanceBlockDeviceMapping]))) (S1 (MetaSel (Just Symbol "_drsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))))

Response Lenses

drsGroups :: Lens' DescribeInstanceAttributeResponse [GroupIdentifier] Source #

The security groups associated with the instance.

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

Indicates whether enhanced networking with ENA is enabled.

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

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

drsDisableAPITermination :: 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.

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

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

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

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

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

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

drsInstanceInitiatedShutdownBehavior :: 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).