create_dashboard
async
¶
create_dashboard(
aws_account_id: AwsAccountId,
dashboard_id: ShortRestrictiveResourceId,
name: DashboardName,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = None,
parameters: Optional[Parameters] = None,
permissions: Optional[ResourcePermissionList] = None,
source_entity: Optional[DashboardSourceEntity] = None,
tags: Optional[TagList] = None,
version_description: Optional[VersionDescription] = None,
dashboard_publish_options: Optional[DashboardPublishOptions] = None,
theme_arn: Optional[Arn] = None,
definition: Optional[DashboardVersionDefinition] = None,
validation_strategy: Optional[ValidationStrategy] = None,
folder_arns: Optional[FolderArnList] = None,
link_sharing_configuration: Optional[LinkSharingConfiguration] = None,
link_entities: Optional[LinkEntityArnList] = None,
) -> CreateDashboardResponse
Creates a dashboard from either a template or directly with a DashboardDefinition. To first create a template, see the CreateTemplate API operation.
A dashboard is an entity in Amazon Quick Sight that identifies Amazon Quick Sight reports, created from analyses. You can share Amazon Quick Sight dashboards. With the right permissions, you can create scheduled email reports from them. If you have the correct permissions, you can create a dashboard from a template that exists in a different Amazon Web Services account.
Parameters:
-
aws_account_id(AwsAccountId) –The ID of the Amazon Web Services account where you want to create the dashboard.
-
dashboard_id(ShortRestrictiveResourceId) –The ID for the dashboard, also added to the IAM policy.
-
name(DashboardName) –The display name of the dashboard.
-
parameters(Optional[Parameters], default:None) –The parameters for the creation of the dashboard, which you want to use to override the default settings. A dashboard can have any type of parameters, and some parameters might accept multiple values.
-
permissions(Optional[ResourcePermissionList], default:None) –A structure that contains the permissions of the dashboard. You can use this structure for granting permissions by providing a list of IAM action information for each principal ARN.
To specify no permissions, omit the permissions list.
-
source_entity(Optional[DashboardSourceEntity], default:None) –The entity that you are using as a source when you create the dashboard. In
SourceEntity, you specify the type of object you're using as source. You can only create a dashboard from a template, so you use aSourceTemplateentity. If you need to create a dashboard from an analysis, first convert the analysis to a template by using theCreateTemplateAPI operation. ForSourceTemplate, specify the Amazon Resource Name (ARN) of the source template. TheSourceTemplateARN can contain any Amazon Web Services account and any Amazon Quick Sight-supported Amazon Web Services Region.Use the
DataSetReferencesentity withinSourceTemplateto list the replacement datasets for the placeholders listed in the original. The schema in each dataset must match its placeholder. Use theTopicReferencesentity to list the replacement topics for the topic placeholders listed in the original. The schema in each topic must match its placeholder.Either a
SourceEntityor aDefinitionmust be provided in order for the request to be valid. -
tags(Optional[TagList], default:None) –Contains a map of the key-value pairs for the resource tag or tags assigned to the dashboard.
-
version_description(Optional[VersionDescription], default:None) –A description for the first version of the dashboard being created.
-
dashboard_publish_options(Optional[DashboardPublishOptions], default:None) –Options for publishing the dashboard when you create it:
-
AvailabilityStatusforAdHocFilteringOption- This status can be eitherENABLEDorDISABLED. When this is set toDISABLED, Amazon Quick Sight disables the left filter pane on the published dashboard, which can be used for ad hoc (one-time) filtering. This option isENABLEDby default. -
AvailabilityStatusforExportToCSVOption- This status can be eitherENABLEDorDISABLED. The visual option to export data to .CSV format isn't enabled when this is set toDISABLED. This option isENABLEDby default. -
VisibilityStateforSheetControlsOption- This visibility state can be eitherCOLLAPSEDorEXPANDED. This option isCOLLAPSEDby default. -
AvailabilityStatusforQuickSuiteActionsOption- This status can be eitherENABLEDorDISABLED. Features related to Actions in Amazon Quick Suite on dashboards are disabled when this is set toDISABLED. This option isDISABLEDby default. -
AvailabilityStatusforExecutiveSummaryOption- This status can be eitherENABLEDorDISABLED. The option to build an executive summary is disabled when this is set toDISABLED. This option isENABLEDby default. -
AvailabilityStatusforDataStoriesSharingOption- This status can be eitherENABLEDorDISABLED. The option to share a data story is disabled when this is set toDISABLED. This option isENABLEDby default.
-
-
theme_arn(Optional[Arn], default:None) –The Amazon Resource Name (ARN) of the theme that is being used for this dashboard. If you add a value for this field, it overrides the value that is used in the source entity. The theme ARN must exist in the same Amazon Web Services account where you create the dashboard.
-
definition(Optional[DashboardVersionDefinition], default:None) –The definition of a dashboard.
A definition is the data model of all features in a Dashboard, Template, or Analysis.
Either a
SourceEntityor aDefinitionmust be provided in order for the request to be valid. -
validation_strategy(Optional[ValidationStrategy], default:None) –The option to relax the validation needed to create a dashboard with definition objects. This option skips the validation step for specific errors.
-
folder_arns(Optional[FolderArnList], default:None) –When you create the dashboard, Amazon Quick Sight adds the dashboard to these folders.
-
link_sharing_configuration(Optional[LinkSharingConfiguration], default:None) –A structure that contains the permissions of a shareable link to the dashboard.
-
link_entities(Optional[LinkEntityArnList], default:None) –A list of analysis Amazon Resource Names (ARNs) to be linked to the dashboard.
Raises:
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
LimitExceededException–A limit is exceeded.
-
ResourceExistsException–The resource specified already exists.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
UnsupportedUserEditionException–This error indicates that you are calling an operation on an Amazon Quick Suite subscription where the edition doesn't include support for that operation. Amazon Quick Suite currently has Standard Edition and Enterprise Edition. Not every operation and capability is available in every edition.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 | |