amazonka-quicksight-2.0: Amazon QuickSight SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.QuickSight.CreateDashboard

Description

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

Creating a Request

data CreateDashboard Source #

See: newCreateDashboard smart constructor.

Constructors

CreateDashboard' 

Fields

  • dashboardPublishOptions :: Maybe DashboardPublishOptions

    Options for publishing the dashboard when you create it:

    • AvailabilityStatus for AdHocFilteringOption - This status can be either ENABLED or DISABLED. When this is set to DISABLED, Amazon QuickSight disables the left filter pane on the published dashboard, which can be used for ad hoc (one-time) filtering. This option is ENABLED by default.
    • AvailabilityStatus for ExportToCSVOption - This status can be either ENABLED or DISABLED. The visual option to export data to .CSV format isn't enabled when this is set to DISABLED. This option is ENABLED by default.
    • VisibilityState for SheetControlsOption - This visibility state can be either COLLAPSED or EXPANDED. This option is COLLAPSED by default.
  • definition :: Maybe DashboardVersionDefinition

    The definition of a dashboard.

    A definition is the data model of all features in a Dashboard, Template, or Analysis.

  • parameters :: Maybe 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.

  • permissions :: Maybe (NonEmpty ResourcePermission)

    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.

  • sourceEntity :: Maybe DashboardSourceEntity

    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 SourceTemplateARN 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.

  • tags :: Maybe (NonEmpty Tag)

    Contains a map of the key-value pairs for the resource tag or tags assigned to the dashboard.

  • themeArn :: Maybe Text

    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.

  • versionDescription :: Maybe Text

    A description for the first version of the dashboard being created.

  • awsAccountId :: Text

    The ID of the Amazon Web Services account where you want to create the dashboard.

  • dashboardId :: Text

    The ID for the dashboard, also added to the IAM policy.

  • name :: Text

    The display name of the dashboard.

Instances

Instances details
ToJSON CreateDashboard Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

ToHeaders CreateDashboard Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

ToPath CreateDashboard Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

ToQuery CreateDashboard Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

AWSRequest CreateDashboard Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

Associated Types

type AWSResponse CreateDashboard #

Generic CreateDashboard Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

Associated Types

type Rep CreateDashboard :: Type -> Type #

Show CreateDashboard Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

NFData CreateDashboard Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

Methods

rnf :: CreateDashboard -> () #

Eq CreateDashboard Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

Hashable CreateDashboard Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

type AWSResponse CreateDashboard Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

type Rep CreateDashboard Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

type Rep CreateDashboard = D1 ('MetaData "CreateDashboard" "Amazonka.QuickSight.CreateDashboard" "amazonka-quicksight-2.0-9P6nV9koXl6GTlt8ZjS7C9" 'False) (C1 ('MetaCons "CreateDashboard'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "dashboardPublishOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DashboardPublishOptions)) :*: S1 ('MetaSel ('Just "definition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DashboardVersionDefinition))) :*: (S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Parameters)) :*: (S1 ('MetaSel ('Just "permissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty ResourcePermission))) :*: S1 ('MetaSel ('Just "sourceEntity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DashboardSourceEntity))))) :*: ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Tag))) :*: (S1 ('MetaSel ('Just "themeArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "versionDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "awsAccountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "dashboardId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newCreateDashboard Source #

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 for AdHocFilteringOption - This status can be either ENABLED or DISABLED. When this is set to DISABLED, Amazon QuickSight disables the left filter pane on the published dashboard, which can be used for ad hoc (one-time) filtering. This option is ENABLED by default.
  • AvailabilityStatus for ExportToCSVOption - This status can be either ENABLED or DISABLED. The visual option to export data to .CSV format isn't enabled when this is set to DISABLED. This option is ENABLED by default.
  • VisibilityState for SheetControlsOption - This visibility state can be either COLLAPSED or EXPANDED. This option is COLLAPSED 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 SourceTemplateARN 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 for AdHocFilteringOption - This status can be either ENABLED or DISABLED. When this is set to DISABLED, Amazon QuickSight disables the left filter pane on the published dashboard, which can be used for ad hoc (one-time) filtering. This option is ENABLED by default.
  • AvailabilityStatus for ExportToCSVOption - This status can be either ENABLED or DISABLED. The visual option to export data to .CSV format isn't enabled when this is set to DISABLED. This option is ENABLED by default.
  • VisibilityState for SheetControlsOption - This visibility state can be either COLLAPSED or EXPANDED. This option is COLLAPSED 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 SourceTemplateARN 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.

Constructors

CreateDashboardResponse' 

Fields

Instances

Instances details
Generic CreateDashboardResponse Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

Associated Types

type Rep CreateDashboardResponse :: Type -> Type #

Read CreateDashboardResponse Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

Show CreateDashboardResponse Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

NFData CreateDashboardResponse Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

Methods

rnf :: CreateDashboardResponse -> () #

Eq CreateDashboardResponse Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

type Rep CreateDashboardResponse Source # 
Instance details

Defined in Amazonka.QuickSight.CreateDashboard

type Rep CreateDashboardResponse = D1 ('MetaData "CreateDashboardResponse" "Amazonka.QuickSight.CreateDashboard" "amazonka-quicksight-2.0-9P6nV9koXl6GTlt8ZjS7C9" 'False) (C1 ('MetaCons "CreateDashboardResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "creationStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceStatus)) :*: S1 ('MetaSel ('Just "dashboardId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "versionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

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_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.