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 the data objects for the specified firewall policy.
Synopsis
- data DescribeFirewallPolicy = DescribeFirewallPolicy' {}
- newDescribeFirewallPolicy :: DescribeFirewallPolicy
- describeFirewallPolicy_firewallPolicyName :: Lens' DescribeFirewallPolicy (Maybe Text)
- describeFirewallPolicy_firewallPolicyArn :: Lens' DescribeFirewallPolicy (Maybe Text)
- data DescribeFirewallPolicyResponse = DescribeFirewallPolicyResponse' {}
- newDescribeFirewallPolicyResponse :: Int -> Text -> FirewallPolicyResponse -> DescribeFirewallPolicyResponse
- describeFirewallPolicyResponse_firewallPolicy :: Lens' DescribeFirewallPolicyResponse (Maybe FirewallPolicy)
- describeFirewallPolicyResponse_httpStatus :: Lens' DescribeFirewallPolicyResponse Int
- describeFirewallPolicyResponse_updateToken :: Lens' DescribeFirewallPolicyResponse Text
- describeFirewallPolicyResponse_firewallPolicyResponse :: Lens' DescribeFirewallPolicyResponse FirewallPolicyResponse
Creating a Request
data DescribeFirewallPolicy Source #
See: newDescribeFirewallPolicy
smart constructor.
DescribeFirewallPolicy' | |
|
Instances
newDescribeFirewallPolicy :: DescribeFirewallPolicy Source #
Create a value of DescribeFirewallPolicy
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:firewallPolicyName:DescribeFirewallPolicy'
, describeFirewallPolicy_firewallPolicyName
- The descriptive name of the firewall policy. You can't change the name
of a firewall policy after you create it.
You must specify the ARN or the name, and you can specify both.
$sel:firewallPolicyArn:DescribeFirewallPolicy'
, describeFirewallPolicy_firewallPolicyArn
- The Amazon Resource Name (ARN) of the firewall policy.
You must specify the ARN or the name, and you can specify both.
Request Lenses
describeFirewallPolicy_firewallPolicyName :: Lens' DescribeFirewallPolicy (Maybe Text) Source #
The descriptive name of the firewall policy. You can't change the name of a firewall policy after you create it.
You must specify the ARN or the name, and you can specify both.
describeFirewallPolicy_firewallPolicyArn :: Lens' DescribeFirewallPolicy (Maybe Text) Source #
The Amazon Resource Name (ARN) of the firewall policy.
You must specify the ARN or the name, and you can specify both.
Destructuring the Response
data DescribeFirewallPolicyResponse Source #
See: newDescribeFirewallPolicyResponse
smart constructor.
DescribeFirewallPolicyResponse' | |
|
Instances
newDescribeFirewallPolicyResponse Source #
Create a value of DescribeFirewallPolicyResponse
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:firewallPolicy:DescribeFirewallPolicyResponse'
, describeFirewallPolicyResponse_firewallPolicy
- The policy for the specified firewall policy.
$sel:httpStatus:DescribeFirewallPolicyResponse'
, describeFirewallPolicyResponse_httpStatus
- The response's http status code.
$sel:updateToken:DescribeFirewallPolicyResponse'
, describeFirewallPolicyResponse_updateToken
- A token used for optimistic locking. Network Firewall returns a token to
your requests that access the firewall policy. The token marks the state
of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request.
Network Firewall uses the token to ensure that the policy hasn't
changed since you last retrieved it. If it has changed, the operation
fails with an InvalidTokenException
. If this happens, retrieve the
firewall policy again to get a current copy of it with current token.
Reapply your changes as needed, then try the operation again using the
new token.
$sel:firewallPolicyResponse:DescribeFirewallPolicyResponse'
, describeFirewallPolicyResponse_firewallPolicyResponse
- The high-level properties of a firewall policy. This, along with the
FirewallPolicy, define the policy. You can retrieve all objects for a
firewall policy by calling DescribeFirewallPolicy.
Response Lenses
describeFirewallPolicyResponse_firewallPolicy :: Lens' DescribeFirewallPolicyResponse (Maybe FirewallPolicy) Source #
The policy for the specified firewall policy.
describeFirewallPolicyResponse_httpStatus :: Lens' DescribeFirewallPolicyResponse Int Source #
The response's http status code.
describeFirewallPolicyResponse_updateToken :: Lens' DescribeFirewallPolicyResponse Text Source #
A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request.
To make changes to the policy, you provide the token in your request.
Network Firewall uses the token to ensure that the policy hasn't
changed since you last retrieved it. If it has changed, the operation
fails with an InvalidTokenException
. If this happens, retrieve the
firewall policy again to get a current copy of it with current token.
Reapply your changes as needed, then try the operation again using the
new token.
describeFirewallPolicyResponse_firewallPolicyResponse :: Lens' DescribeFirewallPolicyResponse FirewallPolicyResponse Source #
The high-level properties of a firewall policy. This, along with the FirewallPolicy, define the policy. You can retrieve all objects for a firewall policy by calling DescribeFirewallPolicy.