amazonka-rds-2.0: Amazon Relational Database Service 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.RDS.DescribeDBInstances

Description

Returns information about provisioned RDS instances. This API supports pagination.

This operation can also return information for Amazon Neptune DB instances and Amazon DocumentDB instances.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeDBInstances Source #

See: newDescribeDBInstances smart constructor.

Constructors

DescribeDBInstances' 

Fields

  • dbInstanceIdentifier :: Maybe Text

    The user-supplied instance identifier or the Amazon Resource Name (ARN) of the DB instance. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case-sensitive.

    Constraints:

    • If supplied, must match the identifier of an existing DBInstance.
  • filters :: Maybe [Filter]

    A filter that specifies one or more DB instances to describe.

    Supported filters:

    • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list only includes information about the DB instances associated with the DB clusters identified by these ARNs.
    • db-instance-id - Accepts DB instance identifiers and DB instance Amazon Resource Names (ARNs). The results list only includes information about the DB instances identified by these ARNs.
    • dbi-resource-id - Accepts DB instance resource identifiers. The results list will only include information about the DB instances identified by these DB instance resource identifiers.
    • domain - Accepts Active Directory directory IDs. The results list only includes information about the DB instances associated with these domains.
    • engine - Accepts engine names. The results list only includes information about the DB instances for these engines.
  • marker :: Maybe Text

    An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

  • maxRecords :: Maybe Int

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results.

    Default: 100

    Constraints: Minimum 20, maximum 100.

Instances

Instances details
ToHeaders DescribeDBInstances Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

ToPath DescribeDBInstances Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

ToQuery DescribeDBInstances Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

AWSPager DescribeDBInstances Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

AWSRequest DescribeDBInstances Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

Associated Types

type AWSResponse DescribeDBInstances #

Generic DescribeDBInstances Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

Associated Types

type Rep DescribeDBInstances :: Type -> Type #

Read DescribeDBInstances Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

Show DescribeDBInstances Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

NFData DescribeDBInstances Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

Methods

rnf :: DescribeDBInstances -> () #

Eq DescribeDBInstances Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

Hashable DescribeDBInstances Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

type AWSResponse DescribeDBInstances Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

type Rep DescribeDBInstances Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

type Rep DescribeDBInstances = D1 ('MetaData "DescribeDBInstances" "Amazonka.RDS.DescribeDBInstances" "amazonka-rds-2.0-3xXyiLHmAvvCXXUIx1uhpP" 'False) (C1 ('MetaCons "DescribeDBInstances'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dbInstanceIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter]))) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxRecords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))

newDescribeDBInstances :: DescribeDBInstances Source #

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

DescribeDBInstances, describeDBInstances_dbInstanceIdentifier - The user-supplied instance identifier or the Amazon Resource Name (ARN) of the DB instance. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case-sensitive.

Constraints:

  • If supplied, must match the identifier of an existing DBInstance.

$sel:filters:DescribeDBInstances', describeDBInstances_filters - A filter that specifies one or more DB instances to describe.

Supported filters:

  • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list only includes information about the DB instances associated with the DB clusters identified by these ARNs.
  • db-instance-id - Accepts DB instance identifiers and DB instance Amazon Resource Names (ARNs). The results list only includes information about the DB instances identified by these ARNs.
  • dbi-resource-id - Accepts DB instance resource identifiers. The results list will only include information about the DB instances identified by these DB instance resource identifiers.
  • domain - Accepts Active Directory directory IDs. The results list only includes information about the DB instances associated with these domains.
  • engine - Accepts engine names. The results list only includes information about the DB instances for these engines.

DescribeDBInstances, describeDBInstances_marker - An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

$sel:maxRecords:DescribeDBInstances', describeDBInstances_maxRecords - The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results.

Default: 100

Constraints: Minimum 20, maximum 100.

Request Lenses

describeDBInstances_dbInstanceIdentifier :: Lens' DescribeDBInstances (Maybe Text) Source #

The user-supplied instance identifier or the Amazon Resource Name (ARN) of the DB instance. If this parameter is specified, information from only the specific DB instance is returned. This parameter isn't case-sensitive.

Constraints:

  • If supplied, must match the identifier of an existing DBInstance.

describeDBInstances_filters :: Lens' DescribeDBInstances (Maybe [Filter]) Source #

A filter that specifies one or more DB instances to describe.

Supported filters:

  • db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list only includes information about the DB instances associated with the DB clusters identified by these ARNs.
  • db-instance-id - Accepts DB instance identifiers and DB instance Amazon Resource Names (ARNs). The results list only includes information about the DB instances identified by these ARNs.
  • dbi-resource-id - Accepts DB instance resource identifiers. The results list will only include information about the DB instances identified by these DB instance resource identifiers.
  • domain - Accepts Active Directory directory IDs. The results list only includes information about the DB instances associated with these domains.
  • engine - Accepts engine names. The results list only includes information about the DB instances for these engines.

describeDBInstances_marker :: Lens' DescribeDBInstances (Maybe Text) Source #

An optional pagination token provided by a previous DescribeDBInstances request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

describeDBInstances_maxRecords :: Lens' DescribeDBInstances (Maybe Int) Source #

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results.

Default: 100

Constraints: Minimum 20, maximum 100.

Destructuring the Response

data DescribeDBInstancesResponse Source #

Contains the result of a successful invocation of the DescribeDBInstances action.

See: newDescribeDBInstancesResponse smart constructor.

Constructors

DescribeDBInstancesResponse' 

Fields

  • dbInstances :: Maybe [DBInstance]

    A list of DBInstance instances.

  • marker :: Maybe Text

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeDBInstancesResponse Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

Associated Types

type Rep DescribeDBInstancesResponse :: Type -> Type #

Read DescribeDBInstancesResponse Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

Show DescribeDBInstancesResponse Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

NFData DescribeDBInstancesResponse Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

Eq DescribeDBInstancesResponse Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

type Rep DescribeDBInstancesResponse Source # 
Instance details

Defined in Amazonka.RDS.DescribeDBInstances

type Rep DescribeDBInstancesResponse = D1 ('MetaData "DescribeDBInstancesResponse" "Amazonka.RDS.DescribeDBInstances" "amazonka-rds-2.0-3xXyiLHmAvvCXXUIx1uhpP" 'False) (C1 ('MetaCons "DescribeDBInstancesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dbInstances") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DBInstance])) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeDBInstancesResponse Source #

Create a value of DescribeDBInstancesResponse 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:dbInstances:DescribeDBInstancesResponse', describeDBInstancesResponse_dbInstances - A list of DBInstance instances.

DescribeDBInstances, describeDBInstancesResponse_marker - An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

$sel:httpStatus:DescribeDBInstancesResponse', describeDBInstancesResponse_httpStatus - The response's http status code.

Response Lenses

describeDBInstancesResponse_marker :: Lens' DescribeDBInstancesResponse (Maybe Text) Source #

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .