amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.Types.FlowLog

Description

 
Synopsis

Documentation

data FlowLog Source #

Describes a flow log.

See: newFlowLog smart constructor.

Constructors

FlowLog' 

Fields

Instances

Instances details
FromXML FlowLog Source # 
Instance details

Defined in Amazonka.EC2.Types.FlowLog

Generic FlowLog Source # 
Instance details

Defined in Amazonka.EC2.Types.FlowLog

Associated Types

type Rep FlowLog :: Type -> Type #

Methods

from :: FlowLog -> Rep FlowLog x #

to :: Rep FlowLog x -> FlowLog #

Read FlowLog Source # 
Instance details

Defined in Amazonka.EC2.Types.FlowLog

Show FlowLog Source # 
Instance details

Defined in Amazonka.EC2.Types.FlowLog

NFData FlowLog Source # 
Instance details

Defined in Amazonka.EC2.Types.FlowLog

Methods

rnf :: FlowLog -> () #

Eq FlowLog Source # 
Instance details

Defined in Amazonka.EC2.Types.FlowLog

Methods

(==) :: FlowLog -> FlowLog -> Bool #

(/=) :: FlowLog -> FlowLog -> Bool #

Hashable FlowLog Source # 
Instance details

Defined in Amazonka.EC2.Types.FlowLog

Methods

hashWithSalt :: Int -> FlowLog -> Int #

hash :: FlowLog -> Int #

type Rep FlowLog Source # 
Instance details

Defined in Amazonka.EC2.Types.FlowLog

type Rep FlowLog = D1 ('MetaData "FlowLog" "Amazonka.EC2.Types.FlowLog" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "FlowLog'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "deliverCrossAccountRole") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "deliverLogsErrorMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "deliverLogsPermissionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "deliverLogsStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "destinationOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DestinationOptionsResponse))) :*: (S1 ('MetaSel ('Just "flowLogId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "flowLogStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "logDestination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "logDestinationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LogDestinationType))) :*: (S1 ('MetaSel ('Just "logFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "logGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "maxAggregationInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "trafficType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TrafficType)))))))

newFlowLog :: FlowLog Source #

Create a value of FlowLog with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:creationTime:FlowLog', flowLog_creationTime - The date and time the flow log was created.

$sel:deliverCrossAccountRole:FlowLog', flowLog_deliverCrossAccountRole - The ARN of the IAM role that allows the service to publish flow logs across accounts.

$sel:deliverLogsErrorMessage:FlowLog', flowLog_deliverLogsErrorMessage - Information about the error that occurred. Rate limited indicates that CloudWatch Logs throttling has been applied for one or more network interfaces, or that you've reached the limit on the number of log groups that you can create. Access error indicates that the IAM role associated with the flow log does not have sufficient permissions to publish to CloudWatch Logs. Unknown error indicates an internal error.

$sel:deliverLogsPermissionArn:FlowLog', flowLog_deliverLogsPermissionArn - The ARN of the IAM role allows the service to publish logs to CloudWatch Logs.

$sel:deliverLogsStatus:FlowLog', flowLog_deliverLogsStatus - The status of the logs delivery (SUCCESS | FAILED).

$sel:destinationOptions:FlowLog', flowLog_destinationOptions - The destination options.

$sel:flowLogId:FlowLog', flowLog_flowLogId - The ID of the flow log.

$sel:flowLogStatus:FlowLog', flowLog_flowLogStatus - The status of the flow log (ACTIVE).

$sel:logDestination:FlowLog', flowLog_logDestination - The Amazon Resource Name (ARN) of the destination for the flow log data.

$sel:logDestinationType:FlowLog', flowLog_logDestinationType - The type of destination for the flow log data.

$sel:logFormat:FlowLog', flowLog_logFormat - The format of the flow log record.

$sel:logGroupName:FlowLog', flowLog_logGroupName - The name of the flow log group.

$sel:maxAggregationInterval:FlowLog', flowLog_maxAggregationInterval - The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow log record.

When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value.

Valid Values: 60 | 600

$sel:resourceId:FlowLog', flowLog_resourceId - The ID of the resource being monitored.

$sel:tags:FlowLog', flowLog_tags - The tags for the flow log.

$sel:trafficType:FlowLog', flowLog_trafficType - The type of traffic captured for the flow log.

flowLog_creationTime :: Lens' FlowLog (Maybe UTCTime) Source #

The date and time the flow log was created.

flowLog_deliverCrossAccountRole :: Lens' FlowLog (Maybe Text) Source #

The ARN of the IAM role that allows the service to publish flow logs across accounts.

flowLog_deliverLogsErrorMessage :: Lens' FlowLog (Maybe Text) Source #

Information about the error that occurred. Rate limited indicates that CloudWatch Logs throttling has been applied for one or more network interfaces, or that you've reached the limit on the number of log groups that you can create. Access error indicates that the IAM role associated with the flow log does not have sufficient permissions to publish to CloudWatch Logs. Unknown error indicates an internal error.

flowLog_deliverLogsPermissionArn :: Lens' FlowLog (Maybe Text) Source #

The ARN of the IAM role allows the service to publish logs to CloudWatch Logs.

flowLog_deliverLogsStatus :: Lens' FlowLog (Maybe Text) Source #

The status of the logs delivery (SUCCESS | FAILED).

flowLog_flowLogId :: Lens' FlowLog (Maybe Text) Source #

The ID of the flow log.

flowLog_flowLogStatus :: Lens' FlowLog (Maybe Text) Source #

The status of the flow log (ACTIVE).

flowLog_logDestination :: Lens' FlowLog (Maybe Text) Source #

The Amazon Resource Name (ARN) of the destination for the flow log data.

flowLog_logDestinationType :: Lens' FlowLog (Maybe LogDestinationType) Source #

The type of destination for the flow log data.

flowLog_logFormat :: Lens' FlowLog (Maybe Text) Source #

The format of the flow log record.

flowLog_logGroupName :: Lens' FlowLog (Maybe Text) Source #

The name of the flow log group.

flowLog_maxAggregationInterval :: Lens' FlowLog (Maybe Int) Source #

The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow log record.

When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value.

Valid Values: 60 | 600

flowLog_resourceId :: Lens' FlowLog (Maybe Text) Source #

The ID of the resource being monitored.

flowLog_tags :: Lens' FlowLog (Maybe [Tag]) Source #

The tags for the flow log.

flowLog_trafficType :: Lens' FlowLog (Maybe TrafficType) Source #

The type of traffic captured for the flow log.