amazonka-memorydb-2.0: Amazon MemoryDB 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.MemoryDb.DescribeSubnetGroups

Description

Returns a list of subnet group descriptions. If a subnet group name is specified, the list contains only the description of that group.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeSubnetGroups Source #

See: newDescribeSubnetGroups smart constructor.

Constructors

DescribeSubnetGroups' 

Fields

  • maxResults :: Maybe Int

    The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

  • nextToken :: Maybe Text

    An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

  • subnetGroupName :: Maybe Text

    The name of the subnet group to return details for.

Instances

Instances details
ToJSON DescribeSubnetGroups Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

ToHeaders DescribeSubnetGroups Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

ToPath DescribeSubnetGroups Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

ToQuery DescribeSubnetGroups Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

AWSPager DescribeSubnetGroups Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

AWSRequest DescribeSubnetGroups Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

Associated Types

type AWSResponse DescribeSubnetGroups #

Generic DescribeSubnetGroups Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

Associated Types

type Rep DescribeSubnetGroups :: Type -> Type #

Read DescribeSubnetGroups Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

Show DescribeSubnetGroups Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

NFData DescribeSubnetGroups Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

Methods

rnf :: DescribeSubnetGroups -> () #

Eq DescribeSubnetGroups Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

Hashable DescribeSubnetGroups Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

type AWSResponse DescribeSubnetGroups Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

type Rep DescribeSubnetGroups Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

type Rep DescribeSubnetGroups = D1 ('MetaData "DescribeSubnetGroups" "Amazonka.MemoryDb.DescribeSubnetGroups" "amazonka-memorydb-2.0-7JvPQiLpSKi6naAXiKMLiu" 'False) (C1 ('MetaCons "DescribeSubnetGroups'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "subnetGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newDescribeSubnetGroups :: DescribeSubnetGroups Source #

Create a value of DescribeSubnetGroups 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:maxResults:DescribeSubnetGroups', describeSubnetGroups_maxResults - The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

DescribeSubnetGroups, describeSubnetGroups_nextToken - An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

DescribeSubnetGroups, describeSubnetGroups_subnetGroupName - The name of the subnet group to return details for.

Request Lenses

describeSubnetGroups_maxResults :: Lens' DescribeSubnetGroups (Maybe Int) Source #

The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

describeSubnetGroups_nextToken :: Lens' DescribeSubnetGroups (Maybe Text) Source #

An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

describeSubnetGroups_subnetGroupName :: Lens' DescribeSubnetGroups (Maybe Text) Source #

The name of the subnet group to return details for.

Destructuring the Response

data DescribeSubnetGroupsResponse Source #

See: newDescribeSubnetGroupsResponse smart constructor.

Constructors

DescribeSubnetGroupsResponse' 

Fields

  • nextToken :: Maybe Text

    An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

  • subnetGroups :: Maybe [SubnetGroup]

    A list of subnet groups. Each element in the list contains detailed information about one group.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic DescribeSubnetGroupsResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

Associated Types

type Rep DescribeSubnetGroupsResponse :: Type -> Type #

Read DescribeSubnetGroupsResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

Show DescribeSubnetGroupsResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

NFData DescribeSubnetGroupsResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

Eq DescribeSubnetGroupsResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

type Rep DescribeSubnetGroupsResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeSubnetGroups

type Rep DescribeSubnetGroupsResponse = D1 ('MetaData "DescribeSubnetGroupsResponse" "Amazonka.MemoryDb.DescribeSubnetGroups" "amazonka-memorydb-2.0-7JvPQiLpSKi6naAXiKMLiu" 'False) (C1 ('MetaCons "DescribeSubnetGroupsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "subnetGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SubnetGroup])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeSubnetGroupsResponse Source #

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

DescribeSubnetGroups, describeSubnetGroupsResponse_nextToken - An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

$sel:subnetGroups:DescribeSubnetGroupsResponse', describeSubnetGroupsResponse_subnetGroups - A list of subnet groups. Each element in the list contains detailed information about one group.

$sel:httpStatus:DescribeSubnetGroupsResponse', describeSubnetGroupsResponse_httpStatus - The response's http status code.

Response Lenses

describeSubnetGroupsResponse_nextToken :: Lens' DescribeSubnetGroupsResponse (Maybe Text) Source #

An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

describeSubnetGroupsResponse_subnetGroups :: Lens' DescribeSubnetGroupsResponse (Maybe [SubnetGroup]) Source #

A list of subnet groups. Each element in the list contains detailed information about one group.