Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates the definition for a dimension. You cannot change the type of a dimension after it is created (you can delete it and recreate it).
Requires permission to access the UpdateDimension action.
Synopsis
- data UpdateDimension = UpdateDimension' {
- name :: Text
- stringValues :: NonEmpty Text
- newUpdateDimension :: Text -> NonEmpty Text -> UpdateDimension
- updateDimension_name :: Lens' UpdateDimension Text
- updateDimension_stringValues :: Lens' UpdateDimension (NonEmpty Text)
- data UpdateDimensionResponse = UpdateDimensionResponse' {
- lastModifiedDate :: Maybe POSIX
- arn :: Maybe Text
- stringValues :: Maybe (NonEmpty Text)
- name :: Maybe Text
- creationDate :: Maybe POSIX
- type' :: Maybe DimensionType
- httpStatus :: Int
- newUpdateDimensionResponse :: Int -> UpdateDimensionResponse
- updateDimensionResponse_lastModifiedDate :: Lens' UpdateDimensionResponse (Maybe UTCTime)
- updateDimensionResponse_arn :: Lens' UpdateDimensionResponse (Maybe Text)
- updateDimensionResponse_stringValues :: Lens' UpdateDimensionResponse (Maybe (NonEmpty Text))
- updateDimensionResponse_name :: Lens' UpdateDimensionResponse (Maybe Text)
- updateDimensionResponse_creationDate :: Lens' UpdateDimensionResponse (Maybe UTCTime)
- updateDimensionResponse_type :: Lens' UpdateDimensionResponse (Maybe DimensionType)
- updateDimensionResponse_httpStatus :: Lens' UpdateDimensionResponse Int
Creating a Request
data UpdateDimension Source #
See: newUpdateDimension
smart constructor.
UpdateDimension' | |
|
Instances
:: Text | |
-> NonEmpty Text | |
-> UpdateDimension |
Create a value of UpdateDimension
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:name:UpdateDimension'
, updateDimension_name
- A unique identifier for the dimension. Choose something that describes
the type and value to make it easy to remember what it does.
$sel:stringValues:UpdateDimension'
, updateDimension_stringValues
- Specifies the value or list of values for the dimension. For
TOPIC_FILTER
dimensions, this is a pattern used to match the MQTT
topic (for example, "admin/#").
Request Lenses
updateDimension_name :: Lens' UpdateDimension Text Source #
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
updateDimension_stringValues :: Lens' UpdateDimension (NonEmpty Text) Source #
Specifies the value or list of values for the dimension. For
TOPIC_FILTER
dimensions, this is a pattern used to match the MQTT
topic (for example, "admin/#").
Destructuring the Response
data UpdateDimensionResponse Source #
See: newUpdateDimensionResponse
smart constructor.
UpdateDimensionResponse' | |
|
Instances
newUpdateDimensionResponse Source #
Create a value of UpdateDimensionResponse
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:lastModifiedDate:UpdateDimensionResponse'
, updateDimensionResponse_lastModifiedDate
- The date and time, in milliseconds since epoch, when the dimension was
most recently updated.
$sel:arn:UpdateDimensionResponse'
, updateDimensionResponse_arn
- The Amazon Resource Name (ARN)of the created dimension.
$sel:stringValues:UpdateDimension'
, updateDimensionResponse_stringValues
- The value or list of values used to scope the dimension. For example,
for topic filters, this is the pattern used to match the MQTT topic
name.
$sel:name:UpdateDimension'
, updateDimensionResponse_name
- A unique identifier for the dimension.
$sel:creationDate:UpdateDimensionResponse'
, updateDimensionResponse_creationDate
- The date and time, in milliseconds since epoch, when the dimension was
initially created.
$sel:type':UpdateDimensionResponse'
, updateDimensionResponse_type
- The type of the dimension.
$sel:httpStatus:UpdateDimensionResponse'
, updateDimensionResponse_httpStatus
- The response's http status code.
Response Lenses
updateDimensionResponse_lastModifiedDate :: Lens' UpdateDimensionResponse (Maybe UTCTime) Source #
The date and time, in milliseconds since epoch, when the dimension was most recently updated.
updateDimensionResponse_arn :: Lens' UpdateDimensionResponse (Maybe Text) Source #
The Amazon Resource Name (ARN)of the created dimension.
updateDimensionResponse_stringValues :: Lens' UpdateDimensionResponse (Maybe (NonEmpty Text)) Source #
The value or list of values used to scope the dimension. For example, for topic filters, this is the pattern used to match the MQTT topic name.
updateDimensionResponse_name :: Lens' UpdateDimensionResponse (Maybe Text) Source #
A unique identifier for the dimension.
updateDimensionResponse_creationDate :: Lens' UpdateDimensionResponse (Maybe UTCTime) Source #
The date and time, in milliseconds since epoch, when the dimension was initially created.
updateDimensionResponse_type :: Lens' UpdateDimensionResponse (Maybe DimensionType) Source #
The type of the dimension.
updateDimensionResponse_httpStatus :: Lens' UpdateDimensionResponse Int Source #
The response's http status code.