Skip to content

aws-cdk-lib: SplunkLogDriverProps does not accept token value #21744

@karlkranich

Description

@karlkranich

Describe the bug

When trying to provide a token to the SplunkLogDriver, I would like to provide the token as a string value as I did with CDKv1. CDK 2.38.1 internal errors say "Please provide either token or secretToken" and that if "secretToken" is not provided, that "token" will be used. But if token is provided, it says," 'token' does not exist in type 'SplunkLogDriverProps' ".

Expected Behavior

Should be able to provide "token" or "secretToken" in SplunkLogDriver props.

Current Behavior

If "token" is provided, get: Object literal may only specify known properties, and 'token' does not exist in type 'SplunkLogDriverProps'.

Reproduction Steps

Provide a token to SplunkLogDriver, and do not provide secretToken.

Possible Solution

Allow specifying "token" as with CDK v1.

Additional Information/Context

No response

CDK CLI Version

2.38.1

Framework Version

No response

Node.js Version

16.16.0

OS

macOS 12.5.1

Language

Typescript

Language Version

TypeScript 4.7.4

Other information

No response

Metadata

Metadata

Labels

aws-cdk-libRelated to the aws-cdk-lib packagedocumentationThis is a problem with documentation.effort/smallSmall work item – less than a day of effortp2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions