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.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 .
  • diaAttribute - The instance attribute. Note: The enaSupport attribute is not supported at this time.
  • diaInstanceId - The ID of the instance.

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 # 
ToHeaders DescribeInstanceAttribute # 
ToPath DescribeInstanceAttribute # 
ToQuery DescribeInstanceAttribute # 
type Rep DescribeInstanceAttribute # 
type Rep DescribeInstanceAttribute = D1 * (MetaData "DescribeInstanceAttribute" "Network.AWS.EC2.DescribeInstanceAttribute" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "DescribeInstanceAttribute'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_diaDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_diaAttribute") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * InstanceAttributeName)) (S1 * (MetaSel (Just Symbol "_diaInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
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.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "DescribeInstanceAttributeResponse'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_desrsInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_desrsGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [GroupIdentifier])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_desrsEnaSupport") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AttributeBooleanValue))) (S1 * (MetaSel (Just Symbol "_desrsSourceDestCheck") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AttributeBooleanValue))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_desrsDisableAPITermination") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AttributeBooleanValue))) (S1 * (MetaSel (Just Symbol "_desrsRAMDiskId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AttributeValue)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_desrsKernelId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AttributeValue))) (S1 * (MetaSel (Just Symbol "_desrsRootDeviceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AttributeValue)))))) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_desrsInstanceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AttributeValue))) (S1 * (MetaSel (Just Symbol "_desrsSRIOVNetSupport") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AttributeValue)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_desrsEBSOptimized") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AttributeBooleanValue))) (S1 * (MetaSel (Just Symbol "_desrsUserData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AttributeValue))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_desrsInstanceInitiatedShutdownBehavior") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AttributeValue))) (S1 * (MetaSel (Just Symbol "_desrsProductCodes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [ProductCode])))) ((:*:) * (S1 * (MetaSel (Just Symbol "_desrsBlockDeviceMappings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [InstanceBlockDeviceMapping]))) (S1 * (MetaSel (Just Symbol "_desrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))))

Response Lenses

desrsGroups :: Lens' DescribeInstanceAttributeResponse [GroupIdentifier] #

The security groups associated with the instance.

desrsEnaSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) #

Indicates whether enhanced networking with ENA is enabled.

desrsSourceDestCheck :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) #

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

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

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

desrsSRIOVNetSupport :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeValue) #

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

desrsEBSOptimized :: Lens' DescribeInstanceAttributeResponse (Maybe AttributeBooleanValue) #

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

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