You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/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.

Returns:

  • (String)


2664
2665
2666
2667
2668
2669
2670
2671
2672
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 2664

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)


2664
2665
2666
2667
2668
2669
2670
2671
2672
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 2664

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)


2664
2665
2666
2667
2668
2669
2670
2671
2672
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 2664

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


2664
2665
2666
2667
2668
2669
2670
2671
2672
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 2664

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)


2664
2665
2666
2667
2668
2669
2670
2671
2672
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 2664

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)


2664
2665
2666
2667
2668
2669
2670
2671
2672
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 2664

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