Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates a dashboard from a template. To first create a template, see the
CreateTemplate
API operation.
A dashboard is an entity in Amazon QuickSight that identifies Amazon QuickSight reports, created from analyses. You can share Amazon QuickSight 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.
Synopsis
- data CreateDashboard = CreateDashboard' {
- dashboardPublishOptions :: Maybe DashboardPublishOptions
- definition :: Maybe DashboardVersionDefinition
- parameters :: Maybe Parameters
- permissions :: Maybe (NonEmpty ResourcePermission)
- sourceEntity :: Maybe DashboardSourceEntity
- tags :: Maybe (NonEmpty Tag)
- themeArn :: Maybe Text
- versionDescription :: Maybe Text
- awsAccountId :: Text
- dashboardId :: Text
- name :: Text
- newCreateDashboard :: Text -> Text -> Text -> CreateDashboard
- createDashboard_dashboardPublishOptions :: Lens' CreateDashboard (Maybe DashboardPublishOptions)
- createDashboard_definition :: Lens' CreateDashboard (Maybe DashboardVersionDefinition)
- createDashboard_parameters :: Lens' CreateDashboard (Maybe Parameters)
- createDashboard_permissions :: Lens' CreateDashboard (Maybe (NonEmpty ResourcePermission))
- createDashboard_sourceEntity :: Lens' CreateDashboard (Maybe DashboardSourceEntity)
- createDashboard_tags :: Lens' CreateDashboard (Maybe (NonEmpty Tag))
- createDashboard_themeArn :: Lens' CreateDashboard (Maybe Text)
- createDashboard_versionDescription :: Lens' CreateDashboard (Maybe Text)
- createDashboard_awsAccountId :: Lens' CreateDashboard Text
- createDashboard_dashboardId :: Lens' CreateDashboard Text
- createDashboard_name :: Lens' CreateDashboard Text
- data CreateDashboardResponse = CreateDashboardResponse' {
- arn :: Maybe Text
- creationStatus :: Maybe ResourceStatus
- dashboardId :: Maybe Text
- requestId :: Maybe Text
- versionArn :: Maybe Text
- status :: Int
- newCreateDashboardResponse :: Int -> CreateDashboardResponse
- createDashboardResponse_arn :: Lens' CreateDashboardResponse (Maybe Text)
- createDashboardResponse_creationStatus :: Lens' CreateDashboardResponse (Maybe ResourceStatus)
- createDashboardResponse_dashboardId :: Lens' CreateDashboardResponse (Maybe Text)
- createDashboardResponse_requestId :: Lens' CreateDashboardResponse (Maybe Text)
- createDashboardResponse_versionArn :: Lens' CreateDashboardResponse (Maybe Text)
- createDashboardResponse_status :: Lens' CreateDashboardResponse Int
Creating a Request
data CreateDashboard Source #
See: newCreateDashboard
smart constructor.
CreateDashboard' | |
|
Instances
Create a value of CreateDashboard
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dashboardPublishOptions:CreateDashboard'
, createDashboard_dashboardPublishOptions
- Options for publishing the dashboard when you create it:
AvailabilityStatus
forAdHocFilteringOption
- This status can be eitherENABLED
orDISABLED
. When this is set toDISABLED
, Amazon QuickSight disables the left filter pane on the published dashboard, which can be used for ad hoc (one-time) filtering. This option isENABLED
by default.AvailabilityStatus
forExportToCSVOption
- This status can be eitherENABLED
orDISABLED
. The visual option to export data to .CSV format isn't enabled when this is set toDISABLED
. This option isENABLED
by default.VisibilityState
forSheetControlsOption
- This visibility state can be eitherCOLLAPSED
orEXPANDED
. This option isCOLLAPSED
by default.
$sel:definition:CreateDashboard'
, createDashboard_definition
- The definition of a dashboard.
A definition is the data model of all features in a Dashboard, Template, or Analysis.
$sel:parameters:CreateDashboard'
, createDashboard_parameters
- 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.
CreateDashboard
, createDashboard_permissions
- 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.
$sel:sourceEntity:CreateDashboard'
, createDashboard_sourceEntity
- 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 a
SourceTemplate
entity. If you need to create a dashboard from an
analysis, first convert the analysis to a template by using the
CreateTemplate
API operation. For SourceTemplate
, specify the Amazon Resource Name
(ARN) of the source template. The SourceTemplate
ARN can contain any
Amazon Web Services account and any Amazon QuickSight-supported Amazon
Web Services Region.
Use the DataSetReferences
entity within SourceTemplate
to list the
replacement datasets for the placeholders listed in the original. The
schema in each dataset must match its placeholder.
CreateDashboard
, createDashboard_tags
- Contains a map of the key-value pairs for the resource tag or tags
assigned to the dashboard.
CreateDashboard
, createDashboard_themeArn
- 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.
$sel:versionDescription:CreateDashboard'
, createDashboard_versionDescription
- A description for the first version of the dashboard being created.
CreateDashboard
, createDashboard_awsAccountId
- The ID of the Amazon Web Services account where you want to create the
dashboard.
CreateDashboard
, createDashboard_dashboardId
- The ID for the dashboard, also added to the IAM policy.
CreateDashboard
, createDashboard_name
- The display name of the dashboard.
Request Lenses
createDashboard_dashboardPublishOptions :: Lens' CreateDashboard (Maybe DashboardPublishOptions) Source #
Options for publishing the dashboard when you create it:
AvailabilityStatus
forAdHocFilteringOption
- This status can be eitherENABLED
orDISABLED
. When this is set toDISABLED
, Amazon QuickSight disables the left filter pane on the published dashboard, which can be used for ad hoc (one-time) filtering. This option isENABLED
by default.AvailabilityStatus
forExportToCSVOption
- This status can be eitherENABLED
orDISABLED
. The visual option to export data to .CSV format isn't enabled when this is set toDISABLED
. This option isENABLED
by default.VisibilityState
forSheetControlsOption
- This visibility state can be eitherCOLLAPSED
orEXPANDED
. This option isCOLLAPSED
by default.
createDashboard_definition :: Lens' CreateDashboard (Maybe DashboardVersionDefinition) Source #
The definition of a dashboard.
A definition is the data model of all features in a Dashboard, Template, or Analysis.
createDashboard_parameters :: Lens' CreateDashboard (Maybe Parameters) Source #
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.
createDashboard_permissions :: Lens' CreateDashboard (Maybe (NonEmpty ResourcePermission)) Source #
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.
createDashboard_sourceEntity :: Lens' CreateDashboard (Maybe DashboardSourceEntity) Source #
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 a
SourceTemplate
entity. If you need to create a dashboard from an
analysis, first convert the analysis to a template by using the
CreateTemplate
API operation. For SourceTemplate
, specify the Amazon Resource Name
(ARN) of the source template. The SourceTemplate
ARN can contain any
Amazon Web Services account and any Amazon QuickSight-supported Amazon
Web Services Region.
Use the DataSetReferences
entity within SourceTemplate
to list the
replacement datasets for the placeholders listed in the original. The
schema in each dataset must match its placeholder.
createDashboard_tags :: Lens' CreateDashboard (Maybe (NonEmpty Tag)) Source #
Contains a map of the key-value pairs for the resource tag or tags assigned to the dashboard.
createDashboard_themeArn :: Lens' CreateDashboard (Maybe Text) Source #
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.
createDashboard_versionDescription :: Lens' CreateDashboard (Maybe Text) Source #
A description for the first version of the dashboard being created.
createDashboard_awsAccountId :: Lens' CreateDashboard Text Source #
The ID of the Amazon Web Services account where you want to create the dashboard.
createDashboard_dashboardId :: Lens' CreateDashboard Text Source #
The ID for the dashboard, also added to the IAM policy.
createDashboard_name :: Lens' CreateDashboard Text Source #
The display name of the dashboard.
Destructuring the Response
data CreateDashboardResponse Source #
See: newCreateDashboardResponse
smart constructor.
CreateDashboardResponse' | |
|
Instances
newCreateDashboardResponse Source #
Create a value of CreateDashboardResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateDashboardResponse
, createDashboardResponse_arn
- The ARN of the dashboard.
CreateDashboardResponse
, createDashboardResponse_creationStatus
- The status of the dashboard creation request.
CreateDashboard
, createDashboardResponse_dashboardId
- The ID for the dashboard.
$sel:requestId:CreateDashboardResponse'
, createDashboardResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:versionArn:CreateDashboardResponse'
, createDashboardResponse_versionArn
- The ARN of the dashboard, including the version number of the first
version that is created.
CreateDashboardResponse
, createDashboardResponse_status
- The HTTP status of the request.
Response Lenses
createDashboardResponse_arn :: Lens' CreateDashboardResponse (Maybe Text) Source #
The ARN of the dashboard.
createDashboardResponse_creationStatus :: Lens' CreateDashboardResponse (Maybe ResourceStatus) Source #
The status of the dashboard creation request.
createDashboardResponse_dashboardId :: Lens' CreateDashboardResponse (Maybe Text) Source #
The ID for the dashboard.
createDashboardResponse_requestId :: Lens' CreateDashboardResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
createDashboardResponse_versionArn :: Lens' CreateDashboardResponse (Maybe Text) Source #
The ARN of the dashboard, including the version number of the first version that is created.
createDashboardResponse_status :: Lens' CreateDashboardResponse Int Source #
The HTTP status of the request.