libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.CreateDimension

Description

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

Creating a Request

data CreateDimension Source #

See: newCreateDimension smart constructor.

Constructors

CreateDimension' 

Fields

  • tags :: Maybe [Tag]

    Metadata that can be used to manage the dimension.

  • name :: Text

    A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.

  • type' :: DimensionType

    Specifies the type of dimension. Supported types: TOPIC_FILTER.

  • stringValues :: NonEmpty Text

    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/#").

  • clientRequestToken :: Text

    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.

Instances

Instances details
Eq CreateDimension Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

Read CreateDimension Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

Show CreateDimension Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

Generic CreateDimension Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

Associated Types

type Rep CreateDimension :: Type -> Type #

NFData CreateDimension Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

Methods

rnf :: CreateDimension -> () #

Hashable CreateDimension Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

ToJSON CreateDimension Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

AWSRequest CreateDimension Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

Associated Types

type AWSResponse CreateDimension #

ToHeaders CreateDimension Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

ToPath CreateDimension Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

ToQuery CreateDimension Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

type Rep CreateDimension Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

type Rep CreateDimension = D1 ('MetaData "CreateDimension" "Amazonka.IoT.CreateDimension" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateDimension'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DimensionType) :*: (S1 ('MetaSel ('Just "stringValues") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text)) :*: S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateDimension Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

newCreateDimension Source #

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.

Constructors

CreateDimensionResponse' 

Fields

Instances

Instances details
Eq CreateDimensionResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

Read CreateDimensionResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

Show CreateDimensionResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

Generic CreateDimensionResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

Associated Types

type Rep CreateDimensionResponse :: Type -> Type #

NFData CreateDimensionResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

Methods

rnf :: CreateDimensionResponse -> () #

type Rep CreateDimensionResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateDimension

type Rep CreateDimensionResponse = D1 ('MetaData "CreateDimensionResponse" "Amazonka.IoT.CreateDimension" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateDimensionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.