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.NetworkManager.GetCoreNetworkPolicy
Description
Returns details about a core network policy. You can get details about your current live policy or any previous policy version.
Synopsis
- data GetCoreNetworkPolicy = GetCoreNetworkPolicy' {}
- newGetCoreNetworkPolicy :: Text -> GetCoreNetworkPolicy
- getCoreNetworkPolicy_alias :: Lens' GetCoreNetworkPolicy (Maybe CoreNetworkPolicyAlias)
- getCoreNetworkPolicy_policyVersionId :: Lens' GetCoreNetworkPolicy (Maybe Int)
- getCoreNetworkPolicy_coreNetworkId :: Lens' GetCoreNetworkPolicy Text
- data GetCoreNetworkPolicyResponse = GetCoreNetworkPolicyResponse' {}
- newGetCoreNetworkPolicyResponse :: Int -> GetCoreNetworkPolicyResponse
- getCoreNetworkPolicyResponse_coreNetworkPolicy :: Lens' GetCoreNetworkPolicyResponse (Maybe CoreNetworkPolicy)
- getCoreNetworkPolicyResponse_httpStatus :: Lens' GetCoreNetworkPolicyResponse Int
Creating a Request
data GetCoreNetworkPolicy Source #
See: newGetCoreNetworkPolicy
smart constructor.
Constructors
GetCoreNetworkPolicy' | |
Fields
|
Instances
newGetCoreNetworkPolicy Source #
Arguments
:: Text | |
-> GetCoreNetworkPolicy |
Create a value of GetCoreNetworkPolicy
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:
GetCoreNetworkPolicy
, getCoreNetworkPolicy_alias
- The alias of a core network policy
GetCoreNetworkPolicy
, getCoreNetworkPolicy_policyVersionId
- The ID of a core network policy version.
GetCoreNetworkPolicy
, getCoreNetworkPolicy_coreNetworkId
- The ID of a core network.
Request Lenses
getCoreNetworkPolicy_alias :: Lens' GetCoreNetworkPolicy (Maybe CoreNetworkPolicyAlias) Source #
The alias of a core network policy
getCoreNetworkPolicy_policyVersionId :: Lens' GetCoreNetworkPolicy (Maybe Int) Source #
The ID of a core network policy version.
getCoreNetworkPolicy_coreNetworkId :: Lens' GetCoreNetworkPolicy Text Source #
The ID of a core network.
Destructuring the Response
data GetCoreNetworkPolicyResponse Source #
See: newGetCoreNetworkPolicyResponse
smart constructor.
Constructors
GetCoreNetworkPolicyResponse' | |
Fields
|
Instances
newGetCoreNetworkPolicyResponse Source #
Create a value of GetCoreNetworkPolicyResponse
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:coreNetworkPolicy:GetCoreNetworkPolicyResponse'
, getCoreNetworkPolicyResponse_coreNetworkPolicy
- The details about a core network policy.
$sel:httpStatus:GetCoreNetworkPolicyResponse'
, getCoreNetworkPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getCoreNetworkPolicyResponse_coreNetworkPolicy :: Lens' GetCoreNetworkPolicyResponse (Maybe CoreNetworkPolicy) Source #
The details about a core network policy.
getCoreNetworkPolicyResponse_httpStatus :: Lens' GetCoreNetworkPolicyResponse Int Source #
The response's http status code.