Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns information about the networks in which the current AWS account participates.
Applies to Hyperledger Fabric and Ethereum.
Synopsis
- data ListNetworks = ListNetworks' {}
- newListNetworks :: ListNetworks
- listNetworks_status :: Lens' ListNetworks (Maybe NetworkStatus)
- listNetworks_framework :: Lens' ListNetworks (Maybe Framework)
- listNetworks_nextToken :: Lens' ListNetworks (Maybe Text)
- listNetworks_name :: Lens' ListNetworks (Maybe Text)
- listNetworks_maxResults :: Lens' ListNetworks (Maybe Natural)
- data ListNetworksResponse = ListNetworksResponse' {
- networks :: Maybe [NetworkSummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListNetworksResponse :: Int -> ListNetworksResponse
- listNetworksResponse_networks :: Lens' ListNetworksResponse (Maybe [NetworkSummary])
- listNetworksResponse_nextToken :: Lens' ListNetworksResponse (Maybe Text)
- listNetworksResponse_httpStatus :: Lens' ListNetworksResponse Int
Creating a Request
data ListNetworks Source #
See: newListNetworks
smart constructor.
ListNetworks' | |
|
Instances
newListNetworks :: ListNetworks Source #
Create a value of ListNetworks
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:status:ListNetworks'
, listNetworks_status
- An optional status specifier. If provided, only networks currently in
this status are listed.
Applies only to Hyperledger Fabric.
$sel:framework:ListNetworks'
, listNetworks_framework
- An optional framework specifier. If provided, only networks of this
framework type are listed.
$sel:nextToken:ListNetworks'
, listNetworks_nextToken
- The pagination token that indicates the next set of results to retrieve.
$sel:name:ListNetworks'
, listNetworks_name
- The name of the network.
$sel:maxResults:ListNetworks'
, listNetworks_maxResults
- The maximum number of networks to list.
Request Lenses
listNetworks_status :: Lens' ListNetworks (Maybe NetworkStatus) Source #
An optional status specifier. If provided, only networks currently in this status are listed.
Applies only to Hyperledger Fabric.
listNetworks_framework :: Lens' ListNetworks (Maybe Framework) Source #
An optional framework specifier. If provided, only networks of this framework type are listed.
listNetworks_nextToken :: Lens' ListNetworks (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
listNetworks_name :: Lens' ListNetworks (Maybe Text) Source #
The name of the network.
listNetworks_maxResults :: Lens' ListNetworks (Maybe Natural) Source #
The maximum number of networks to list.
Destructuring the Response
data ListNetworksResponse Source #
See: newListNetworksResponse
smart constructor.
ListNetworksResponse' | |
|
Instances
newListNetworksResponse Source #
Create a value of ListNetworksResponse
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:networks:ListNetworksResponse'
, listNetworksResponse_networks
- An array of NetworkSummary
objects that contain configuration
properties for each network.
$sel:nextToken:ListNetworks'
, listNetworksResponse_nextToken
- The pagination token that indicates the next set of results to retrieve.
$sel:httpStatus:ListNetworksResponse'
, listNetworksResponse_httpStatus
- The response's http status code.
Response Lenses
listNetworksResponse_networks :: Lens' ListNetworksResponse (Maybe [NetworkSummary]) Source #
An array of NetworkSummary
objects that contain configuration
properties for each network.
listNetworksResponse_nextToken :: Lens' ListNetworksResponse (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
listNetworksResponse_httpStatus :: Lens' ListNetworksResponse Int Source #
The response's http status code.