amazonka-ec2-1.4.4: 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.CreateFlowLogs

Contents

Description

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.

Synopsis

Creating a Request

data CreateFlowLogs Source #

Contains the parameters for CreateFlowLogs.

See: createFlowLogs smart constructor.

Instances

Eq CreateFlowLogs Source # 
Data CreateFlowLogs Source # 

Methods

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

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

toConstr :: CreateFlowLogs -> Constr #

dataTypeOf :: CreateFlowLogs -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateFlowLogs Source # 
Show CreateFlowLogs Source # 
Generic CreateFlowLogs Source # 

Associated Types

type Rep CreateFlowLogs :: * -> * #

Hashable CreateFlowLogs Source # 
NFData CreateFlowLogs Source # 

Methods

rnf :: CreateFlowLogs -> () #

AWSRequest CreateFlowLogs Source # 
ToPath CreateFlowLogs Source # 
ToHeaders CreateFlowLogs Source # 
ToQuery CreateFlowLogs Source # 
type Rep CreateFlowLogs Source # 
type Rep CreateFlowLogs = D1 (MetaData "CreateFlowLogs" "Network.AWS.EC2.CreateFlowLogs" "amazonka-ec2-1.4.4-4aYNmHv73MpJXVQjlVKYjQ" False) (C1 (MetaCons "CreateFlowLogs'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cflClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_cflResourceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])) (S1 (MetaSel (Just Symbol "_cflResourceType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 FlowLogsResourceType)))) ((:*:) (S1 (MetaSel (Just Symbol "_cflTrafficType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TrafficType)) ((:*:) (S1 (MetaSel (Just Symbol "_cflLogGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cflDeliverLogsPermissionARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs CreateFlowLogs Source # 

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.

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.

cflLogGroupName :: Lens' CreateFlowLogs Text Source #

The name of the CloudWatch log group.

cflDeliverLogsPermissionARN :: Lens' CreateFlowLogs Text Source #

The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs log group.

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:

data CreateFlowLogsResponse Source #

Contains the output of CreateFlowLogs.

See: createFlowLogsResponse smart constructor.

Instances

Eq CreateFlowLogsResponse Source # 
Data CreateFlowLogsResponse Source # 

Methods

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

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

toConstr :: CreateFlowLogsResponse -> Constr #

dataTypeOf :: CreateFlowLogsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateFlowLogsResponse Source # 
Show CreateFlowLogsResponse Source # 
Generic CreateFlowLogsResponse Source # 
NFData CreateFlowLogsResponse Source # 

Methods

rnf :: CreateFlowLogsResponse -> () #

type Rep CreateFlowLogsResponse Source # 
type Rep CreateFlowLogsResponse = D1 (MetaData "CreateFlowLogsResponse" "Network.AWS.EC2.CreateFlowLogs" "amazonka-ec2-1.4.4-4aYNmHv73MpJXVQjlVKYjQ" False) (C1 (MetaCons "CreateFlowLogsResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cflrsUnsuccessful") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [UnsuccessfulItem]))) (S1 (MetaSel (Just Symbol "_cflrsClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_cflrsFlowLogIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_cflrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

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.