Class: Aws::EC2::Types::CreateFlowLogsRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass CreateFlowLogsRequest data as a hash:

{
  client_token: "String",
  deliver_logs_permission_arn: "String", # required
  log_group_name: "String", # required
  resource_ids: ["String"], # required
  resource_type: "VPC", # required, accepts VPC, Subnet, NetworkInterface
  traffic_type: "ACCEPT", # required, accepts ACCEPT, REJECT, ALL
}

Contains the parameters for CreateFlowLogs.

Instance Attribute Summary collapse

Instance Attribute Details

#client_tokenString

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see [How to Ensure Idempotency].

[1]: docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html

Returns:

  • (String)


2589
2590
2591
2592
2593
2594
2595
2596
2597
# File 'lib/aws-sdk-ec2/types.rb', line 2589

class CreateFlowLogsRequest < Struct.new(
  :client_token,
  :deliver_logs_permission_arn,
  :log_group_name,
  :resource_ids,
  :resource_type,
  :traffic_type)
  include Aws::Structure
end

#deliver_logs_permission_arnString

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

Returns:

  • (String)


2589
2590
2591
2592
2593
2594
2595
2596
2597
# File 'lib/aws-sdk-ec2/types.rb', line 2589

class CreateFlowLogsRequest < Struct.new(
  :client_token,
  :deliver_logs_permission_arn,
  :log_group_name,
  :resource_ids,
  :resource_type,
  :traffic_type)
  include Aws::Structure
end

#log_group_nameString

The name of the CloudWatch log group.

Returns:

  • (String)


2589
2590
2591
2592
2593
2594
2595
2596
2597
# File 'lib/aws-sdk-ec2/types.rb', line 2589

class CreateFlowLogsRequest < Struct.new(
  :client_token,
  :deliver_logs_permission_arn,
  :log_group_name,
  :resource_ids,
  :resource_type,
  :traffic_type)
  include Aws::Structure
end

#resource_idsArray<String>

One or more subnet, network interface, or VPC IDs.

Constraints: Maximum of 1000 resources

Returns:

  • (Array<String>)


2589
2590
2591
2592
2593
2594
2595
2596
2597
# File 'lib/aws-sdk-ec2/types.rb', line 2589

class CreateFlowLogsRequest < Struct.new(
  :client_token,
  :deliver_logs_permission_arn,
  :log_group_name,
  :resource_ids,
  :resource_type,
  :traffic_type)
  include Aws::Structure
end

#resource_typeString

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

Returns:

  • (String)


2589
2590
2591
2592
2593
2594
2595
2596
2597
# File 'lib/aws-sdk-ec2/types.rb', line 2589

class CreateFlowLogsRequest < Struct.new(
  :client_token,
  :deliver_logs_permission_arn,
  :log_group_name,
  :resource_ids,
  :resource_type,
  :traffic_type)
  include Aws::Structure
end

#traffic_typeString

The type of traffic to log.

Returns:

  • (String)


2589
2590
2591
2592
2593
2594
2595
2596
2597
# File 'lib/aws-sdk-ec2/types.rb', line 2589

class CreateFlowLogsRequest < Struct.new(
  :client_token,
  :deliver_logs_permission_arn,
  :log_group_name,
  :resource_ids,
  :resource_type,
  :traffic_type)
  include Aws::Structure
end