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

Description

Changes the type of the index from one of the following types to the other. For more information about indexes and the role they perform in Amazon Web Services Resource Explorer, see Turning on cross-Region search by creating an aggregator index in the Amazon Web Services Resource Explorer User Guide.

  • AGGREGATOR index type

    The index contains information about resources from all Amazon Web Services Regions in the Amazon Web Services account in which you've created a Resource Explorer index. Resource information from all other Regions is replicated to this Region's index.

    When you change the index type to AGGREGATOR, Resource Explorer turns on replication of all discovered resource information from the other Amazon Web Services Regions in your account to this index. You can then, from this Region only, perform resource search queries that span all Amazon Web Services Regions in the Amazon Web Services account. Turning on replication from all other Regions is performed by asynchronous background tasks. You can check the status of the asynchronous tasks by using the GetIndex operation. When the asynchronous tasks complete, the Status response of that operation changes from UPDATING to ACTIVE. After that, you can start to see results from other Amazon Web Services Regions in query results. However, it can take several hours for replication from all other Regions to complete.

    You can have only one aggregator index per Amazon Web Services account. Before you can promote a different index to be the aggregator index for the account, you must first demote the existing aggregator index to type LOCAL.

  • LOCAL index type

    The index contains information about resources in only the Amazon Web Services Region in which the index exists. If an aggregator index in another Region exists, then information in this local index is replicated to the aggregator index.

    When you change the index type to LOCAL, Resource Explorer turns off the replication of resource information from all other Amazon Web Services Regions in the Amazon Web Services account to this Region. The aggregator index remains in the UPDATING state until all replication with other Regions successfully stops. You can check the status of the asynchronous task by using the GetIndex operation. When Resource Explorer successfully stops all replication with other Regions, the Status response of that operation changes from UPDATING to ACTIVE. Separately, the resource information from other Regions that was previously stored in the index is deleted within 30 days by another background task. Until that asynchronous task completes, some results from other Regions can continue to appear in search results.

    After you demote an aggregator index to a local index, you must wait 24 hours before you can promote another index to be the new aggregator index for the account.

Synopsis

Creating a Request

data UpdateIndexType Source #

See: newUpdateIndexType smart constructor.

Constructors

UpdateIndexType' 

Fields

Instances

Instances details
ToJSON UpdateIndexType Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

ToHeaders UpdateIndexType Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

ToPath UpdateIndexType Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

ToQuery UpdateIndexType Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

AWSRequest UpdateIndexType Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

Associated Types

type AWSResponse UpdateIndexType #

Generic UpdateIndexType Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

Associated Types

type Rep UpdateIndexType :: Type -> Type #

Read UpdateIndexType Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

Show UpdateIndexType Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

NFData UpdateIndexType Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

Methods

rnf :: UpdateIndexType -> () #

Eq UpdateIndexType Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

Hashable UpdateIndexType Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

type AWSResponse UpdateIndexType Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

type Rep UpdateIndexType Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

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

newUpdateIndexType Source #

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

UpdateIndexType, updateIndexType_arn - The Amazon resource name (ARN) of the index that you want to update.

UpdateIndexType, updateIndexType_type - The type of the index. To understand the difference between LOCAL and AGGREGATOR, see Turning on cross-Region search in the Amazon Web Services Resource Explorer User Guide.

Request Lenses

updateIndexType_type :: Lens' UpdateIndexType IndexType Source #

The type of the index. To understand the difference between LOCAL and AGGREGATOR, see Turning on cross-Region search in the Amazon Web Services Resource Explorer User Guide.

Destructuring the Response

data UpdateIndexTypeResponse Source #

See: newUpdateIndexTypeResponse smart constructor.

Constructors

UpdateIndexTypeResponse' 

Fields

Instances

Instances details
Generic UpdateIndexTypeResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

Associated Types

type Rep UpdateIndexTypeResponse :: Type -> Type #

Read UpdateIndexTypeResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

Show UpdateIndexTypeResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

NFData UpdateIndexTypeResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

Methods

rnf :: UpdateIndexTypeResponse -> () #

Eq UpdateIndexTypeResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

type Rep UpdateIndexTypeResponse Source # 
Instance details

Defined in Amazonka.ResourceExplorer2.UpdateIndexType

type Rep UpdateIndexTypeResponse = D1 ('MetaData "UpdateIndexTypeResponse" "Amazonka.ResourceExplorer2.UpdateIndexType" "amazonka-resource-explorer-v2-2.0-DYDynTzMYCcKX3QLWjH6Yt" 'False) (C1 ('MetaCons "UpdateIndexTypeResponse'" '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 "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IndexType)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newUpdateIndexTypeResponse Source #

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

UpdateIndexType, updateIndexTypeResponse_arn - The Amazon resource name (ARN) of the index that you updated.

UpdateIndexTypeResponse, updateIndexTypeResponse_lastUpdatedAt - The date and timestamp when the index was last updated.

$sel:state:UpdateIndexTypeResponse', updateIndexTypeResponse_state - Indicates the state of the request to update the index. This operation is asynchronous. Call the GetIndex operation to check for changes.

UpdateIndexType, updateIndexTypeResponse_type - Specifies the type of the specified index after the operation completes.

$sel:httpStatus:UpdateIndexTypeResponse', updateIndexTypeResponse_httpStatus - The response's http status code.

Response Lenses

updateIndexTypeResponse_lastUpdatedAt :: Lens' UpdateIndexTypeResponse (Maybe UTCTime) Source #

The date and timestamp when the index was last updated.

updateIndexTypeResponse_state :: Lens' UpdateIndexTypeResponse (Maybe IndexState) Source #

Indicates the state of the request to update the index. This operation is asynchronous. Call the GetIndex operation to check for changes.

updateIndexTypeResponse_type :: Lens' UpdateIndexTypeResponse (Maybe IndexType) Source #

Specifies the type of the specified index after the operation completes.