Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Retrieves violations for a resource based on the specified Firewall Manager policy and Amazon Web Services account.
Synopsis
- data GetViolationDetails = GetViolationDetails' {
- policyId :: Text
- memberAccount :: Text
- resourceId :: Text
- resourceType :: Text
- newGetViolationDetails :: Text -> Text -> Text -> Text -> GetViolationDetails
- getViolationDetails_policyId :: Lens' GetViolationDetails Text
- getViolationDetails_memberAccount :: Lens' GetViolationDetails Text
- getViolationDetails_resourceId :: Lens' GetViolationDetails Text
- getViolationDetails_resourceType :: Lens' GetViolationDetails Text
- data GetViolationDetailsResponse = GetViolationDetailsResponse' {}
- newGetViolationDetailsResponse :: Int -> GetViolationDetailsResponse
- getViolationDetailsResponse_violationDetail :: Lens' GetViolationDetailsResponse (Maybe ViolationDetail)
- getViolationDetailsResponse_httpStatus :: Lens' GetViolationDetailsResponse Int
Creating a Request
data GetViolationDetails Source #
See: newGetViolationDetails
smart constructor.
GetViolationDetails' | |
|
Instances
newGetViolationDetails Source #
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> GetViolationDetails |
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.
GetViolationDetailsResponse' | |
|
Instances
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
getViolationDetailsResponse_violationDetail :: Lens' GetViolationDetailsResponse (Maybe ViolationDetail) Source #
Violation detail for a resource.
getViolationDetailsResponse_httpStatus :: Lens' GetViolationDetailsResponse Int Source #
The response's http status code.