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

Description

Deletes an analysis from Amazon QuickSight. You can optionally include a recovery window during which you can restore the analysis. If you don't specify a recovery window value, the operation defaults to 30 days. Amazon QuickSight attaches a DeletionTime stamp to the response that specifies the end of the recovery window. At the end of the recovery window, Amazon QuickSight deletes the analysis permanently.

At any time before recovery window ends, you can use the RestoreAnalysis API operation to remove the DeletionTime stamp and cancel the deletion of the analysis. The analysis remains visible in the API until it's deleted, so you can describe it but you can't make a template from it.

An analysis that's scheduled for deletion isn't accessible in the Amazon QuickSight console. To access it in the console, restore it. Deleting an analysis doesn't delete the dashboards that you publish from it.

Synopsis

Creating a Request

data DeleteAnalysis Source #

See: newDeleteAnalysis smart constructor.

Constructors

DeleteAnalysis' 

Fields

  • forceDeleteWithoutRecovery :: Maybe Bool

    This option defaults to the value NoForceDeleteWithoutRecovery. To immediately delete the analysis, add the ForceDeleteWithoutRecovery option. You can't restore an analysis after it's deleted.

  • recoveryWindowInDays :: Maybe Natural

    A value that specifies the number of days that Amazon QuickSight waits before it deletes the analysis. You can't use this parameter with the ForceDeleteWithoutRecovery option in the same API call. The default value is 30.

  • awsAccountId :: Text

    The ID of the Amazon Web Services account where you want to delete an analysis.

  • analysisId :: Text

    The ID of the analysis that you're deleting.

Instances

Instances details
ToHeaders DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

ToPath DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

ToQuery DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

AWSRequest DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Associated Types

type AWSResponse DeleteAnalysis #

Generic DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Associated Types

type Rep DeleteAnalysis :: Type -> Type #

Read DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Show DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

NFData DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Methods

rnf :: DeleteAnalysis -> () #

Eq DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Hashable DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

type AWSResponse DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

type Rep DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

type Rep DeleteAnalysis = D1 ('MetaData "DeleteAnalysis" "Amazonka.QuickSight.DeleteAnalysis" "amazonka-quicksight-2.0-9P6nV9koXl6GTlt8ZjS7C9" 'False) (C1 ('MetaCons "DeleteAnalysis'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "forceDeleteWithoutRecovery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "recoveryWindowInDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "awsAccountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "analysisId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDeleteAnalysis Source #

Create a value of DeleteAnalysis 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:forceDeleteWithoutRecovery:DeleteAnalysis', deleteAnalysis_forceDeleteWithoutRecovery - This option defaults to the value NoForceDeleteWithoutRecovery. To immediately delete the analysis, add the ForceDeleteWithoutRecovery option. You can't restore an analysis after it's deleted.

$sel:recoveryWindowInDays:DeleteAnalysis', deleteAnalysis_recoveryWindowInDays - A value that specifies the number of days that Amazon QuickSight waits before it deletes the analysis. You can't use this parameter with the ForceDeleteWithoutRecovery option in the same API call. The default value is 30.

DeleteAnalysis, deleteAnalysis_awsAccountId - The ID of the Amazon Web Services account where you want to delete an analysis.

DeleteAnalysis, deleteAnalysis_analysisId - The ID of the analysis that you're deleting.

Request Lenses

deleteAnalysis_forceDeleteWithoutRecovery :: Lens' DeleteAnalysis (Maybe Bool) Source #

This option defaults to the value NoForceDeleteWithoutRecovery. To immediately delete the analysis, add the ForceDeleteWithoutRecovery option. You can't restore an analysis after it's deleted.

deleteAnalysis_recoveryWindowInDays :: Lens' DeleteAnalysis (Maybe Natural) Source #

A value that specifies the number of days that Amazon QuickSight waits before it deletes the analysis. You can't use this parameter with the ForceDeleteWithoutRecovery option in the same API call. The default value is 30.

deleteAnalysis_awsAccountId :: Lens' DeleteAnalysis Text Source #

The ID of the Amazon Web Services account where you want to delete an analysis.

deleteAnalysis_analysisId :: Lens' DeleteAnalysis Text Source #

The ID of the analysis that you're deleting.

Destructuring the Response

data DeleteAnalysisResponse Source #

See: newDeleteAnalysisResponse smart constructor.

Constructors

DeleteAnalysisResponse' 

Fields

Instances

Instances details
Generic DeleteAnalysisResponse Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Associated Types

type Rep DeleteAnalysisResponse :: Type -> Type #

Read DeleteAnalysisResponse Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Show DeleteAnalysisResponse Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

NFData DeleteAnalysisResponse Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Methods

rnf :: DeleteAnalysisResponse -> () #

Eq DeleteAnalysisResponse Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

type Rep DeleteAnalysisResponse Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

type Rep DeleteAnalysisResponse = D1 ('MetaData "DeleteAnalysisResponse" "Amazonka.QuickSight.DeleteAnalysis" "amazonka-quicksight-2.0-9P6nV9koXl6GTlt8ZjS7C9" 'False) (C1 ('MetaCons "DeleteAnalysisResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "analysisId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "deletionTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newDeleteAnalysisResponse Source #

Create a value of DeleteAnalysisResponse 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:

DeleteAnalysis, deleteAnalysisResponse_analysisId - The ID of the deleted analysis.

DeleteAnalysisResponse, deleteAnalysisResponse_arn - The Amazon Resource Name (ARN) of the deleted analysis.

$sel:deletionTime:DeleteAnalysisResponse', deleteAnalysisResponse_deletionTime - The date and time that the analysis is scheduled to be deleted.

$sel:requestId:DeleteAnalysisResponse', deleteAnalysisResponse_requestId - The Amazon Web Services request ID for this operation.

DeleteAnalysisResponse, deleteAnalysisResponse_status - The HTTP status of the request.

Response Lenses

deleteAnalysisResponse_arn :: Lens' DeleteAnalysisResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the deleted analysis.

deleteAnalysisResponse_deletionTime :: Lens' DeleteAnalysisResponse (Maybe UTCTime) Source #

The date and time that the analysis is scheduled to be deleted.

deleteAnalysisResponse_requestId :: Lens' DeleteAnalysisResponse (Maybe Text) Source #

The Amazon Web Services request ID for this operation.