amazonka-fms-2.0: Amazon Firewall Management Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.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

AWSRequest GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Associated Types

type AWSResponse GetPolicy #

Generic GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Associated Types

type Rep GetPolicy :: Type -> Type #

Read GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Show GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

NFData GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Methods

rnf :: GetPolicy -> () #

Eq GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Hashable GetPolicy Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

type AWSResponse 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" "amazonka-fms-2.0-351knTjuYAjE9GRQTo0ohx" 'False) (C1 ('MetaCons "GetPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetPolicy Source #

Arguments

:: Text

GetPolicy

-> GetPolicy 

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:

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
Generic GetPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Associated Types

type Rep GetPolicyResponse :: Type -> Type #

Read GetPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Show GetPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

NFData GetPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

Methods

rnf :: GetPolicyResponse -> () #

Eq GetPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

type Rep GetPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.GetPolicy

type Rep GetPolicyResponse = D1 ('MetaData "GetPolicyResponse" "Amazonka.FMS.GetPolicy" "amazonka-fms-2.0-351knTjuYAjE9GRQTo0ohx" 'False) (C1 ('MetaCons "GetPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Policy)) :*: (S1 ('MetaSel ('Just "policyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:policy:GetPolicyResponse', getPolicyResponse_policy - Information about the specified Firewall Manager policy.

GetPolicyResponse, getPolicyResponse_policyArn - The Amazon Resource Name (ARN) of the specified policy.

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

Response Lenses

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

Information about the specified Firewall Manager policy.

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

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

getPolicyResponse_httpStatus :: Lens' GetPolicyResponse Int Source #

The response's http status code.