Manage Amazon QuickSight assets
In general, these should be:
- Created in top-down order (connection, then QuickSightFolder, then QuickSightAnalysis and QuickSightDashboard and QuickSightDataset then QuickSightAnalysisVisual and QuickSightDashboardVisual and QuickSightDatasetField respectively)
- Deleted in bottom-up order (QuickSightAnalysisVisual and QuickSightDashboardVisual and QuickSightDatasetField, then QuickSightAnalysis and QuickSightDashboard and QuickSightDataset, then QuickSightFolder, then connection)1
Asset structure
Connection
A QuickSight connection requires a name and qualifiedName. For creation, specific settings are also required to distinguish it as a QuickSight connection rather than another type of connection. In addition, at least one of adminRoles, adminGroups, or adminUsers must be provided.
- Java
- Python
- Kotlin
- Raw REST API
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.assets import Connection
from pyatlan.model.enums import AtlanConnectorType
client = AtlanClient()
admin_role_guid = client.role_cache.get_id_for_name("$admin") # (1)
connection = Connection.creator( # (2)
client=client, # (3)
name="QuickSight-connection", # (4)
connector_type=AtlanConnectorType.QUICKSIGHT, # (5)
admin_roles=[admin_role_guid], # (6)
admin_groups=["group2"], # (7)
admin_users=["jsmith"] # (8)
)
response = client.asset.save(connection) # (9)
connection_qualified_name = response.assets_created(asset_type=Connection)[0].qualified_name # (10)
- Retrieve the GUID for the admin role, to use later for defining the roles that can administer the connection.
- Build up the minimum request to create a connection.
- You must provide a client instance.
- Provide a human-readable name for your connection, such as
productionordevelopment. - Set the type of connection to
QuickSight. - List the workspace roles that should be able to administer the connection
(or
Noneif none). All users with that workspace role (current and future) will be administrators of the connection. Note that the values here need to be the GUIDs of the workspace roles. At least one ofadmin_roles,admin_groups, oradmin_usersmust be provided. - List the group names that can administer this connection (or
Noneif none). All users within that group (current and future) will be administrators of the connection. Note that the values here are the names of the groups. At least one ofadmin_roles,admin_groups, oradmin_usersmust be provided. - List the user names that can administer this connection (or
Noneif none). Note that the values here are the usernames of the users. At least one ofadmin_roles,admin_groups, oradmin_usersmust be provided. - Actually call Atlan to create the connection.
- Retrieve the qualifiedName for use in subsequent creation calls.
(You'd probably want to do some
Nonechecking first.)
{
"entities": [
{
"typeName": "Connection", // (1)
"attributes": {
"name": "quicksight-connection", // (2)
"connectorName": "quicksight", // (3)
"qualifiedName": "default/quicksight/1739901911", // (4)
"category": "bi", // (5)
"adminRoles": [ // (6)
"e7ae0295-c60a-469a-bd2c-fb903943aa02"
],
"adminGroups": [ // (7)
"group2"
],
"adminUsers": [ // (8)
"jsmith"
]
}
}
]
}
- The
typeNamemust be exactlyConnection. - Human-readable name for your connection, such as
productionordevelopment. - The
connectorNamemust be exactlyquicksight. - The
qualifiedNameshould follow the pattern:default/quicksight/<epoch>, where<epoch>is the time in milliseconds at which the connection is being created. - The
categorymust bebi. - List any workspace roles that can administer this connection. All users with that workspace role (current and future) will be administrators of the connection. Note that the values here need to be the GUIDs of the workspace roles. At least one of
adminRoles,adminGroups, oradminUsersmust be provided. - List any groups that can administer this connection. All users within that group (current and future) will be administrators of the connection. Note that the values here are the names of the groups. At least one of
adminRoles,adminGroups, oradminUsersmust be provided. - List any users that can administer this connection. Note that the values here are the usernames of the users. At least one of
adminRoles,adminGroups, oradminUsersmust be provided.
Atlan creates the policies that grant access to a connection, including the ability to retrieve the connection and to create assets within it, asynchronously. It can take several seconds (even up to approximately 30 seconds) before these are in place after creating the connection.
You may therefore need to wait before you'll be able to create the assets below within the connection.
To confirm access, retrieve the connection after it has been created. The SDKs' retry loops will automatically retry until the connection can be successfully retrieved. At that point, your API token has permission to create the other assets.
Note: if you are reusing an existing connection rather than creating one via your API token, you must give your API token a persona that has access to that connection. Otherwise all attempts to create, read, update, or delete assets within that connection will fail due to a lack of permissions.
QuickSightFolder
A QuickSightFolder requires a name and a qualifiedName.
For creation, you also need to specify the connectionQualifiedName of the connection for the QuickSight folder and
the QuickSight ID for this QuickSight folder on Amazon QuickSight.
- Java
- Python
- Kotlin
- Raw REST API
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.assets import QuickSightFolder
client = AtlanClient()
quick_sight_folder = QuickSightFolder.creator( # (1)
name="myQuickSightFolder", # (2)
connection_qualified_name=connection_qualified_name, # (3)
quick_sight_id="12345292" # (4)
)
response = client.asset.save(quick_sight_folder) # (5)
quick_sight_folder_qualifed_name = response.assets_created(asset_type=QuickSightFolder)[0].qualified_name # (6)
- Build up the minimum request to create a folder.
- Provide a human-readable name for your folder.
- Provide the
qualifiedNameof the QuickSight connection. - Provide the
QuickSight IDused in Amazon QuickSight folder. - Actually call Atlan to create the folder.
- Retrieve the created folder for use in subsequent creation calls.
(You'd probably want to do some
Nonechecking first.)
{
"entities": [
{
"typeName": "QuickSightFolder", // (1)
"attributes": {
"name": "quicksight-folder", // (2)
"connectorName": "quicksight", // (3)
"qualifiedName": "default/quicksight/1739901911/12345292", // (4)
"connectionQualifiedName": "default/quicksight/1739901911", // (5)
"quickSightId": "12345292" // (6)
}
}
]
}
- The
typeNamemust be exactlyQuickSightFolder. - Human-readable name for your folder.
- The
connectorNamemust be exactlyquicksight. - The
qualifiedNameshould follow the pattern:default/quicksight/<epoch>/<quickSightId>, wheredefault/quicksight/<epoch>is thequalifiedNameof the connection for this folder and<quickSightId>is the QuickSight IDfor this Amazon QuickSight folder. - The
connectionQualifiedNamemust be the exactqualifiedNameof the connection for this folder. - The
quickSightIdprovided for this Amazon QuickSight folder.
QuickSightDataset
A QuickSightDataset requires a name and a qualifiedName.
For creation, you also need to specify the connectionQualifiedName of the connection for the QuickSight dataset and
the QuickSight ID for this QuickSight dataset on Amazon QuickSight.
- Java
- Python
- Kotlin
- Raw REST API
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.assets import QuickSightDataset
client = AtlanClient()
quick_sight_dataset = QuickSightDataset.creator( # (1)
name="myQuickSightDataset", # (2)
connection_qualified_name=connection_qualified_name, # (3)
quick_sight_id="12345292" # (4)
)
response = client.asset.save(quick_sight_dataset) # (5)
quick_sight_dataset_qualifed_name = response.assets_created(asset_type=QuickSightDataset)[0].qualified_name # (6)
- Build up the minimum request to create a dataset.
- Provide a human-readable name for your dataset.
- Provide the
qualifiedNameof the QuickSight connection. - Provide the
QuickSight IDused in Amazon QuickSight dataset. - Actually call Atlan to create the dataset.
- Retrieve the created dataset for use in subsequent creation calls.
(You'd probably want to do some
Nonechecking first.)
{
"entities": [
{
"typeName": "QuickSightDataset", // (1)
"attributes": {
"name": "quicksight-dataset", // (2)
"connectorName": "quicksight", // (3)
"qualifiedName": "default/quicksight/1739901911/12345292", // (4)
"connectionQualifiedName": "default/quicksight/1739901911",// (5)
"quickSightId": "12345292" // (6)
}
}
]
}
- The
typeNamemust be exactlyQuickSightDataset. - Human-readable name for your dataset.
- The
connectorNamemust be exactlyquicksight. - The
qualifiedNameshould follow the pattern:default/quicksight/<epoch>/<quickSightId>, wheredefault/quicksight/<epoch>is thequalifiedNameof the connection for this dataset and<quickSightId>is theQuickSight IDfor this Amazon QuickSight dataset. - The
connectionQualifiedNamemust be the exactqualifiedNameof the connection for this dataset. - The
quickSightIdprovided for this Amazon QuickSight dataset.
QuickSightDashboard
A QuickSightDashboard requires a name and a qualifiedName.
For creation, you also need to specify the connectionQualifiedName of the connection for the QuickSight dashboard and
the QuickSight ID for this QuickSight dashboard on Amazon QuickSight.
- Java
- Python
- Kotlin
- Raw REST API
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.assets import QuickSightDashboard
client = AtlanClient()
quick_sight_dashboard = QuickSightDashboard.creator( # (1)
name="myQuickSightDashboard", # (2)
connection_qualified_name=connection_qualified_name, # (3)
quick_sight_id="12345292" # (4)
)
response = client.asset.save(quick_sight_dashboard) # (5)
quick_sight_dashboard_qualifed_name = response.assets_created(asset_type=QuickSightDashboard)[0].qualified_name # (6)
- Build up the minimum request to create a dashboard.
- Provide a human-readable name for your dashboard.
- Provide the
qualifiedNameof the QuickSight connection. - Provide the
QuickSight IDused in Amazon QuickSight dashboard. - Actually call Atlan to create the dashboard.
- Retrieve the created dashboard for use in subsequent creation calls.
(You'd probably want to do some
Nonechecking first.)
{
"entities": [
{
"typeName": "QuickSightDashboard", // (1)
"attributes": {
"name": "quicksight-dashboard", // (2)
"connectorName": "quicksight", // (3)
"qualifiedName": "default/quicksight/1739901911/12345292", // (4)
"connectionQualifiedName": "default/quicksight/1739901911",// (5)
"quickSightId": "12345292" // (6)
}
}
]
}
- The
typeNamemust be exactlyQuickSightDashboard. - Human-readable name for your dashboard.
- The
connectorNamemust be exactlyquicksight. - The
qualifiedNameshould follow the pattern:default/quicksight/<epoch>/<quickSightId>, wheredefault/quicksight/<epoch>is thequalifiedNameof the connection for this dashboard and<quickSightId>is theQuickSight IDfor this Amazon QuickSight dashboard. - The
connectionQualifiedNamemust be the exactqualifiedNameof the connection for this dashboard. - The
quickSightIdprovided for this Amazon QuickSight dashboard.
QuickSightAnalysis
A QuickSightAnalysis requires a name and a qualifiedName.
For creation, you also need to specify the connectionQualifiedName of the connection for the QuickSight analysis and
the QuickSight ID for this QuickSight analysis on Amazon QuickSight.
- Java
- Python
- Kotlin
- Raw REST API
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.assets import QuickSightAnalysis
client = AtlanClient()
quick_sight_analysis = QuickSightAnalysis.creator( # (1)
name="myQuickSightAnalysis", # (2)
connection_qualified_name=connection_qualified_nam, # (3)
quick_sight_id="12345292" # (4)
)
response = client.asset.save(quick_sight_analysis) # (5)
quick_sight_analysis_qualifed_name = response.assets_created(asset_type=QuickSightAnalysis)[0].qualified_name # (6)
- Build up the minimum request to create a analysis.
- Provide a human-readable name for your analysis.
- Provide the
qualifiedNameof the QuickSight connection. - Provide the
QuickSight IDused in Amazon QuickSight analysis. - Actually call Atlan to create the analysis.
- Retrieve the created analysis for use in subsequent creation calls.
(You'd probably want to do some
Nonechecking first.)
{
"entities": [
{
"typeName": "QuickSightAnalysis", // (1)
"attributes": {
"name": "quicksight-analysis", // (2)
"connectorName": "quicksight", // (3)
"qualifiedName": "default/quicksight/1739901911/12345292", // (4)
"connectionQualifiedName": "default/quicksight/1739901911",// (5)
"quickSightId": "12345292"// (6)
}
}
]
}
- The
typeNamemust be exactlyQuickSightAnalysis. - Human-readable name for your analysis.
- The
connectorNamemust be exactlyquicksight. - The
qualifiedNameshould follow the pattern:default/quicksight/<epoch>/<quickSightId>, wheredefault/quicksight/<epoch>is thequalifiedNameof the connection for this analysis and<quickSightId>is theQuickSight IDfor this Amazon QuickSight analysis. - The
connectionQualifiedNamemust be the exactqualifiedNameof the connection for this analysis. - The
quickSightIdprovided for this Amazon QuickSight analysis.
QuickSightDatasetField
A QuickSightDatasetField requires a name and a qualifiedName.
For creation, you also need to specify the DatasetQualifiedName of the QuickSight dataset that you wish to link this field to and
the QuickSight ID for this QuickSight dataset field on Amazon QuickSight.
- Java
- Python
- Kotlin
- Raw REST API
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.assets import QuickSightDatasetField
client = AtlanClient()
quick_sight_dataset_field = QuickSightDatasetField.creator( # (1)
name="myQuickSightDatasetField", # (2)
quick_sight_dataset_qualified_name=dataset_qualified_name, # (3)
quick_sight_id="45678" # (4)
)
response = client.asset.save(quick_sight_dataset_field) # (5)
quick_sight_dataset_field_qualifed_name = response.assets_created(asset_type=QuickSightDatasetField)[0].qualified_name # (6)
- Build up the minimum request to create a dataset field.
- Provide a human-readable name for your dataset field.
- Provide the
qualifiedNameof the QuickSight dataset. - Provide the
QuickSight IDused in Amazon QuickSight dataset field. - Actually call Atlan to create the dataset field.
- Retrieve the created dataset field for use in subsequent creation calls.
(You'd probably want to do some
Nonechecking first.)
{
"entities": [
{
"typeName": "QuickSightDatasetField", // (1)
"attributes": {
"name": "quicksight-dataset-field", // (2)
"connectorName": "quicksight", // (3)
"qualifiedName": "default/quicksight/1739901911/12345292/45678", // (4)
"quickSightDatasetQualifiedName": "default/quicksight/1739901911/12345292", // (5)
"quickSightDataset": {
"typeName": "QuickSightDataset", // (6)
"uniqueAttributes": {
"qualifiedName": "default/quicksight/1739901911/12345292" // (7)
}
},
"connectionQualifiedName": "default/quicksight/1739901911", // (8)
"quickSightId": "45678" // (9)
}
}
]
}
- The
typeNamemust be exactlyQuickSightDatasetField. - Human-readable name for your dataset field.
- The
connectorNamemust be exactlyquicksight. - The
qualifiedNameshould follow the pattern:default/quicksight/<epoch>/<quickSightId_dataset>/<quickSightId>, wheredefault/quicksight/<epoch>/<quickSightId_dataset>is thequalifiedNameof the dataset for this dataset field and<quickSightId>is theQuickSight IDfor this Amazon QuickSight dataset field. - The
quickSightDatasetQualifiedNamemust be the exactqualifiedNameof the dataset for this dataset field. - The
typeNamefor this embedded reference must beQuickSightDataset. - To complete the reference, you must include a
uniqueAttributeswith thequalifiedNameof the Dataset. Note: the Dataset must already exist in Atlan before creating the dataset field. - The
connectionQualifiedNamemust be the exactqualifiedNameof the connection for this dataset field. - The
quickSightIdprovided for this Amazon QuickSight dataset field.
QuickSightDashboardVisual
A QuickSightDashboardVisual requires a name and a qualifiedName.
For creation, you also need to specify the DashboardQualifiedName of the QuickSight dashboard that you wish to link this dashboard visual to, along with the QuickSight ID, QuickSight Sheet ID, and QuickSight Sheet Name for this dashboard visual in Amazon QuickSight.
- Java
- Python
- Kotlin
- Raw REST API
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.assets import QuickSightDashboardVisual
client = AtlanClient()
quick_sight_dashboard_visual = QuickSightDashboardVisual.creator( # (1)
name="myQuickSightDashboardVisual", # (2)
quick_sight_dashboard_qualified_name=dashboard_qualified_name, # (3)
quick_sight_id="45678", # (4)
quick_sight_sheet_id="3456431", # (5)
quick_sight_sheet_name="test-sheet-name", # (6)
)
response = client.asset.save(quick_sight_dashboard_visual) # (7)
quick_sight_dashboard_visual_qualifed_name = response.assets_created(asset_type=QuickSightDashboardVisual)[0].qualified_name # (8)
- Build up the minimum request to create a dashboard visual.
- Provide a human-readable name for your dashboard visual.
- Provide the
qualifiedNameof the QuickSight dashboard. - Provide the
QuickSight IDused in Amazon QuickSight dashboard visual. - Provide the
QuickSight Sheet IDwhich links to Amazon QuickSight dashboard visual. - Provide the
QuickSight Sheet Namewhich links to Amazon QuickSight dashboard visual. - Actually call Atlan to create the dashboard visual.
- Retrieve the created dashboard visual for use in subsequent creation calls.
(You'd probably want to do some
Nonechecking first.)
{
"entities": [
{
"typeName": "QuickSightDashboardVisual", // (1)
"attributes": {
"name": "quicksight-dashboard-visual", // (2)
"connectorName": "quicksight", // (3)
"qualifiedName": "default/quicksight/1739901911/12345292/3456431/45678", //(4)
"quickSightDashboardQualifiedName": "default/quicksight/1739901911/12345292", // (5)
"quickSightSheetId": "3456431", // (6)
"quickSightSheetName": "test-sheet-name", // (7)
"QuickSightDashboard": {
"typeName": "QuickSightDashboard", // (8)
"uniqueAttributes": {
"qualifiedName": "default/quicksight/1739901911/12345292" // (9)
}
},
"connectionQualifiedName": "default/quicksight/1739901911", // (10)
"quickSightId": "45678" // (11)
}
}
]
}
- The
typeNamemust be exactlyQuickSightDashboardVisual. - Human-readable name for your dashboard visual.
- The
connectorNamemust be exactlyquicksight. - The
qualifiedNameshould follow the pattern:default/quicksight/<epoch>/<quickSightId_dashboard>/<quickSightSheetId>/<quickSightId>, wheredefault/quicksight/<epoch>/<quickSightId_dashboard>is thequalifiedNameof the dashboard for this dashboard visual, <quickSightSheetId> is theQuickSight Sheet IDfor this Amazon QuickSight dashboard visual and<quickSightId>is theQuickSight IDfor this Amazon QuickSight dashboard visual. - The
quickSightAnalysisQualifiedNamemust be the exactqualifiedNameof the analysis for this dashboard visual. - The
quickSightSheetIdmust be the exactQuickSight Sheet IDfor this Amazon QuickSight dashboard visual. - The
quickSightSheetNamemust be the exactQuickSight Sheet Namefor this Amazon QuickSight dashboard visual. - The
typeNamefor this embedded reference must beQuickSightDashboard. - To complete the reference, you must include a
uniqueAttributeswith thequalifiedNameof the dashboard. Note: the analysis must already exist in Atlan before creating the dashboard visual. - The
connectionQualifiedNamemust be the exactqualifiedNameof the connection for this dashboard visual. - The
quickSightIdprovided for this Amazon QuickSight dashboard visual.
QuickSightAnalysisVisual
A QuickSightAnalysisVisual requires a name and a qualifiedName.
For creation, you also need to specify the AnalysisQualifiedName of the QuickSight analysis that you wish to link this analysis visual to, along with the QuickSight ID, QuickSight Sheet ID, and QuickSight Sheet Name for this analysis visual in Amazon QuickSight.
- Java
- Python
- Kotlin
- Raw REST API
from pyatlan.client.atlan import AtlanClient
from pyatlan.model.assets import QuickSightAnalysisVisual
client = AtlanClient()
quick_sight_analysis_visual = QuickSightAnalysisVisual.creator( # (1)
name="myQuickSightAnalysisVisual", # (2)
quick_sight_analysis_qualified_name=analysis_qualified_name, # (3)
quick_sight_id="45678", # (4)
quick_sight_sheet_id="3456431", # (5)
quick_sight_sheet_name="test-sheet-name", # (6)
)
response = client.asset.save(quick_sight_analysis_visual) # (7)
quick_sight_analysis_visual_qualifed_name = response.assets_created(asset_type=QuickSightAnalysisVisual)[0].qualified_name # (8)
- Build up the minimum request to create a analysis visual.
- Provide a human-readable name for your analysis visual.
- Provide the
qualifiedNameof the QuickSight analysis. - Provide the
QuickSight IDused in Amazon QuickSight analysis visual. - Provide the
QuickSight Sheet IDwhich links to Amazon QuickSight analysis visual. - Provide the
QuickSight Sheet Namewhich links to Amazon QuickSight analysis visual. - Actually call Atlan to create the analysis visual.
- Retrieve the created analysis visual for use in subsequent creation calls.
(You'd probably want to do some
Nonechecking first.)
{
"entities": [
{
"typeName": "QuickSightAnalysisVisual", // (1)
"attributes": {
"name": "quicksight-analysis-visual", // (2)
"connectorName": "quicksight", // (3)
"qualifiedName": "default/quicksight/1739901911/12345292/3456431/45678", //(4)
"quickSightAnalysisQualifiedName": "default/quicksight/1739901911/12345292", // (5)
"quickSightSheetId": "3456431", // (6)
"quickSightSheetName": "test-sheet-name", // (7)
"QuickSightAnalysis": {
"typeName": "QuickSightAnalysis", // (8)
"uniqueAttributes": {
"qualifiedName": "default/quicksight/1739901911/12345292" // (9)
}
},
"connectionQualifiedName": "default/quicksight/1739901911", // (10)
"quickSightId": "45678" // (11)
}
}
]
}
- The
typeNamemust be exactlyQuickSightAnalysisVisual. - Human-readable name for your analysis visual.
- The
connectorNamemust be exactlyquicksight. - The
qualifiedNameshould follow the pattern:default/quicksight/<epoch>/<quickSightId_analysis>/<quickSightSheetId>/<quickSightId>, wheredefault/quicksight/<epoch>/<quickSightId_analysis>is thequalifiedNameof the analysis for this analysis visual, <quickSightSheetId> is theQuickSight Sheet IDfor this Amazon QuickSight analysis visual and<quickSightId>is theQuickSight IDfor this Amazon QuickSight analysis visual. - The
quickSightAnalysisQualifiedNamemust be the exactqualifiedNameof the analysis for this analysis visual. - The
quickSightSheetIdmust be the exactQuickSight Sheet IDfor this Amazon QuickSight analysis visual. - The
quickSightSheetNamemust be the exactQuickSight Sheet Namefor this Amazon QuickSight analysis visual. - The
typeNamefor this embedded reference must beQuickSightAnalysis. - To complete the reference, you must include a
uniqueAttributeswith thequalifiedNameof the analysis. Note: the analysis must already exist in Atlan before creating the analysis visual. - The
connectionQualifiedNamemust be the exactqualifiedNameof the connection for this analysis visual. - The
quickSightIdprovided for this Amazon QuickSight analysis visual.
Available relationships
Every level of the QuickSight structure is an Asset,
and can therefore be related to the following other assets.