Skip to content

Ref for PreparedStatement resource does not follow documentation #37

@mjalkio

Description

@mjalkio

The AWS::Athena::PreparedStatement resource is documented with the following description:

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the name of the prepared statement.

However when I define:

  ExampleStatement:
    Type: AWS::Athena::PreparedStatement
    Properties:
      Description: Example for Slack.
      QueryStatement: SELECT 1
      StatementName: Test
      WorkGroup: primary

And then use !Ref ExampleStatement it returns Test|primary. I believe that this is a bug. I believe the behavior in the documentation is preferred, my example should return Test. However, I haven't gone very deep with prepared statements, so it's possible that Test|primary is better for a reason I'm unaware of.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions