pub struct CreateDimensionFluentBuilder { /* private fields */ }
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§
source§impl CreateDimensionFluentBuilder
impl CreateDimensionFluentBuilder
sourcepub fn as_input(&self) -> &CreateDimensionInputBuilder
pub fn as_input(&self) -> &CreateDimensionInputBuilder
Access the CreateDimension as a reference.
sourcepub async fn send(
self
) -> Result<CreateDimensionOutput, SdkError<CreateDimensionError, HttpResponse>>
pub async fn send( self ) -> Result<CreateDimensionOutput, SdkError<CreateDimensionError, HttpResponse>>
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.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateDimensionOutput, CreateDimensionError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateDimensionOutput, CreateDimensionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
sourcepub fn type(self, input: DimensionType) -> Self
pub fn type(self, input: DimensionType) -> Self
Specifies the type of dimension. Supported types: TOPIC_FILTER.
sourcepub fn set_type(self, input: Option<DimensionType>) -> Self
pub fn set_type(self, input: Option<DimensionType>) -> Self
Specifies the type of dimension. Supported types: TOPIC_FILTER.
sourcepub fn get_type(&self) -> &Option<DimensionType>
pub fn get_type(&self) -> &Option<DimensionType>
Specifies the type of dimension. Supported types: TOPIC_FILTER.
sourcepub fn string_values(self, input: impl Into<String>) -> Self
pub fn string_values(self, input: impl Into<String>) -> Self
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/#").
sourcepub fn set_string_values(self, input: Option<Vec<String>>) -> Self
pub fn set_string_values(self, input: Option<Vec<String>>) -> Self
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/#").
sourcepub fn get_string_values(&self) -> &Option<Vec<String>>
pub fn get_string_values(&self) -> &Option<Vec<String>>
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.
Metadata that can be used to manage the dimension.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
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.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
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§
source§impl Clone for CreateDimensionFluentBuilder
impl Clone for CreateDimensionFluentBuilder
source§fn clone(&self) -> CreateDimensionFluentBuilder
fn clone(&self) -> CreateDimensionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more