Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support to fetch dynamoDB Table class attribute in aws_dynamodb_table. Closes #935 #936

Merged
merged 1 commit into from
Mar 30, 2022

Conversation

karanpopat
Copy link
Contributor

Integration test logs

Logs
Outputs:

account_id = "533793682495"
aws_partition = "aws"
aws_region = "us-east-1"
resource_aka = "arn:aws:dynamodb:us-east-1:533793682495:table/turbottest75877"
resource_name = "turbottest75877"

Running SQL query: test-get-query.sql
[
  {
    "arn": "arn:aws:dynamodb:us-east-1:533793682495:table/turbottest75877",
    "name": "turbottest75877"
  }
]
✔ PASSED

Running SQL query: test-hydrate-query.sql
[
  {
    "continuous_backups_status": "ENABLED",
    "point_in_time_recovery_description": {
      "EarliestRestorableDateTime": null,
      "LatestRestorableDateTime": null,
      "PointInTimeRecoveryStatus": "DISABLED"
    }
  }
]
✔ PASSED

Running SQL query: test-list-query.sql
[
  {
    "arn": "arn:aws:dynamodb:us-east-1:533793682495:table/turbottest75877",
    "attribute_definitions": [
      {
        "AttributeName": "userId",
        "AttributeType": "S"
      }
    ],
    "key_schema": [
      {
        "AttributeName": "userId",
        "KeyType": "HASH"
      }
    ],
    "name": "turbottest75877",
    "read_capacity": 20,
    "write_capacity": 20
  }
]
✔ PASSED

Running SQL query: test-turbot-query.sql
[
  {
    "account_id": "533793682495",
    "akas": [
      "arn:aws:dynamodb:us-east-1:533793682495:table/turbottest75877"
    ],
    "partition": "aws",
    "region": "us-east-1",
    "title": "turbottest75877"
  }
]
✔ PASSED

POSTTEST: tests/aws_dynamodb_table

TEARDOWN: tests/aws_dynamodb_table

SUMMARY:

1/1 passed.

Example query results

Results
> select name, table_class from aws_dynamodb_table
+-------------+----------------------------+
| name        | table_class                |
+-------------+----------------------------+
| test56      | <null>                     |
| testrktable | STANDARD_INFREQUENT_ACCESS |
+-------------+----------------------------+

Copy link
Contributor

@ParthaI ParthaI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@rajlearner17 rajlearner17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@karanpopat karanpopat self-assigned this Mar 28, 2022
@misraved misraved merged commit 37b411e into main Mar 30, 2022
@misraved misraved deleted the issue-935 branch March 30, 2022 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support to fetch dynamoDB Table class attribute in aws_dynamodb_table
4 participants