aws-cdk-lib.aws_ecs.SplunkLogDriver

class SplunkLogDriver

LanguageType name
.NETAmazon.CDK.AWS.ECS.SplunkLogDriver
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#SplunkLogDriver
Javasoftware.amazon.awscdk.services.ecs.SplunkLogDriver
Pythonaws_cdk.aws_ecs.SplunkLogDriver
TypeScript (source)aws-cdk-lib » aws_ecs » SplunkLogDriver

Extends LogDriver

A log driver that sends log information to splunk Logs.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';

declare const secret: ecs.Secret;
const splunkLogDriver = new ecs.SplunkLogDriver({
  secretToken: secret,
  url: 'url',

  // the properties below are optional
  caName: 'caName',
  caPath: 'caPath',
  env: ['env'],
  envRegex: 'envRegex',
  format: ecs.SplunkLogFormat.INLINE,
  gzip: false,
  gzipLevel: 123,
  index: 'index',
  insecureSkipVerify: 'insecureSkipVerify',
  labels: ['labels'],
  source: 'source',
  sourceType: 'sourceType',
  tag: 'tag',
  verifyConnection: false,
});

Initializer

new SplunkLogDriver(props: SplunkLogDriverProps)

Parameters

  • props SplunkLogDriverProps — the splunk log driver configuration options.

Constructs a new instance of the SplunkLogDriver class.

Methods

NameDescription
bind(_scope, _containerDefinition)Called when the log driver is configured on a container.

bind(_scope, _containerDefinition)

public bind(_scope: Construct, _containerDefinition: ContainerDefinition): LogDriverConfig

Parameters

  • _scope Construct
  • _containerDefinition ContainerDefinition

Returns

  • LogDriverConfig

Called when the log driver is configured on a container.