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.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

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:

data CreateFlowLogs #

Contains the parameters for CreateFlowLogs.

See: createFlowLogs smart constructor.

Instances

Eq CreateFlowLogs # 
Data CreateFlowLogs # 

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 # 
Show CreateFlowLogs # 
Generic CreateFlowLogs # 

Associated Types

type Rep CreateFlowLogs :: * -> * #

Hashable CreateFlowLogs # 
NFData CreateFlowLogs # 

Methods

rnf :: CreateFlowLogs -> () #

AWSRequest CreateFlowLogs # 
ToQuery CreateFlowLogs # 
ToPath CreateFlowLogs # 
ToHeaders CreateFlowLogs # 
type Rep CreateFlowLogs # 
type Rep CreateFlowLogs = D1 (MetaData "CreateFlowLogs" "Network.AWS.EC2.CreateFlowLogs" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" 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 # 

Request Lenses

cflClientToken :: Lens' CreateFlowLogs (Maybe Text) #

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

One or more subnet, network interface, or VPC IDs. Constraints: Maximum of 1000 resources

cflResourceType :: Lens' CreateFlowLogs FlowLogsResourceType #

The type of resource on which to create the flow log.

cflTrafficType :: Lens' CreateFlowLogs TrafficType #

The type of traffic to log.

cflLogGroupName :: Lens' CreateFlowLogs Text #

The name of the CloudWatch log group.

cflDeliverLogsPermissionARN :: Lens' CreateFlowLogs Text #

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

Destructuring the Response

createFlowLogsResponse #

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 #

Contains the output of CreateFlowLogs.

See: createFlowLogsResponse smart constructor.

Instances

Eq CreateFlowLogsResponse # 
Data CreateFlowLogsResponse # 

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 # 
Show CreateFlowLogsResponse # 
Generic CreateFlowLogsResponse # 
NFData CreateFlowLogsResponse # 

Methods

rnf :: CreateFlowLogsResponse -> () #

type Rep CreateFlowLogsResponse # 
type Rep CreateFlowLogsResponse = D1 (MetaData "CreateFlowLogsResponse" "Network.AWS.EC2.CreateFlowLogs" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" 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] #

Information about the flow logs that could not be created successfully.

cflrsClientToken :: Lens' CreateFlowLogsResponse (Maybe Text) #

Unique, case-sensitive identifier you provide to ensure the idempotency of the request.

cflrsFlowLogIds :: Lens' CreateFlowLogsResponse [Text] #

The IDs of the flow logs.

cflrsResponseStatus :: Lens' CreateFlowLogsResponse Int #

  • - | The response status code.