Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates one or more flow logs to capture IP traffic for a specific network interface, subnet, or VPC. Flow logs are delivered to a specified log group in Amazon CloudWatch Logs. If you specify a VPC or subnet in the request, a log stream is created in CloudWatch Logs for each network interface in the subnet or VPC. Log streams can include information about accepted and rejected traffic to a network interface. You can view the data in your log streams using Amazon CloudWatch Logs.
In your request, you must also specify an IAM role that has permission to publish logs to CloudWatch Logs.
For more information, see VPC Flow Logs in the Amazon Virtual Private Cloud User Guide .
- createFlowLogs :: Text -> Text -> FlowLogsResourceType -> TrafficType -> CreateFlowLogs
- data CreateFlowLogs
- cflClientToken :: Lens' CreateFlowLogs (Maybe Text)
- cflDeliverLogsPermissionARN :: Lens' CreateFlowLogs Text
- cflLogGroupName :: Lens' CreateFlowLogs Text
- cflResourceIds :: Lens' CreateFlowLogs [Text]
- cflResourceType :: Lens' CreateFlowLogs FlowLogsResourceType
- cflTrafficType :: Lens' CreateFlowLogs TrafficType
- createFlowLogsResponse :: Int -> CreateFlowLogsResponse
- data CreateFlowLogsResponse
- cflrsUnsuccessful :: Lens' CreateFlowLogsResponse [UnsuccessfulItem]
- cflrsClientToken :: Lens' CreateFlowLogsResponse (Maybe Text)
- cflrsFlowLogIds :: Lens' CreateFlowLogsResponse [Text]
- cflrsResponseStatus :: Lens' CreateFlowLogsResponse Int
Creating a Request
:: Text | |
-> Text | |
-> FlowLogsResourceType | |
-> TrafficType | |
-> CreateFlowLogs |
Creates a value of CreateFlowLogs
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cflClientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency .cflDeliverLogsPermissionARN
- The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.cflLogGroupName
- The name of the CloudWatch log group.cflResourceIds
- One or more subnet, network interface, or VPC IDs. Constraints: Maximum of 1000 resourcescflResourceType
- The type of resource on which to create the flow log.cflTrafficType
- The type of traffic to log.
data CreateFlowLogs Source #
Contains the parameters for CreateFlowLogs.
See: createFlowLogs
smart constructor.
Request Lenses
cflClientToken :: Lens' CreateFlowLogs (Maybe Text) Source #
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency .
cflDeliverLogsPermissionARN :: Lens' CreateFlowLogs Text Source #
The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.
cflLogGroupName :: Lens' CreateFlowLogs Text Source #
The name of the CloudWatch log group.
cflResourceIds :: Lens' CreateFlowLogs [Text] Source #
One or more subnet, network interface, or VPC IDs. Constraints: Maximum of 1000 resources
cflResourceType :: Lens' CreateFlowLogs FlowLogsResourceType Source #
The type of resource on which to create the flow log.
cflTrafficType :: Lens' CreateFlowLogs TrafficType Source #
The type of traffic to log.
Destructuring the Response
createFlowLogsResponse Source #
Creates a value of CreateFlowLogsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cflrsUnsuccessful
- Information about the flow logs that could not be created successfully.cflrsClientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request.cflrsFlowLogIds
- The IDs of the flow logs.cflrsResponseStatus
- -- | The response status code.
data CreateFlowLogsResponse Source #
Contains the output of CreateFlowLogs.
See: createFlowLogsResponse
smart constructor.
Response Lenses
cflrsUnsuccessful :: Lens' CreateFlowLogsResponse [UnsuccessfulItem] Source #
Information about the flow logs that could not be created successfully.
cflrsClientToken :: Lens' CreateFlowLogsResponse (Maybe Text) Source #
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
cflrsFlowLogIds :: Lens' CreateFlowLogsResponse [Text] Source #
The IDs of the flow logs.
cflrsResponseStatus :: Lens' CreateFlowLogsResponse Int Source #
- - | The response status code.