Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Retrieves details about the Amazon Web Services Resource Explorer index in the Amazon Web Services Region in which you invoked the operation.
Synopsis
- data GetIndex = GetIndex' {
- newGetIndex :: GetIndex
- data GetIndexResponse = GetIndexResponse' {}
- newGetIndexResponse :: Int -> GetIndexResponse
- getIndexResponse_arn :: Lens' GetIndexResponse (Maybe Text)
- getIndexResponse_createdAt :: Lens' GetIndexResponse (Maybe UTCTime)
- getIndexResponse_lastUpdatedAt :: Lens' GetIndexResponse (Maybe UTCTime)
- getIndexResponse_replicatingFrom :: Lens' GetIndexResponse (Maybe [Text])
- getIndexResponse_replicatingTo :: Lens' GetIndexResponse (Maybe [Text])
- getIndexResponse_state :: Lens' GetIndexResponse (Maybe IndexState)
- getIndexResponse_tags :: Lens' GetIndexResponse (Maybe (HashMap Text Text))
- getIndexResponse_type :: Lens' GetIndexResponse (Maybe IndexType)
- getIndexResponse_httpStatus :: Lens' GetIndexResponse Int
Creating a Request
See: newGetIndex
smart constructor.
Instances
newGetIndex :: GetIndex Source #
Create a value of GetIndex
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data GetIndexResponse Source #
See: newGetIndexResponse
smart constructor.
GetIndexResponse' | |
|
Instances
Create a value of GetIndexResponse
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:
GetIndexResponse
, getIndexResponse_arn
- The
Amazon resource name (ARN)
of the index.
$sel:createdAt:GetIndexResponse'
, getIndexResponse_createdAt
- The date and time when the index was originally created.
GetIndexResponse
, getIndexResponse_lastUpdatedAt
- The date and time when the index was last updated.
$sel:replicatingFrom:GetIndexResponse'
, getIndexResponse_replicatingFrom
- This response value is present only if this index is Type=AGGREGATOR
.
A list of the Amazon Web Services Regions that replicate their content to the index in this Region.
$sel:replicatingTo:GetIndexResponse'
, getIndexResponse_replicatingTo
- This response value is present only if this index is Type=LOCAL
.
The Amazon Web Services Region that contains the aggregator index, if one exists. If an aggregator index does exist then the Region in which you called this operation replicates its index information to the Region specified in this response value.
$sel:state:GetIndexResponse'
, getIndexResponse_state
- The current state of the index in this Amazon Web Services Region.
$sel:tags:GetIndexResponse'
, getIndexResponse_tags
- Tag key and value pairs that are attached to the index.
GetIndexResponse
, getIndexResponse_type
- The type of the index in this Region. For information about the
aggregator index and how it differs from a local index, see
Turning on cross-Region search by creating an aggregator index.
$sel:httpStatus:GetIndexResponse'
, getIndexResponse_httpStatus
- The response's http status code.
Response Lenses
getIndexResponse_arn :: Lens' GetIndexResponse (Maybe Text) Source #
The Amazon resource name (ARN) of the index.
getIndexResponse_createdAt :: Lens' GetIndexResponse (Maybe UTCTime) Source #
The date and time when the index was originally created.
getIndexResponse_lastUpdatedAt :: Lens' GetIndexResponse (Maybe UTCTime) Source #
The date and time when the index was last updated.
getIndexResponse_replicatingFrom :: Lens' GetIndexResponse (Maybe [Text]) Source #
This response value is present only if this index is Type=AGGREGATOR
.
A list of the Amazon Web Services Regions that replicate their content to the index in this Region.
getIndexResponse_replicatingTo :: Lens' GetIndexResponse (Maybe [Text]) Source #
This response value is present only if this index is Type=LOCAL
.
The Amazon Web Services Region that contains the aggregator index, if one exists. If an aggregator index does exist then the Region in which you called this operation replicates its index information to the Region specified in this response value.
getIndexResponse_state :: Lens' GetIndexResponse (Maybe IndexState) Source #
The current state of the index in this Amazon Web Services Region.
getIndexResponse_tags :: Lens' GetIndexResponse (Maybe (HashMap Text Text)) Source #
Tag key and value pairs that are attached to the index.
getIndexResponse_type :: Lens' GetIndexResponse (Maybe IndexType) Source #
The type of the index in this Region. For information about the aggregator index and how it differs from a local index, see Turning on cross-Region search by creating an aggregator index.
getIndexResponse_httpStatus :: Lens' GetIndexResponse Int Source #
The response's http status code.