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

Description

Retrieves violations for a resource based on the specified Firewall Manager policy and Amazon Web Services account.

Synopsis

Creating a Request

data GetViolationDetails Source #

See: newGetViolationDetails smart constructor.

Constructors

GetViolationDetails' 

Fields

  • policyId :: Text

    The ID of the Firewall Manager policy that you want the details for. This currently only supports security group content audit policies.

  • memberAccount :: Text

    The Amazon Web Services account ID that you want the details for.

  • resourceId :: Text

    The ID of the resource that has violations.

  • resourceType :: Text

    The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. Supported resource types are: AWS::EC2::Instance, AWS::EC2::NetworkInterface, AWS::EC2::SecurityGroup, AWS::NetworkFirewall::FirewallPolicy, and AWS::EC2::Subnet.

Instances

Instances details
Eq GetViolationDetails Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

Read GetViolationDetails Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

Show GetViolationDetails Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

Generic GetViolationDetails Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

Associated Types

type Rep GetViolationDetails :: Type -> Type #

NFData GetViolationDetails Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

Methods

rnf :: GetViolationDetails -> () #

Hashable GetViolationDetails Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

ToJSON GetViolationDetails Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

AWSRequest GetViolationDetails Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

Associated Types

type AWSResponse GetViolationDetails #

ToHeaders GetViolationDetails Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

ToPath GetViolationDetails Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

ToQuery GetViolationDetails Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

type Rep GetViolationDetails Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

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

Defined in Amazonka.FMS.GetViolationDetails

newGetViolationDetails Source #

Create a value of GetViolationDetails 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:GetViolationDetails', getViolationDetails_policyId - The ID of the Firewall Manager policy that you want the details for. This currently only supports security group content audit policies.

$sel:memberAccount:GetViolationDetails', getViolationDetails_memberAccount - The Amazon Web Services account ID that you want the details for.

$sel:resourceId:GetViolationDetails', getViolationDetails_resourceId - The ID of the resource that has violations.

$sel:resourceType:GetViolationDetails', getViolationDetails_resourceType - The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. Supported resource types are: AWS::EC2::Instance, AWS::EC2::NetworkInterface, AWS::EC2::SecurityGroup, AWS::NetworkFirewall::FirewallPolicy, and AWS::EC2::Subnet.

Request Lenses

getViolationDetails_policyId :: Lens' GetViolationDetails Text Source #

The ID of the Firewall Manager policy that you want the details for. This currently only supports security group content audit policies.

getViolationDetails_memberAccount :: Lens' GetViolationDetails Text Source #

The Amazon Web Services account ID that you want the details for.

getViolationDetails_resourceId :: Lens' GetViolationDetails Text Source #

The ID of the resource that has violations.

getViolationDetails_resourceType :: Lens' GetViolationDetails Text Source #

The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. Supported resource types are: AWS::EC2::Instance, AWS::EC2::NetworkInterface, AWS::EC2::SecurityGroup, AWS::NetworkFirewall::FirewallPolicy, and AWS::EC2::Subnet.

Destructuring the Response

data GetViolationDetailsResponse Source #

See: newGetViolationDetailsResponse smart constructor.

Constructors

GetViolationDetailsResponse' 

Fields

Instances

Instances details
Eq GetViolationDetailsResponse Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

Read GetViolationDetailsResponse Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

Show GetViolationDetailsResponse Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

Generic GetViolationDetailsResponse Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

Associated Types

type Rep GetViolationDetailsResponse :: Type -> Type #

NFData GetViolationDetailsResponse Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

type Rep GetViolationDetailsResponse Source # 
Instance details

Defined in Amazonka.FMS.GetViolationDetails

type Rep GetViolationDetailsResponse = D1 ('MetaData "GetViolationDetailsResponse" "Amazonka.FMS.GetViolationDetails" "libZSservicesZSamazonka-fmsZSamazonka-fms" 'False) (C1 ('MetaCons "GetViolationDetailsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "violationDetail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ViolationDetail)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetViolationDetailsResponse Source #

Create a value of GetViolationDetailsResponse 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:violationDetail:GetViolationDetailsResponse', getViolationDetailsResponse_violationDetail - Violation detail for a resource.

$sel:httpStatus:GetViolationDetailsResponse', getViolationDetailsResponse_httpStatus - The response's http status code.

Response Lenses