Skip to content

(log): New ResourcePolicy construct not exported from index.js #17402

@matthias-pichler

Description

@matthias-pichler

What is the problem?

when importing

import * as logs from "@aws-cdk/aws-logs";

new logs.ResourcePolicy(...)

fails with something like: logs does not have property ResourcePolicy

And indeed when inspecting the PR that added it the lib/index.ts file wasn't updated with the new export

Reproduction Steps

import * as logs from "@aws-cdk/aws-logs";

new logs.ResourcePolicy(this, "Policy");

What did you expect to happen?

The new construct should be export just like others

What actually happened?

The export was forgotten

CDK CLI Version

1.131.0

Framework Version

1.131.0

Node.js Version

16.9.0

OS

macOS

Language

Typescript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-logsRelated to Amazon CloudWatch LogsbugThis issue is a bug.effort/smallSmall work item – less than a day of effortp1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions