Skip to content

aws-s3: Bad type definition for objectsKeyPattern parameter #27481

@azatoth

Description

@azatoth

Describe the issue

The parameter objectsKeyPattern for grantRead(identity, objectsKeyPattern?) has the type any; But it seems it needs to be a string and nothing else.
I initially thought the parameter had to be a object due to the name.

Same wrong type is found for

  • grantDelete(identity, objectsKeyPattern?)
  • grantPut(identity, objectsKeyPattern?)
  • grantReadWrite(identity, objectsKeyPattern?)
  • grantWrite(identity, objectsKeyPattern?, allowedActionPatterns?)

Incidentally grantPutAcl(identity, objectsKeyPattern?) has correct type.

Links

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-s3Related to Amazon S3bugThis issue is a bug.documentationThis is a problem with documentation.effort/smallSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdp2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions