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 #

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 #

Contains the parameters for DescribeInstanceAttribute.

See: describeInstanceAttribute smart constructor.

Instances

Eq DescribeInstanceAttribute # 
Data 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 # 
Show DescribeInstanceAttribute # 
Generic DescribeInstanceAttribute # 
Hashable DescribeInstanceAttribute # 
NFData DescribeInstanceAttribute # 
AWSRequest DescribeInstanceAttribute # 
ToQuery DescribeInstanceAttribute # 
ToPath DescribeInstanceAttribute # 
ToHeaders DescribeInstanceAttribute # 
type Rep DescribeInstanceAttribute # 
type Rep DescribeInstanceAttribute = D1 (MetaData "DescribeInstanceAttribute" "Network.AWS.EC2.DescribeInstanceAttribute" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" 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 # 

Request Lenses

diaDryRun :: Lens' DescribeInstanceAttribute (Maybe Bool) #

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 #

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

Destructuring the Response

describeInstanceAttributeResponse #

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 #

Describes an instance attribute.

See: describeInstanceAttributeResponse smart constructor.

Instances

Eq DescribeInstanceAttributeResponse # 
Data DescribeInstanceAttributeResponse # 

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 # 
Show DescribeInstanceAttributeResponse # 
Generic DescribeInstanceAttributeResponse # 
NFData DescribeInstanceAttributeResponse # 
type Rep DescribeInstanceAttributeResponse # 
type Rep DescribeInstanceAttributeResponse = D1 (MetaData "DescribeInstanceAttributeResponse" "Network.AWS.EC2.DescribeInstanceAttribute" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" 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] #

The security groups associated with the instance.

drsEnaSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) #

Indicates whether enhanced networking with ENA is enabled.

drsSourceDestCheck :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) #

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

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

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

drsSRIOVNetSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) #

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

drsEBSOptimized :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) #

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

drsInstanceInitiatedShutdownBehavior :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) #

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