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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Data DescribeFlowLogs # 
Instance details

Defined in Network.AWS.EC2.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 # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Show DescribeFlowLogs # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Generic DescribeFlowLogs # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Associated Types

type Rep DescribeFlowLogs :: * -> * #

Hashable DescribeFlowLogs # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

AWSRequest DescribeFlowLogs # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Associated Types

type Rs DescribeFlowLogs :: * #

ToHeaders DescribeFlowLogs # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

ToPath DescribeFlowLogs # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

ToQuery DescribeFlowLogs # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

NFData DescribeFlowLogs # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Methods

rnf :: DescribeFlowLogs -> () #

type Rep DescribeFlowLogs # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

type Rep DescribeFlowLogs = D1 (MetaData "DescribeFlowLogs" "Network.AWS.EC2.DescribeFlowLogs" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "DescribeFlowLogs'" PrefixI True) ((S1 (MetaSel (Just "_dNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dFlowLogIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 (MetaSel (Just "_dFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter])) :*: S1 (MetaSel (Just "_dMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))))
type Rs DescribeFlowLogs # 
Instance details

Defined in Network.AWS.EC2.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 # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Data DescribeFlowLogsResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

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 # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Show DescribeFlowLogsResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Generic DescribeFlowLogsResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Associated Types

type Rep DescribeFlowLogsResponse :: * -> * #

NFData DescribeFlowLogsResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

type Rep DescribeFlowLogsResponse # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

type Rep DescribeFlowLogsResponse = D1 (MetaData "DescribeFlowLogsResponse" "Network.AWS.EC2.DescribeFlowLogs" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "DescribeFlowLogsResponse'" PrefixI True) (S1 (MetaSel (Just "_dflsrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_dflsrsFlowLogs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [FlowLog])) :*: S1 (MetaSel (Just "_dflsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (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.