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

Description

Creates an Firewall Manager policy.

Firewall Manager provides the following types of policies:

  • An WAF policy (type WAFV2), which defines rule groups to run first in the corresponding WAF web ACL and rule groups to run last in the web ACL.
  • An WAF Classic policy (type WAF), which defines a rule group.
  • A Shield Advanced policy, which applies Shield Advanced protection to specified accounts and resources.
  • A security group policy, which manages VPC security groups across your Amazon Web Services organization.
  • An Network Firewall policy, which provides firewall rules to filter network traffic in specified Amazon VPCs.
  • A DNS Firewall policy, which provides Route 53 Resolver DNS Firewall rules to filter DNS queries for specified VPCs.

Each policy is specific to one of the types. If you want to enforce more than one policy type across accounts, create multiple policies. You can create multiple policies for each type.

You must be subscribed to Shield Advanced to create a Shield Advanced policy. For more information about subscribing to Shield Advanced, see CreateSubscription.

Synopsis

Creating a Request

data PutPolicy Source #

See: newPutPolicy smart constructor.

Constructors

PutPolicy' 

Fields

  • tagList :: Maybe [Tag]

    The tags to add to the Amazon Web Services resource.

  • policy :: Policy

    The details of the Firewall Manager policy to be created.

Instances

Instances details
ToJSON PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

ToHeaders PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Methods

toHeaders :: PutPolicy -> [Header] #

ToPath PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

ToQuery PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

AWSRequest PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Associated Types

type AWSResponse PutPolicy #

Generic PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Associated Types

type Rep PutPolicy :: Type -> Type #

Read PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Show PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

NFData PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Methods

rnf :: PutPolicy -> () #

Eq PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Hashable PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

type AWSResponse PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

type Rep PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

type Rep PutPolicy = D1 ('MetaData "PutPolicy" "Amazonka.FMS.PutPolicy" "amazonka-fms-2.0-351knTjuYAjE9GRQTo0ohx" 'False) (C1 ('MetaCons "PutPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tagList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "policy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Policy)))

newPutPolicy Source #

Arguments

:: Policy

PutPolicy

-> PutPolicy 

Create a value of PutPolicy 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:tagList:PutPolicy', putPolicy_tagList - The tags to add to the Amazon Web Services resource.

PutPolicy, putPolicy_policy - The details of the Firewall Manager policy to be created.

Request Lenses

putPolicy_tagList :: Lens' PutPolicy (Maybe [Tag]) Source #

The tags to add to the Amazon Web Services resource.

putPolicy_policy :: Lens' PutPolicy Policy Source #

The details of the Firewall Manager policy to be created.

Destructuring the Response

data PutPolicyResponse Source #

See: newPutPolicyResponse smart constructor.

Constructors

PutPolicyResponse' 

Fields

Instances

Instances details
Generic PutPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Associated Types

type Rep PutPolicyResponse :: Type -> Type #

Read PutPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Show PutPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

NFData PutPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Methods

rnf :: PutPolicyResponse -> () #

Eq PutPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

type Rep PutPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

type Rep PutPolicyResponse = D1 ('MetaData "PutPolicyResponse" "Amazonka.FMS.PutPolicy" "amazonka-fms-2.0-351knTjuYAjE9GRQTo0ohx" 'False) (C1 ('MetaCons "PutPolicyResponse'" '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))))

newPutPolicyResponse Source #

Create a value of PutPolicyResponse 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:

PutPolicy, putPolicyResponse_policy - The details of the Firewall Manager policy.

PutPolicyResponse, putPolicyResponse_policyArn - The Amazon Resource Name (ARN) of the policy.

$sel:httpStatus:PutPolicyResponse', putPolicyResponse_httpStatus - The response's http status code.

Response Lenses

putPolicyResponse_policy :: Lens' PutPolicyResponse (Maybe Policy) Source #

The details of the Firewall Manager policy.

putPolicyResponse_policyArn :: Lens' PutPolicyResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the policy.

putPolicyResponse_httpStatus :: Lens' PutPolicyResponse Int Source #

The response's http status code.