libZSservicesZSamazonka-fmsZSamazonka-fms
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.FMS.GetPolicy

Description

Returns information about the specified Firewall Manager policy.

Synopsis

Creating a Request

data GetPolicy Source #

See: newGetPolicy smart constructor.

Constructors

GetPolicy' 

Fields

  • policyId :: Text

    The ID of the Firewall Manager policy that you want the details for.

Instances

Instances details
Eq GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Read GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Show GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Generic GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Associated Types

type Rep GetPolicy :: Type -> Type #

NFData GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Methods

rnf :: GetPolicy -> () #

Hashable GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

ToJSON GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

AWSRequest GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Associated Types

type AWSResponse GetPolicy #

ToHeaders GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Methods

toHeaders :: GetPolicy -> [Header] #

ToPath GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

ToQuery GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

type Rep GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

type Rep GetPolicy = D1 ('MetaData "GetPolicy" "Amazonka.FMS.GetPolicy" "libZSservicesZSamazonka-fmsZSamazonka-fms" 'False) (C1 ('MetaCons "GetPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

newGetPolicy Source #

Create a value of GetPolicy 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:policyId:GetPolicy', getPolicy_policyId - The ID of the Firewall Manager policy that you want the details for.

Request Lenses

getPolicy_policyId :: Lens' GetPolicy Text Source #

The ID of the Firewall Manager policy that you want the details for.

Destructuring the Response

data GetPolicyResponse Source #

See: newGetPolicyResponse smart constructor.

Constructors

GetPolicyResponse' 

Fields

Instances

Instances details
Eq GetPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Read GetPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Show GetPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Generic GetPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Associated Types

type Rep GetPolicyResponse :: Type -> Type #

NFData GetPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Methods

rnf :: GetPolicyResponse -> () #

type Rep GetPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

type Rep GetPolicyResponse = D1 ('MetaData "GetPolicyResponse" "Amazonka.FMS.GetPolicy" "libZSservicesZSamazonka-fmsZSamazonka-fms" 'False) (C1 ('MetaCons "GetPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Policy)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetPolicyResponse Source #

Create a value of GetPolicyResponse 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:policyArn:GetPolicyResponse', getPolicyResponse_policyArn - The Amazon Resource Name (ARN) of the specified policy.

$sel:policy:GetPolicyResponse', getPolicyResponse_policy - Information about the specified Firewall Manager policy.

$sel:httpStatus:GetPolicyResponse', getPolicyResponse_httpStatus - The response's http status code.

Response Lenses

getPolicyResponse_policyArn :: Lens' GetPolicyResponse (Maybe Text) Source #

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

getPolicyResponse_policy :: Lens' GetPolicyResponse (Maybe Policy) Source #

Information about the specified Firewall Manager policy.

getPolicyResponse_httpStatus :: Lens' GetPolicyResponse Int Source #

The response's http status code.