amazonka-ec2-1.4.5: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DescribeFlowLogs

Contents

Description

Describes one or more flow logs. To view the information in your flow logs (the log streams for the network interfaces), you must use the CloudWatch Logs console or the CloudWatch Logs API.

Synopsis

Creating a Request

describeFlowLogs :: DescribeFlowLogs #

Creates a value of DescribeFlowLogs with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dNextToken - The token to retrieve the next page of results.
  • dFlowLogIds - One or more flow log IDs.
  • dFilter - One or more filters. * deliver-log-status - The status of the logs delivery (SUCCESS | FAILED ). * flow-log-id - The ID of the flow log. * log-group-name - The name of the log group. * resource-id - The ID of the VPC, subnet, or network interface. * traffic-type - The type of traffic (ACCEPT | REJECT | ALL )
  • dMaxResults - The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. You cannot specify this parameter and the flow log IDs parameter in the same request.

data DescribeFlowLogs #

Contains the parameters for DescribeFlowLogs.

See: describeFlowLogs smart constructor.

Instances

Eq DescribeFlowLogs # 
Data DescribeFlowLogs # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeFlowLogs -> c DescribeFlowLogs #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeFlowLogs #

toConstr :: DescribeFlowLogs -> Constr #

dataTypeOf :: DescribeFlowLogs -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeFlowLogs) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeFlowLogs) #

gmapT :: (forall b. Data b => b -> b) -> DescribeFlowLogs -> DescribeFlowLogs #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeFlowLogs -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeFlowLogs -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeFlowLogs -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeFlowLogs -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeFlowLogs -> m DescribeFlowLogs #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeFlowLogs -> m DescribeFlowLogs #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeFlowLogs -> m DescribeFlowLogs #

Read DescribeFlowLogs # 
Show DescribeFlowLogs # 
Generic DescribeFlowLogs # 
Hashable DescribeFlowLogs # 
NFData DescribeFlowLogs # 

Methods

rnf :: DescribeFlowLogs -> () #

AWSRequest DescribeFlowLogs # 
ToQuery DescribeFlowLogs # 
ToPath DescribeFlowLogs # 
ToHeaders DescribeFlowLogs # 
type Rep DescribeFlowLogs # 
type Rep DescribeFlowLogs = D1 (MetaData "DescribeFlowLogs" "Network.AWS.EC2.DescribeFlowLogs" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DescribeFlowLogs'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dFlowLogIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))) ((:*:) (S1 (MetaSel (Just Symbol "_dFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter]))) (S1 (MetaSel (Just Symbol "_dMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))))))
type Rs DescribeFlowLogs # 

Request Lenses

dNextToken :: Lens' DescribeFlowLogs (Maybe Text) #

The token to retrieve the next page of results.

dFlowLogIds :: Lens' DescribeFlowLogs [Text] #

One or more flow log IDs.

dFilter :: Lens' DescribeFlowLogs [Filter] #

One or more filters. * deliver-log-status - The status of the logs delivery (SUCCESS | FAILED ). * flow-log-id - The ID of the flow log. * log-group-name - The name of the log group. * resource-id - The ID of the VPC, subnet, or network interface. * traffic-type - The type of traffic (ACCEPT | REJECT | ALL )

dMaxResults :: Lens' DescribeFlowLogs (Maybe Int) #

The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned NextToken value. This value can be between 5 and 1000; if MaxResults is given a value larger than 1000, only 1000 results are returned. You cannot specify this parameter and the flow log IDs parameter in the same request.

Destructuring the Response

describeFlowLogsResponse #

Creates a value of DescribeFlowLogsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DescribeFlowLogsResponse #

Contains the output of DescribeFlowLogs.

See: describeFlowLogsResponse smart constructor.

Instances

Eq DescribeFlowLogsResponse # 
Data DescribeFlowLogsResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeFlowLogsResponse -> c DescribeFlowLogsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeFlowLogsResponse #

toConstr :: DescribeFlowLogsResponse -> Constr #

dataTypeOf :: DescribeFlowLogsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeFlowLogsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeFlowLogsResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeFlowLogsResponse -> DescribeFlowLogsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeFlowLogsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeFlowLogsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeFlowLogsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeFlowLogsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeFlowLogsResponse -> m DescribeFlowLogsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeFlowLogsResponse -> m DescribeFlowLogsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeFlowLogsResponse -> m DescribeFlowLogsResponse #

Read DescribeFlowLogsResponse # 
Show DescribeFlowLogsResponse # 
Generic DescribeFlowLogsResponse # 
NFData DescribeFlowLogsResponse # 
type Rep DescribeFlowLogsResponse # 
type Rep DescribeFlowLogsResponse = D1 (MetaData "DescribeFlowLogsResponse" "Network.AWS.EC2.DescribeFlowLogs" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DescribeFlowLogsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dflsrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_dflsrsFlowLogs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [FlowLog]))) (S1 (MetaSel (Just Symbol "_dflsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

dflsrsNextToken :: Lens' DescribeFlowLogsResponse (Maybe Text) #

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

dflsrsFlowLogs :: Lens' DescribeFlowLogsResponse [FlowLog] #

Information about the flow logs.

dflsrsResponseStatus :: Lens' DescribeFlowLogsResponse Int #

  • - | The response status code.