amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DescribeImageAttribute

Description

Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.

Synopsis

Creating a Request

data DescribeImageAttribute Source #

Contains the parameters for DescribeImageAttribute.

See: newDescribeImageAttribute smart constructor.

Constructors

DescribeImageAttribute' 

Fields

  • dryRun :: 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.

  • attribute :: ImageAttributeName

    The AMI attribute.

    Note: The blockDeviceMapping attribute is deprecated. Using this attribute returns the Client.AuthFailure error. To get information about the block device mappings for an AMI, use the DescribeImages action.

  • imageId :: Text

    The ID of the AMI.

Instances

Instances details
ToHeaders DescribeImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

ToPath DescribeImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

ToQuery DescribeImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

AWSRequest DescribeImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

Associated Types

type AWSResponse DescribeImageAttribute #

Generic DescribeImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

Associated Types

type Rep DescribeImageAttribute :: Type -> Type #

Read DescribeImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

Show DescribeImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

NFData DescribeImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

Methods

rnf :: DescribeImageAttribute -> () #

Eq DescribeImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

Hashable DescribeImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

type AWSResponse DescribeImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

type Rep DescribeImageAttribute Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

type Rep DescribeImageAttribute = D1 ('MetaData "DescribeImageAttribute" "Amazonka.EC2.DescribeImageAttribute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeImageAttribute'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "attribute") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ImageAttributeName) :*: S1 ('MetaSel ('Just "imageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDescribeImageAttribute Source #

Create a value of DescribeImageAttribute with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dryRun:DescribeImageAttribute', describeImageAttribute_dryRun - 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.

$sel:attribute:DescribeImageAttribute', describeImageAttribute_attribute - The AMI attribute.

Note: The blockDeviceMapping attribute is deprecated. Using this attribute returns the Client.AuthFailure error. To get information about the block device mappings for an AMI, use the DescribeImages action.

DescribeImageAttribute, describeImageAttribute_imageId - The ID of the AMI.

Request Lenses

describeImageAttribute_dryRun :: Lens' DescribeImageAttribute (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.

describeImageAttribute_attribute :: Lens' DescribeImageAttribute ImageAttributeName Source #

The AMI attribute.

Note: The blockDeviceMapping attribute is deprecated. Using this attribute returns the Client.AuthFailure error. To get information about the block device mappings for an AMI, use the DescribeImages action.

Destructuring the Response

data DescribeImageAttributeResponse Source #

Describes an image attribute.

See: newDescribeImageAttributeResponse smart constructor.

Constructors

DescribeImageAttributeResponse' 

Fields

Instances

Instances details
Generic DescribeImageAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

Associated Types

type Rep DescribeImageAttributeResponse :: Type -> Type #

Read DescribeImageAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

Show DescribeImageAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

NFData DescribeImageAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

Eq DescribeImageAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

type Rep DescribeImageAttributeResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeImageAttribute

type Rep DescribeImageAttributeResponse = D1 ('MetaData "DescribeImageAttributeResponse" "Amazonka.EC2.DescribeImageAttribute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeImageAttributeResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "blockDeviceMappings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BlockDeviceMapping])) :*: (S1 ('MetaSel ('Just "bootMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeValue)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeValue)))) :*: ((S1 ('MetaSel ('Just "imageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "imdsSupport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeValue))) :*: (S1 ('MetaSel ('Just "kernelId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeValue)) :*: S1 ('MetaSel ('Just "lastLaunchedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeValue))))) :*: ((S1 ('MetaSel ('Just "launchPermissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LaunchPermission])) :*: (S1 ('MetaSel ('Just "productCodes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ProductCode])) :*: S1 ('MetaSel ('Just "ramdiskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeValue)))) :*: ((S1 ('MetaSel ('Just "sriovNetSupport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeValue)) :*: S1 ('MetaSel ('Just "tpmSupport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeValue))) :*: (S1 ('MetaSel ('Just "uefiData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeValue)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

newDescribeImageAttributeResponse Source #

Create a value of DescribeImageAttributeResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

DescribeImageAttributeResponse, describeImageAttributeResponse_blockDeviceMappings - The block device mapping entries.

DescribeImageAttributeResponse, describeImageAttributeResponse_bootMode - The boot mode.

DescribeImageAttributeResponse, describeImageAttributeResponse_description - A description for the AMI.

DescribeImageAttribute, describeImageAttributeResponse_imageId - The ID of the AMI.

DescribeImageAttributeResponse, describeImageAttributeResponse_imdsSupport - If v2.0, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI will have HttpTokens automatically set to required so that, by default, the instance requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit is set to 2. For more information, see Configure the AMI in the Amazon EC2 User Guide.

DescribeImageAttributeResponse, describeImageAttributeResponse_kernelId - The kernel ID.

$sel:lastLaunchedTime:DescribeImageAttributeResponse', describeImageAttributeResponse_lastLaunchedTime - The date and time, in ISO 8601 date-time format, when the AMI was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour delay before that usage is reported.

lastLaunchedTime data is available starting April 2017.

$sel:launchPermissions:DescribeImageAttributeResponse', describeImageAttributeResponse_launchPermissions - The launch permissions.

DescribeImageAttributeResponse, describeImageAttributeResponse_productCodes - The product codes.

DescribeImageAttributeResponse, describeImageAttributeResponse_ramdiskId - The RAM disk ID.

DescribeImageAttributeResponse, describeImageAttributeResponse_sriovNetSupport - Indicates whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

DescribeImageAttributeResponse, describeImageAttributeResponse_tpmSupport - If the image is configured for NitroTPM support, the value is v2.0.

$sel:uefiData:DescribeImageAttributeResponse', describeImageAttributeResponse_uefiData - Base64 representation of the non-volatile UEFI variable store. To retrieve the UEFI data, use the GetInstanceUefiData command. You can inspect and modify the UEFI data by using the python-uefivars tool on GitHub. For more information, see UEFI Secure Boot in the Amazon EC2 User Guide.

$sel:httpStatus:DescribeImageAttributeResponse', describeImageAttributeResponse_httpStatus - The response's http status code.

Response Lenses

describeImageAttributeResponse_imdsSupport :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue) Source #

If v2.0, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI will have HttpTokens automatically set to required so that, by default, the instance requires that IMDSv2 is used when requesting instance metadata. In addition, HttpPutResponseHopLimit is set to 2. For more information, see Configure the AMI in the Amazon EC2 User Guide.

describeImageAttributeResponse_lastLaunchedTime :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue) Source #

The date and time, in ISO 8601 date-time format, when the AMI was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour delay before that usage is reported.

lastLaunchedTime data is available starting April 2017.

describeImageAttributeResponse_sriovNetSupport :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue) Source #

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

describeImageAttributeResponse_tpmSupport :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue) Source #

If the image is configured for NitroTPM support, the value is v2.0.

describeImageAttributeResponse_uefiData :: Lens' DescribeImageAttributeResponse (Maybe AttributeValue) Source #

Base64 representation of the non-volatile UEFI variable store. To retrieve the UEFI data, use the GetInstanceUefiData command. You can inspect and modify the UEFI data by using the python-uefivars tool on GitHub. For more information, see UEFI Secure Boot in the Amazon EC2 User Guide.