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

Description

Retrieve historical information about a CIDR within an IPAM scope. For more information, see View the history of IP addresses in the Amazon VPC IPAM User Guide.

This operation returns paginated results.

Synopsis

Creating a Request

data GetIpamAddressHistory Source #

See: newGetIpamAddressHistory smart constructor.

Constructors

GetIpamAddressHistory' 

Fields

  • dryRun :: Maybe Bool

    A check for 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.

  • endTime :: Maybe ISO8601

    The end of the time period for which you are looking for history. If you omit this option, it will default to the current time.

  • maxResults :: Maybe Natural

    The maximum number of historical results you would like returned per page. Defaults to 100.

  • nextToken :: Maybe Text

    The token for the next page of results.

  • startTime :: Maybe ISO8601

    The start of the time period for which you are looking for history. If you omit this option, it will default to the value of EndTime.

  • vpcId :: Maybe Text

    The ID of the VPC you want your history records filtered by.

  • cidr :: Text

    The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address range. If you enter a /16 IPv4 CIDR, you will get records that match it exactly. You will not get records for any subnets within the /16 CIDR.

  • ipamScopeId :: Text

    The ID of the IPAM scope that the CIDR is in.

Instances

Instances details
ToHeaders GetIpamAddressHistory Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

ToPath GetIpamAddressHistory Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

ToQuery GetIpamAddressHistory Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

AWSPager GetIpamAddressHistory Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

AWSRequest GetIpamAddressHistory Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

Associated Types

type AWSResponse GetIpamAddressHistory #

Generic GetIpamAddressHistory Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

Associated Types

type Rep GetIpamAddressHistory :: Type -> Type #

Read GetIpamAddressHistory Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

Show GetIpamAddressHistory Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

NFData GetIpamAddressHistory Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

Methods

rnf :: GetIpamAddressHistory -> () #

Eq GetIpamAddressHistory Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

Hashable GetIpamAddressHistory Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

type AWSResponse GetIpamAddressHistory Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

type Rep GetIpamAddressHistory Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

newGetIpamAddressHistory Source #

Create a value of GetIpamAddressHistory 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:GetIpamAddressHistory', getIpamAddressHistory_dryRun - A check for 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.

GetIpamAddressHistory, getIpamAddressHistory_endTime - The end of the time period for which you are looking for history. If you omit this option, it will default to the current time.

$sel:maxResults:GetIpamAddressHistory', getIpamAddressHistory_maxResults - The maximum number of historical results you would like returned per page. Defaults to 100.

GetIpamAddressHistory, getIpamAddressHistory_nextToken - The token for the next page of results.

GetIpamAddressHistory, getIpamAddressHistory_startTime - The start of the time period for which you are looking for history. If you omit this option, it will default to the value of EndTime.

GetIpamAddressHistory, getIpamAddressHistory_vpcId - The ID of the VPC you want your history records filtered by.

GetIpamAddressHistory, getIpamAddressHistory_cidr - The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address range. If you enter a /16 IPv4 CIDR, you will get records that match it exactly. You will not get records for any subnets within the /16 CIDR.

GetIpamAddressHistory, getIpamAddressHistory_ipamScopeId - The ID of the IPAM scope that the CIDR is in.

Request Lenses

getIpamAddressHistory_dryRun :: Lens' GetIpamAddressHistory (Maybe Bool) Source #

A check for 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.

getIpamAddressHistory_endTime :: Lens' GetIpamAddressHistory (Maybe UTCTime) Source #

The end of the time period for which you are looking for history. If you omit this option, it will default to the current time.

getIpamAddressHistory_maxResults :: Lens' GetIpamAddressHistory (Maybe Natural) Source #

The maximum number of historical results you would like returned per page. Defaults to 100.

getIpamAddressHistory_nextToken :: Lens' GetIpamAddressHistory (Maybe Text) Source #

The token for the next page of results.

getIpamAddressHistory_startTime :: Lens' GetIpamAddressHistory (Maybe UTCTime) Source #

The start of the time period for which you are looking for history. If you omit this option, it will default to the value of EndTime.

getIpamAddressHistory_vpcId :: Lens' GetIpamAddressHistory (Maybe Text) Source #

The ID of the VPC you want your history records filtered by.

getIpamAddressHistory_cidr :: Lens' GetIpamAddressHistory Text Source #

The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address range. If you enter a /16 IPv4 CIDR, you will get records that match it exactly. You will not get records for any subnets within the /16 CIDR.

getIpamAddressHistory_ipamScopeId :: Lens' GetIpamAddressHistory Text Source #

The ID of the IPAM scope that the CIDR is in.

Destructuring the Response

data GetIpamAddressHistoryResponse Source #

See: newGetIpamAddressHistoryResponse smart constructor.

Constructors

GetIpamAddressHistoryResponse' 

Fields

  • historyRecords :: Maybe [IpamAddressHistoryRecord]

    A historical record for a CIDR within an IPAM scope. If the CIDR is associated with an EC2 instance, you will see an object in the response for the instance and one for the network interface.

  • nextToken :: Maybe Text

    The token to use to retrieve the next page of results. This value is null when there are no more results to return.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetIpamAddressHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

Associated Types

type Rep GetIpamAddressHistoryResponse :: Type -> Type #

Read GetIpamAddressHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

Show GetIpamAddressHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

NFData GetIpamAddressHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

Eq GetIpamAddressHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

type Rep GetIpamAddressHistoryResponse Source # 
Instance details

Defined in Amazonka.EC2.GetIpamAddressHistory

type Rep GetIpamAddressHistoryResponse = D1 ('MetaData "GetIpamAddressHistoryResponse" "Amazonka.EC2.GetIpamAddressHistory" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "GetIpamAddressHistoryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "historyRecords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [IpamAddressHistoryRecord])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetIpamAddressHistoryResponse Source #

Create a value of GetIpamAddressHistoryResponse 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:historyRecords:GetIpamAddressHistoryResponse', getIpamAddressHistoryResponse_historyRecords - A historical record for a CIDR within an IPAM scope. If the CIDR is associated with an EC2 instance, you will see an object in the response for the instance and one for the network interface.

GetIpamAddressHistory, getIpamAddressHistoryResponse_nextToken - The token to use to retrieve the next page of results. This value is null when there are no more results to return.

$sel:httpStatus:GetIpamAddressHistoryResponse', getIpamAddressHistoryResponse_httpStatus - The response's http status code.

Response Lenses

getIpamAddressHistoryResponse_historyRecords :: Lens' GetIpamAddressHistoryResponse (Maybe [IpamAddressHistoryRecord]) Source #

A historical record for a CIDR within an IPAM scope. If the CIDR is associated with an EC2 instance, you will see an object in the response for the instance and one for the network interface.

getIpamAddressHistoryResponse_nextToken :: Lens' GetIpamAddressHistoryResponse (Maybe Text) Source #

The token to use to retrieve the next page of results. This value is null when there are no more results to return.