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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateFlowLogsRequest as input to an Aws::Client method, you can use a vanilla 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)

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

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

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

#log_group_nameString

The name of the CloudWatch log group.

Returns:

  • (String)

    The name of the CloudWatch log group.

#resource_idsArray<String>

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

Constraints: Maximum of 1000 resources

Returns:

  • (Array<String>)

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

#resource_typeString

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

Possible values:

  • VPC
  • Subnet
  • NetworkInterface

Returns:

  • (String)

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

#traffic_typeString

The type of traffic to log.

Possible values:

  • ACCEPT
  • REJECT
  • ALL

Returns:

  • (String)

    The type of traffic to log.