Class: Aws::ECS::Types::FirelensConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb

Overview

Note:

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

{
  type: "fluentd", # required, accepts fluentd, fluentbit
  options: {
    "String" => "String",
  },
}

The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more information, see Custom Log Routing in the Amazon Elastic Container Service Developer Guide.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#optionsHash<String,String>

The options to use when configuring the log router. This field is optional and can be used to specify a custom configuration file or to add additional metadata, such as the task, task definition, cluster, and container instance details to the log event. If specified, the syntax to use is "options":\{"enable-ecs-log-metadata":"true|false","config-file-type:"s3|file","config-file-value":"arn:aws:s3:::mybucket/fluent.conf|filepath"\}. For more information, see Creating a Task Definition that Uses a FireLens Configuration in the Amazon Elastic Container Service Developer Guide.

Tasks hosted on AWS Fargate only support the file configuration file type.

Returns:

  • (Hash<String,String>)


5219
5220
5221
5222
5223
5224
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 5219

class FirelensConfiguration < Struct.new(
  :type,
  :options)
  SENSITIVE = []
  include Aws::Structure
end

#typeString

The log router to use. The valid values are fluentd or fluentbit.

Returns:

  • (String)


5219
5220
5221
5222
5223
5224
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 5219

class FirelensConfiguration < Struct.new(
  :type,
  :options)
  SENSITIVE = []
  include Aws::Structure
end