Struct aws_sdk_iot::client::fluent_builders::CreateDimension [−][src]
pub struct CreateDimension<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateDimension
.
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.
Implementations
impl<C, M, R> CreateDimension<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateDimension<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateDimensionOutput, SdkError<CreateDimensionError>> where
R::Policy: SmithyRetryPolicy<CreateDimensionInputOperationOutputAlias, CreateDimensionOutput, CreateDimensionError, CreateDimensionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateDimensionOutput, SdkError<CreateDimensionError>> where
R::Policy: SmithyRetryPolicy<CreateDimensionInputOperationOutputAlias, CreateDimensionOutput, CreateDimensionError, CreateDimensionInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
Specifies the type of dimension. Supported types: TOPIC_FILTER.
Specifies the type of dimension. Supported types: TOPIC_FILTER.
Appends an item to stringValues
.
To override the contents of this collection use set_string_values
.
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/#").
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/#").
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Metadata that can be used to manage the dimension.
Metadata that can be used to manage the dimension.
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.
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.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateDimension<C, M, R>
impl<C, M, R> Send for CreateDimension<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateDimension<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateDimension<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateDimension<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more