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.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
Eq PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Read PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Show PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Generic PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Associated Types

type Rep PutPolicy :: Type -> Type #

NFData PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Methods

rnf :: PutPolicy -> () #

Hashable PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

ToJSON PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

AWSRequest PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Associated Types

type AWSResponse 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

type Rep PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

type Rep PutPolicy = D1 ('MetaData "PutPolicy" "Amazonka.FMS.PutPolicy" "libZSservicesZSamazonka-fmsZSamazonka-fms" '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)))
type AWSResponse PutPolicy Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

newPutPolicy Source #

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.

$sel:policy: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
Eq PutPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Read PutPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Show PutPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Generic PutPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Associated Types

type Rep PutPolicyResponse :: Type -> Type #

NFData PutPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

Methods

rnf :: PutPolicyResponse -> () #

type Rep PutPolicyResponse Source # 
Instance details

Defined in Amazonka.FMS.PutPolicy

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

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:

$sel:policyArn:PutPolicyResponse', putPolicyResponse_policyArn - The Amazon Resource Name (ARN) of the policy.

$sel:policy:PutPolicy', putPolicyResponse_policy - The details of the Firewall Manager policy.

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

Response Lenses

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

The Amazon Resource Name (ARN) of the policy.

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

The details of the Firewall Manager policy.

putPolicyResponse_httpStatus :: Lens' PutPolicyResponse Int Source #

The response's http status code.