-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[aws][feat] Add amazon Q resource collection (#2175)
Co-authored-by: Matthias Veit <[email protected]>
- Loading branch information
1 parent
a0efd4f
commit c3a1bdd
Showing
19 changed files
with
1,526 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from fix_plugin_aws.resource.amazonq import AwsQBusinessApplication | ||
from test.resources import round_trip_for | ||
|
||
|
||
def test_applications() -> None: | ||
round_trip_for(AwsQBusinessApplication) |
32 changes: 32 additions & 0 deletions
32
plugins/aws/test/resources/files/qapps/list-library-items__foo.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"libraryItems": [ | ||
{ | ||
"libraryItemId": "foo", | ||
"appId": "foo", | ||
"appVersion": 123, | ||
"categories": [ | ||
{ | ||
"id": "foo", | ||
"title": "foo" | ||
}, | ||
{ | ||
"id": "foo", | ||
"title": "foo" | ||
}, | ||
{ | ||
"id": "foo", | ||
"title": "foo" | ||
} | ||
], | ||
"status": "foo", | ||
"createdAt": "2024-08-30T12:42:21Z", | ||
"createdBy": "foo", | ||
"updatedAt": "2024-08-30T12:42:21Z", | ||
"updatedBy": "foo", | ||
"ratingCount": 123, | ||
"isRatedByUser": true, | ||
"userCount": 123 | ||
} | ||
], | ||
"nextToken": "foo" | ||
} |
15 changes: 15 additions & 0 deletions
15
plugins/aws/test/resources/files/qapps/list-q-apps__foo.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"apps": [ | ||
{ | ||
"appId": "foo", | ||
"appArn": "foo", | ||
"title": "foo", | ||
"description": "foo", | ||
"createdAt": "2024-08-30T12:42:21Z", | ||
"canEdit": true, | ||
"status": "foo" | ||
} | ||
], | ||
"nextToken": "foo" | ||
} | ||
|
12 changes: 12 additions & 0 deletions
12
plugins/aws/test/resources/files/qbusiness/list-applications.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"nextToken": "foo", | ||
"applications": [ | ||
{ | ||
"displayName": "foo", | ||
"applicationId": "foo", | ||
"createdAt": "2024-08-30T12:21:29Z", | ||
"updatedAt": "2024-08-30T12:21:29Z", | ||
"status": "ACTIVE" | ||
} | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
plugins/aws/test/resources/files/qbusiness/list-conversations__foo.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"nextToken": "foo", | ||
"conversations": [ | ||
{ | ||
"conversationId": "foo", | ||
"title": "foo", | ||
"startTime": "2024-08-30T12:42:21Z" | ||
} | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
plugins/aws/test/resources/files/qbusiness/list-data-source-sync-jobs__foo_foo_foo.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"history": [ | ||
{ | ||
"executionId": "foo", | ||
"startTime": "2024-08-30T12:48:51Z", | ||
"endTime": "2024-08-30T12:48:51Z", | ||
"status": "SUCCEEDED", | ||
"error": { | ||
"errorMessage": "foo", | ||
"errorCode": "InvalidRequest" | ||
}, | ||
"dataSourceErrorCode": "foo", | ||
"metrics": { | ||
"documentsAdded": "foo", | ||
"documentsModified": "foo", | ||
"documentsDeleted": "foo", | ||
"documentsFailed": "foo", | ||
"documentsScanned": "foo" | ||
} | ||
} | ||
], | ||
"nextToken": "foo" | ||
} |
13 changes: 13 additions & 0 deletions
13
plugins/aws/test/resources/files/qbusiness/list-data-sources__foo_foo.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"dataSources": [ | ||
{ | ||
"displayName": "foo", | ||
"dataSourceId": "foo", | ||
"type": "foo", | ||
"createdAt": "2024-08-30T12:46:23Z", | ||
"updatedAt": "2024-08-30T12:46:23Z", | ||
"status": "CREATING" | ||
} | ||
], | ||
"nextToken": "foo" | ||
} |
15 changes: 15 additions & 0 deletions
15
plugins/aws/test/resources/files/qbusiness/list-documents__foo_foo.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"documentDetailList": [ | ||
{ | ||
"documentId": "foo", | ||
"status": "PROCESSING", | ||
"error": { | ||
"errorMessage": "foo", | ||
"errorCode": "InvalidRequest" | ||
}, | ||
"createdAt": "2024-08-30T12:46:23Z", | ||
"updatedAt": "2024-08-30T12:46:23Z" | ||
} | ||
], | ||
"nextToken": "foo" | ||
} |
12 changes: 12 additions & 0 deletions
12
plugins/aws/test/resources/files/qbusiness/list-indices__foo.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"nextToken": "foo", | ||
"indices": [ | ||
{ | ||
"displayName": "foo", | ||
"indexId": "foo", | ||
"createdAt": "2024-08-30T12:42:21Z", | ||
"updatedAt": "2024-08-30T12:42:21Z", | ||
"status": "ACTIVE" | ||
} | ||
] | ||
} |
Oops, something went wrong.