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 |
Retrieve the metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.
Synopsis
- data GetResourceMetadata = GetResourceMetadata' {}
- newGetResourceMetadata :: ServiceType -> Text -> GetResourceMetadata
- getResourceMetadata_serviceType :: Lens' GetResourceMetadata ServiceType
- getResourceMetadata_identifier :: Lens' GetResourceMetadata Text
- data GetResourceMetadataResponse = GetResourceMetadataResponse' {
- features :: Maybe (HashMap Text FeatureMetadata)
- identifier :: Maybe Text
- httpStatus :: Int
- newGetResourceMetadataResponse :: Int -> GetResourceMetadataResponse
- getResourceMetadataResponse_features :: Lens' GetResourceMetadataResponse (Maybe (HashMap Text FeatureMetadata))
- getResourceMetadataResponse_identifier :: Lens' GetResourceMetadataResponse (Maybe Text)
- getResourceMetadataResponse_httpStatus :: Lens' GetResourceMetadataResponse Int
Creating a Request
data GetResourceMetadata Source #
See: newGetResourceMetadata
smart constructor.
GetResourceMetadata' | |
|
Instances
newGetResourceMetadata Source #
Create a value of GetResourceMetadata
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:serviceType:GetResourceMetadata'
, getResourceMetadata_serviceType
- The Amazon Web Services service for which Performance Insights returns
metrics.
GetResourceMetadata
, getResourceMetadata_identifier
- An immutable identifier for a data source that is unique for an Amazon
Web Services Region. Performance Insights gathers metrics from this data
source. To use a DB instance as a data source, specify its
DbiResourceId
value. For example, specify
db-ABCDEFGHIJKLMNOPQRSTU1VW2X
.
Request Lenses
getResourceMetadata_serviceType :: Lens' GetResourceMetadata ServiceType Source #
The Amazon Web Services service for which Performance Insights returns metrics.
getResourceMetadata_identifier :: Lens' GetResourceMetadata Text Source #
An immutable identifier for a data source that is unique for an Amazon
Web Services Region. Performance Insights gathers metrics from this data
source. To use a DB instance as a data source, specify its
DbiResourceId
value. For example, specify
db-ABCDEFGHIJKLMNOPQRSTU1VW2X
.
Destructuring the Response
data GetResourceMetadataResponse Source #
See: newGetResourceMetadataResponse
smart constructor.
GetResourceMetadataResponse' | |
|
Instances
newGetResourceMetadataResponse Source #
Create a value of GetResourceMetadataResponse
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:features:GetResourceMetadataResponse'
, getResourceMetadataResponse_features
- The metadata for different features. For example, the metadata might
indicate that a feature is turned on or off on a specific DB instance.
GetResourceMetadata
, getResourceMetadataResponse_identifier
- An immutable identifier for a data source that is unique for an Amazon
Web Services Region. Performance Insights gathers metrics from this data
source. To use a DB instance as a data source, specify its
DbiResourceId
value. For example, specify
db-ABCDEFGHIJKLMNOPQRSTU1VW2X
.
$sel:httpStatus:GetResourceMetadataResponse'
, getResourceMetadataResponse_httpStatus
- The response's http status code.
Response Lenses
getResourceMetadataResponse_features :: Lens' GetResourceMetadataResponse (Maybe (HashMap Text FeatureMetadata)) Source #
The metadata for different features. For example, the metadata might indicate that a feature is turned on or off on a specific DB instance.
getResourceMetadataResponse_identifier :: Lens' GetResourceMetadataResponse (Maybe Text) Source #
An immutable identifier for a data source that is unique for an Amazon
Web Services Region. Performance Insights gathers metrics from this data
source. To use a DB instance as a data source, specify its
DbiResourceId
value. For example, specify
db-ABCDEFGHIJKLMNOPQRSTU1VW2X
.
getResourceMetadataResponse_httpStatus :: Lens' GetResourceMetadataResponse Int Source #
The response's http status code.