libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.NetworkFirewall.DescribeFirewallPolicy

Description

Returns the data objects for the specified firewall policy.

Synopsis

Creating a Request

data DescribeFirewallPolicy Source #

See: newDescribeFirewallPolicy smart constructor.

Constructors

DescribeFirewallPolicy' 

Fields

  • firewallPolicyName :: Maybe Text

    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.

  • firewallPolicyArn :: Maybe Text

    The Amazon Resource Name (ARN) of the firewall policy.

    You must specify the ARN or the name, and you can specify both.

Instances

Instances details
Eq DescribeFirewallPolicy Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

Read DescribeFirewallPolicy Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

Show DescribeFirewallPolicy Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

Generic DescribeFirewallPolicy Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

Associated Types

type Rep DescribeFirewallPolicy :: Type -> Type #

NFData DescribeFirewallPolicy Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

Methods

rnf :: DescribeFirewallPolicy -> () #

Hashable DescribeFirewallPolicy Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

ToJSON DescribeFirewallPolicy Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

AWSRequest DescribeFirewallPolicy Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

Associated Types

type AWSResponse DescribeFirewallPolicy #

ToHeaders DescribeFirewallPolicy Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

ToPath DescribeFirewallPolicy Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

ToQuery DescribeFirewallPolicy Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

type Rep DescribeFirewallPolicy Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

type Rep DescribeFirewallPolicy = D1 ('MetaData "DescribeFirewallPolicy" "Amazonka.NetworkFirewall.DescribeFirewallPolicy" "libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall" 'False) (C1 ('MetaCons "DescribeFirewallPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "firewallPolicyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "firewallPolicyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))
type AWSResponse DescribeFirewallPolicy Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

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.

Constructors

DescribeFirewallPolicyResponse' 

Fields

  • firewallPolicy :: Maybe FirewallPolicy

    The policy for the specified firewall policy.

  • httpStatus :: Int

    The response's http status code.

  • updateToken :: Text

    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.

  • firewallPolicyResponse :: 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.

Instances

Instances details
Eq DescribeFirewallPolicyResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

Read DescribeFirewallPolicyResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

Show DescribeFirewallPolicyResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

Generic DescribeFirewallPolicyResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

Associated Types

type Rep DescribeFirewallPolicyResponse :: Type -> Type #

NFData DescribeFirewallPolicyResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

type Rep DescribeFirewallPolicyResponse Source # 
Instance details

Defined in Amazonka.NetworkFirewall.DescribeFirewallPolicy

type Rep DescribeFirewallPolicyResponse = D1 ('MetaData "DescribeFirewallPolicyResponse" "Amazonka.NetworkFirewall.DescribeFirewallPolicy" "libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall" 'False) (C1 ('MetaCons "DescribeFirewallPolicyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "firewallPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FirewallPolicy)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "updateToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "firewallPolicyResponse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FirewallPolicyResponse))))

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_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.