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 |
Create a dimension that you can use to limit the scope of a metric used
in a security profile for IoT Device Defender. For example, using a
TOPIC_FILTER
dimension, you can narrow down the scope of the metric
only to MQTT topics whose name match the pattern specified in the
dimension.
Requires permission to access the CreateDimension action.
Synopsis
- data CreateDimension = CreateDimension' {
- tags :: Maybe [Tag]
- name :: Text
- type' :: DimensionType
- stringValues :: NonEmpty Text
- clientRequestToken :: Text
- newCreateDimension :: Text -> DimensionType -> NonEmpty Text -> Text -> CreateDimension
- createDimension_tags :: Lens' CreateDimension (Maybe [Tag])
- createDimension_name :: Lens' CreateDimension Text
- createDimension_type :: Lens' CreateDimension DimensionType
- createDimension_stringValues :: Lens' CreateDimension (NonEmpty Text)
- createDimension_clientRequestToken :: Lens' CreateDimension Text
- data CreateDimensionResponse = CreateDimensionResponse' {}
- newCreateDimensionResponse :: Int -> CreateDimensionResponse
- createDimensionResponse_arn :: Lens' CreateDimensionResponse (Maybe Text)
- createDimensionResponse_name :: Lens' CreateDimensionResponse (Maybe Text)
- createDimensionResponse_httpStatus :: Lens' CreateDimensionResponse Int
Creating a Request
data CreateDimension Source #
See: newCreateDimension
smart constructor.
CreateDimension' | |
|
Instances
:: Text | |
-> DimensionType | |
-> NonEmpty Text | |
-> Text | |
-> CreateDimension |
Create a value of CreateDimension
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:tags:CreateDimension'
, createDimension_tags
- Metadata that can be used to manage the dimension.
$sel:name:CreateDimension'
, createDimension_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:type':CreateDimension'
, createDimension_type
- Specifies the type of dimension. Supported types: TOPIC_FILTER.
$sel:stringValues:CreateDimension'
, createDimension_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/#").
$sel:clientRequestToken:CreateDimension'
, createDimension_clientRequestToken
- Each dimension must have a unique client request token. If you try to
create a new dimension with the same token as a dimension that already
exists, an exception occurs. If you omit this value, Amazon Web Services
SDKs will automatically generate a unique client request.
Request Lenses
createDimension_tags :: Lens' CreateDimension (Maybe [Tag]) Source #
Metadata that can be used to manage the dimension.
createDimension_name :: Lens' CreateDimension 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.
createDimension_type :: Lens' CreateDimension DimensionType Source #
Specifies the type of dimension. Supported types: TOPIC_FILTER.
createDimension_stringValues :: Lens' CreateDimension (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/#").
createDimension_clientRequestToken :: Lens' CreateDimension Text Source #
Each dimension must have a unique client request token. If you try to create a new dimension with the same token as a dimension that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
Destructuring the Response
data CreateDimensionResponse Source #
See: newCreateDimensionResponse
smart constructor.
Instances
newCreateDimensionResponse Source #
Create a value of CreateDimensionResponse
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:arn:CreateDimensionResponse'
, createDimensionResponse_arn
- The Amazon Resource Name (ARN) of the created dimension.
$sel:name:CreateDimension'
, createDimensionResponse_name
- A unique identifier for the dimension.
$sel:httpStatus:CreateDimensionResponse'
, createDimensionResponse_httpStatus
- The response's http status code.
Response Lenses
createDimensionResponse_arn :: Lens' CreateDimensionResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the created dimension.
createDimensionResponse_name :: Lens' CreateDimensionResponse (Maybe Text) Source #
A unique identifier for the dimension.
createDimensionResponse_httpStatus :: Lens' CreateDimensionResponse Int Source #
The response's http status code.