libZSservicesZSamazonka-quicksightZSamazonka-quicksight
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

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

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

  • 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
Eq DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Read DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Show DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Generic DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Associated Types

type Rep DeleteAnalysis :: Type -> Type #

NFData DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Methods

rnf :: DeleteAnalysis -> () #

Hashable DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

AWSRequest DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Associated Types

type AWSResponse DeleteAnalysis #

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

type Rep DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

type Rep DeleteAnalysis = D1 ('MetaData "DeleteAnalysis" "Amazonka.QuickSight.DeleteAnalysis" "libZSservicesZSamazonka-quicksightZSamazonka-quicksight" 'False) (C1 ('MetaCons "DeleteAnalysis'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "recoveryWindowInDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "forceDeleteWithoutRecovery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "awsAccountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "analysisId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse DeleteAnalysis Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

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

$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:awsAccountId:DeleteAnalysis', deleteAnalysis_awsAccountId - The ID of the Amazon Web Services account where you want to delete an analysis.

$sel:analysisId:DeleteAnalysis', deleteAnalysis_analysisId - The ID of the analysis that you're deleting.

Request Lenses

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_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_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
Eq DeleteAnalysisResponse Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Read DeleteAnalysisResponse Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Show DeleteAnalysisResponse Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Generic DeleteAnalysisResponse Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Associated Types

type Rep DeleteAnalysisResponse :: Type -> Type #

NFData DeleteAnalysisResponse Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

Methods

rnf :: DeleteAnalysisResponse -> () #

type Rep DeleteAnalysisResponse Source # 
Instance details

Defined in Amazonka.QuickSight.DeleteAnalysis

type Rep DeleteAnalysisResponse = D1 ('MetaData "DeleteAnalysisResponse" "Amazonka.QuickSight.DeleteAnalysis" "libZSservicesZSamazonka-quicksightZSamazonka-quicksight" 'False) (C1 ('MetaCons "DeleteAnalysisResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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 "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:

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

$sel:analysisId:DeleteAnalysis', deleteAnalysisResponse_analysisId - The ID of the deleted analysis.

$sel:arn: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:status:DeleteAnalysisResponse', deleteAnalysisResponse_status - The HTTP status of the request.

Response Lenses

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

The Amazon Web Services request ID for this operation.

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.