Class: Aws::EC2::Types::CreateFlowLogsRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::CreateFlowLogsRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
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
-
#client_token ⇒ String
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
-
#deliver_logs_permission_arn ⇒ String
The ARN for the IAM role that’s used to post flow logs to a CloudWatch Logs log group.
-
#log_group_name ⇒ String
The name of the CloudWatch log group.
-
#resource_ids ⇒ Array<String>
One or more subnet, network interface, or VPC IDs.
-
#resource_type ⇒ String
The type of resource on which to create the flow log.
-
#traffic_type ⇒ String
The type of traffic to log.
Instance Attribute Details
#client_token ⇒ String
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
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_arn ⇒ String
The ARN for the IAM role that’s used to post flow logs to a CloudWatch Logs log group.
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_name ⇒ String
The name of the CloudWatch log group.
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_ids ⇒ Array<String>
One or more subnet, network interface, or VPC IDs.
Constraints: Maximum of 1000 resources
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_type ⇒ String
The type of resource on which to create the flow log.
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_type ⇒ String
The type of traffic to log.
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 |