amazonka-ec2-1.6.1: 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 Source #

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 Source #

Contains the parameters for DescribeFlowLogs.

See: describeFlowLogs smart constructor.

Instances
Eq DescribeFlowLogs Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Data DescribeFlowLogs Source # 
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 Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Show DescribeFlowLogs Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Generic DescribeFlowLogs Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Associated Types

type Rep DescribeFlowLogs :: Type -> Type #

Hashable DescribeFlowLogs Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

AWSRequest DescribeFlowLogs Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Associated Types

type Rs DescribeFlowLogs :: Type #

ToHeaders DescribeFlowLogs Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

ToPath DescribeFlowLogs Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

ToQuery DescribeFlowLogs Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

NFData DescribeFlowLogs Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Methods

rnf :: DescribeFlowLogs -> () #

type Rep DescribeFlowLogs Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

type Rep DescribeFlowLogs = D1 (MetaData "DescribeFlowLogs" "Network.AWS.EC2.DescribeFlowLogs" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" 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 Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Request Lenses

dNextToken :: Lens' DescribeFlowLogs (Maybe Text) Source #

The token to retrieve the next page of results.

dFlowLogIds :: Lens' DescribeFlowLogs [Text] Source #

One or more flow log IDs.

dFilter :: Lens' DescribeFlowLogs [Filter] Source #

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) Source #

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 Source #

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 Source #

Contains the output of DescribeFlowLogs.

See: describeFlowLogsResponse smart constructor.

Instances
Eq DescribeFlowLogsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Data DescribeFlowLogsResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Show DescribeFlowLogsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Generic DescribeFlowLogsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

Associated Types

type Rep DescribeFlowLogsResponse :: Type -> Type #

NFData DescribeFlowLogsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

type Rep DescribeFlowLogsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeFlowLogs

type Rep DescribeFlowLogsResponse = D1 (MetaData "DescribeFlowLogsResponse" "Network.AWS.EC2.DescribeFlowLogs" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" 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) Source #

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] Source #

Information about the flow logs.