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

Description

Returns a list of the source Amazon Web Services Regions where the current Amazon Web Services Region can create a read replica, copy a DB snapshot from, or replicate automated backups from.

Use this operation to determine whether cross-Region features are supported between other Regions and your current Region. This operation supports pagination.

To return information about the Regions that are enabled for your account, or all Regions, use the EC2 operation DescribeRegions. For more information, see DescribeRegions in the Amazon EC2 API Reference.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeSourceRegions Source #

See: newDescribeSourceRegions smart constructor.

Constructors

DescribeSourceRegions' 

Fields

  • filters :: Maybe [Filter]

    This parameter isn't currently supported.

  • marker :: Maybe Text

    An optional pagination token provided by a previous DescribeSourceRegions 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 you can retrieve the remaining results.

    Default: 100

    Constraints: Minimum 20, maximum 100.

  • regionName :: Maybe Text

    The source Amazon Web Services Region name. For example, us-east-1.

    Constraints:

    • Must specify a valid Amazon Web Services Region name.

Instances

Instances details
ToHeaders DescribeSourceRegions Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

ToPath DescribeSourceRegions Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

ToQuery DescribeSourceRegions Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

AWSPager DescribeSourceRegions Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

AWSRequest DescribeSourceRegions Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

Associated Types

type AWSResponse DescribeSourceRegions #

Generic DescribeSourceRegions Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

Associated Types

type Rep DescribeSourceRegions :: Type -> Type #

Read DescribeSourceRegions Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

Show DescribeSourceRegions Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

NFData DescribeSourceRegions Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

Methods

rnf :: DescribeSourceRegions -> () #

Eq DescribeSourceRegions Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

Hashable DescribeSourceRegions Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

type AWSResponse DescribeSourceRegions Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

type Rep DescribeSourceRegions Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

type Rep DescribeSourceRegions = D1 ('MetaData "DescribeSourceRegions" "Amazonka.RDS.DescribeSourceRegions" "amazonka-rds-2.0-3xXyiLHmAvvCXXUIx1uhpP" 'False) (C1 ('MetaCons "DescribeSourceRegions'" 'PrefixI 'True) ((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)) :*: S1 ('MetaSel ('Just "regionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newDescribeSourceRegions :: DescribeSourceRegions Source #

Create a value of DescribeSourceRegions 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:filters:DescribeSourceRegions', describeSourceRegions_filters - This parameter isn't currently supported.

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

$sel:maxRecords:DescribeSourceRegions', describeSourceRegions_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 you can retrieve the remaining results.

Default: 100

Constraints: Minimum 20, maximum 100.

DescribeSourceRegions, describeSourceRegions_regionName - The source Amazon Web Services Region name. For example, us-east-1.

Constraints:

  • Must specify a valid Amazon Web Services Region name.

Request Lenses

describeSourceRegions_filters :: Lens' DescribeSourceRegions (Maybe [Filter]) Source #

This parameter isn't currently supported.

describeSourceRegions_marker :: Lens' DescribeSourceRegions (Maybe Text) Source #

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

describeSourceRegions_maxRecords :: Lens' DescribeSourceRegions (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 you can retrieve the remaining results.

Default: 100

Constraints: Minimum 20, maximum 100.

describeSourceRegions_regionName :: Lens' DescribeSourceRegions (Maybe Text) Source #

The source Amazon Web Services Region name. For example, us-east-1.

Constraints:

  • Must specify a valid Amazon Web Services Region name.

Destructuring the Response

data DescribeSourceRegionsResponse Source #

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

See: newDescribeSourceRegionsResponse smart constructor.

Constructors

DescribeSourceRegionsResponse' 

Fields

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

  • sourceRegions :: Maybe [SourceRegion]

    A list of SourceRegion instances that contains each source Amazon Web Services Region that the current Amazon Web Services Region can get a read replica or a DB snapshot from.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeSourceRegionsResponse Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

Associated Types

type Rep DescribeSourceRegionsResponse :: Type -> Type #

Read DescribeSourceRegionsResponse Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

Show DescribeSourceRegionsResponse Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

NFData DescribeSourceRegionsResponse Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

Eq DescribeSourceRegionsResponse Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

type Rep DescribeSourceRegionsResponse Source # 
Instance details

Defined in Amazonka.RDS.DescribeSourceRegions

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

newDescribeSourceRegionsResponse Source #

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

DescribeSourceRegions, describeSourceRegionsResponse_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:sourceRegions:DescribeSourceRegionsResponse', describeSourceRegionsResponse_sourceRegions - A list of SourceRegion instances that contains each source Amazon Web Services Region that the current Amazon Web Services Region can get a read replica or a DB snapshot from.

$sel:httpStatus:DescribeSourceRegionsResponse', describeSourceRegionsResponse_httpStatus - The response's http status code.

Response Lenses

describeSourceRegionsResponse_marker :: Lens' DescribeSourceRegionsResponse (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.

describeSourceRegionsResponse_sourceRegions :: Lens' DescribeSourceRegionsResponse (Maybe [SourceRegion]) Source #

A list of SourceRegion instances that contains each source Amazon Web Services Region that the current Amazon Web Services Region can get a read replica or a DB snapshot from.