| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.ManagedBlockChain.GetNetwork
Description
Returns detailed information about a network.
Applies to Hyperledger Fabric and Ethereum.
Synopsis
- data GetNetwork = GetNetwork' {}
 - newGetNetwork :: Text -> GetNetwork
 - getNetwork_networkId :: Lens' GetNetwork Text
 - data GetNetworkResponse = GetNetworkResponse' {
- network :: Maybe Network
 - httpStatus :: Int
 
 - newGetNetworkResponse :: Int -> GetNetworkResponse
 - getNetworkResponse_network :: Lens' GetNetworkResponse (Maybe Network)
 - getNetworkResponse_httpStatus :: Lens' GetNetworkResponse Int
 
Creating a Request
data GetNetwork Source #
See: newGetNetwork smart constructor.
Constructors
| GetNetwork' | |
Instances
Arguments
| :: Text | |
| -> GetNetwork | 
Create a value of GetNetwork 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:
GetNetwork, getNetwork_networkId - The unique identifier of the network to get information about.
Request Lenses
getNetwork_networkId :: Lens' GetNetwork Text Source #
The unique identifier of the network to get information about.
Destructuring the Response
data GetNetworkResponse Source #
See: newGetNetworkResponse smart constructor.
Constructors
| GetNetworkResponse' | |
Fields 
  | |
Instances
newGetNetworkResponse Source #
Arguments
| :: Int | |
| -> GetNetworkResponse | 
Create a value of GetNetworkResponse 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:network:GetNetworkResponse', getNetworkResponse_network - An object containing network configuration parameters.
$sel:httpStatus:GetNetworkResponse', getNetworkResponse_httpStatus - The response's http status code.
Response Lenses
getNetworkResponse_network :: Lens' GetNetworkResponse (Maybe Network) Source #
An object containing network configuration parameters.
getNetworkResponse_httpStatus :: Lens' GetNetworkResponse Int Source #
The response's http status code.