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

Description

Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the IAM user who makes the request; they do not apply to the entire Amazon Web Services account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

Synopsis

Creating a Request

data DescribeIdFormat Source #

See: newDescribeIdFormat smart constructor.

Constructors

DescribeIdFormat' 

Fields

  • resource :: Maybe Text

    The type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway

Instances

Instances details
ToHeaders DescribeIdFormat Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

ToPath DescribeIdFormat Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

ToQuery DescribeIdFormat Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

AWSRequest DescribeIdFormat Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

Associated Types

type AWSResponse DescribeIdFormat #

Generic DescribeIdFormat Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

Associated Types

type Rep DescribeIdFormat :: Type -> Type #

Read DescribeIdFormat Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

Show DescribeIdFormat Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

NFData DescribeIdFormat Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

Methods

rnf :: DescribeIdFormat -> () #

Eq DescribeIdFormat Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

Hashable DescribeIdFormat Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

type AWSResponse DescribeIdFormat Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

type Rep DescribeIdFormat Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

type Rep DescribeIdFormat = D1 ('MetaData "DescribeIdFormat" "Amazonka.EC2.DescribeIdFormat" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeIdFormat'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newDescribeIdFormat :: DescribeIdFormat Source #

Create a value of DescribeIdFormat 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:

DescribeIdFormat, describeIdFormat_resource - The type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway

Request Lenses

describeIdFormat_resource :: Lens' DescribeIdFormat (Maybe Text) Source #

The type of resource: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway

Destructuring the Response

data DescribeIdFormatResponse Source #

See: newDescribeIdFormatResponse smart constructor.

Constructors

DescribeIdFormatResponse' 

Fields

Instances

Instances details
Generic DescribeIdFormatResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

Associated Types

type Rep DescribeIdFormatResponse :: Type -> Type #

Read DescribeIdFormatResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

Show DescribeIdFormatResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

NFData DescribeIdFormatResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

Eq DescribeIdFormatResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

type Rep DescribeIdFormatResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeIdFormat

type Rep DescribeIdFormatResponse = D1 ('MetaData "DescribeIdFormatResponse" "Amazonka.EC2.DescribeIdFormat" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeIdFormatResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "statuses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [IdFormat])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDescribeIdFormatResponse Source #

Create a value of DescribeIdFormatResponse 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:

DescribeIdFormatResponse, describeIdFormatResponse_statuses - Information about the ID format for the resource.

$sel:httpStatus:DescribeIdFormatResponse', describeIdFormatResponse_httpStatus - The response's http status code.

Response Lenses

describeIdFormatResponse_statuses :: Lens' DescribeIdFormatResponse (Maybe [IdFormat]) Source #

Information about the ID format for the resource.