amazonka-resource-explorer-v2-2.0: Amazon Resource Explorer 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.ResourceExplorer2.DeleteIndex

Description

Deletes the specified index and turns off Amazon Web Services Resource Explorer in the specified Amazon Web Services Region. When you delete an index, Resource Explorer stops discovering and indexing resources in that Region. Resource Explorer also deletes all views in that Region. These actions occur as asynchronous background tasks. You can check to see when the actions are complete by using the GetIndex operation and checking the Status response value.

If the index you delete is the aggregator index for the Amazon Web Services account, you must wait 24 hours before you can promote another local index to be the aggregator index for the account. Users can't perform account-wide searches using Resource Explorer until another aggregator index is configured.

Synopsis

Creating a Request

data DeleteIndex Source #

See: newDeleteIndex smart constructor.

Constructors

DeleteIndex' 

Fields

Instances

Instances details
ToJSON DeleteIndex Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

ToHeaders DeleteIndex Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

Methods

toHeaders :: DeleteIndex -> [Header] #

ToPath DeleteIndex Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

ToQuery DeleteIndex Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

AWSRequest DeleteIndex Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

Associated Types

type AWSResponse DeleteIndex #

Generic DeleteIndex Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

Associated Types

type Rep DeleteIndex :: Type -> Type #

Read DeleteIndex Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

Show DeleteIndex Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

NFData DeleteIndex Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

Methods

rnf :: DeleteIndex -> () #

Eq DeleteIndex Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

Hashable DeleteIndex Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

type AWSResponse DeleteIndex Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

type Rep DeleteIndex Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

type Rep DeleteIndex = D1 ('MetaData "DeleteIndex" "Amazonka.ResourceExplorer2.DeleteIndex" "amazonka-resource-explorer-v2-2.0-DYDynTzMYCcKX3QLWjH6Yt" 'False) (C1 ('MetaCons "DeleteIndex'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteIndex Source #

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

DeleteIndex, deleteIndex_arn - The Amazon resource name (ARN) of the index that you want to delete.

Request Lenses

deleteIndex_arn :: Lens' DeleteIndex Text Source #

The Amazon resource name (ARN) of the index that you want to delete.

Destructuring the Response

data DeleteIndexResponse Source #

See: newDeleteIndexResponse smart constructor.

Constructors

DeleteIndexResponse' 

Fields

Instances

Instances details
Generic DeleteIndexResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

Associated Types

type Rep DeleteIndexResponse :: Type -> Type #

Read DeleteIndexResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

Show DeleteIndexResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

NFData DeleteIndexResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

Methods

rnf :: DeleteIndexResponse -> () #

Eq DeleteIndexResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

type Rep DeleteIndexResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.DeleteIndex

type Rep DeleteIndexResponse = D1 ('MetaData "DeleteIndexResponse" "Amazonka.ResourceExplorer2.DeleteIndex" "amazonka-resource-explorer-v2-2.0-DYDynTzMYCcKX3QLWjH6Yt" 'False) (C1 ('MetaCons "DeleteIndexResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastUpdatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601))) :*: (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IndexState)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDeleteIndexResponse Source #

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

DeleteIndex, deleteIndexResponse_arn - The Amazon resource name (ARN) of the index that you successfully started the deletion process.

This operation is asynchronous. To check its status, call the GetIndex operation.

DeleteIndexResponse, deleteIndexResponse_lastUpdatedAt - The date and time when you last updated this index.

$sel:state:DeleteIndexResponse', deleteIndexResponse_state - Indicates the current state of the index.

$sel:httpStatus:DeleteIndexResponse', deleteIndexResponse_httpStatus - The response's http status code.

Response Lenses

deleteIndexResponse_arn :: Lens' DeleteIndexResponse (Maybe Text) Source #

The Amazon resource name (ARN) of the index that you successfully started the deletion process.

This operation is asynchronous. To check its status, call the GetIndex operation.

deleteIndexResponse_lastUpdatedAt :: Lens' DeleteIndexResponse (Maybe UTCTime) Source #

The date and time when you last updated this index.

deleteIndexResponse_state :: Lens' DeleteIndexResponse (Maybe IndexState) Source #

Indicates the current state of the index.