Struct aws_sdk_iot::client::fluent_builders::CreateSecurityProfile [−][src]
pub struct CreateSecurityProfile<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateSecurityProfile
.
Creates a Device Defender security profile.
Requires permission to access the CreateSecurityProfile action.
Implementations
impl<C, M, R> CreateSecurityProfile<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateSecurityProfile<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateSecurityProfileOutput, SdkError<CreateSecurityProfileError>> where
R::Policy: SmithyRetryPolicy<CreateSecurityProfileInputOperationOutputAlias, CreateSecurityProfileOutput, CreateSecurityProfileError, CreateSecurityProfileInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateSecurityProfileOutput, SdkError<CreateSecurityProfileError>> where
R::Policy: SmithyRetryPolicy<CreateSecurityProfileInputOperationOutputAlias, CreateSecurityProfileOutput, CreateSecurityProfileError, CreateSecurityProfileInputOperationRetryAlias>,
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.
The name you are giving to the security profile.
The name you are giving to the security profile.
A description of the security profile.
A description of the security profile.
Appends an item to behaviors
.
To override the contents of this collection use set_behaviors
.
Specifies the behaviors that, when violated by a device (thing), cause an alert.
Specifies the behaviors that, when violated by a device (thing), cause an alert.
Adds a key-value pair to alertTargets
.
To override the contents of this collection use set_alert_targets
.
Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
Appends an item to additionalMetricsToRetain
.
To override the contents of this collection use set_additional_metrics_to_retain
.
Please use CreateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
A list of metrics whose data is retained (stored). By default, data is retained
for any metric used in the profile's behaviors
, but it is also retained for
any metric specified here. Can be used with custom metrics; cannot be used with dimensions.
Please use CreateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
A list of metrics whose data is retained (stored). By default, data is retained
for any metric used in the profile's behaviors
, but it is also retained for
any metric specified here. Can be used with custom metrics; cannot be used with dimensions.
Appends an item to additionalMetricsToRetainV2
.
To override the contents of this collection use set_additional_metrics_to_retain_v2
.
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors
, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors
, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Metadata that can be used to manage the security profile.
Metadata that can be used to manage the security profile.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateSecurityProfile<C, M, R>
impl<C, M, R> Send for CreateSecurityProfile<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateSecurityProfile<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateSecurityProfile<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateSecurityProfile<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