Struct aws_sdk_iot::client::fluent_builders::AttachSecurityProfile
source · pub struct AttachSecurityProfile { /* private fields */ }
Expand description
Fluent builder constructing a request to AttachSecurityProfile
.
Associates a Device Defender security profile with a thing group or this account. Each thing group or account can have up to five security profiles associated with it.
Requires permission to access the AttachSecurityProfile action.
Implementations§
source§impl AttachSecurityProfile
impl AttachSecurityProfile
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<AttachSecurityProfile, AwsResponseRetryClassifier>, SdkError<AttachSecurityProfileError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<AttachSecurityProfile, AwsResponseRetryClassifier>, SdkError<AttachSecurityProfileError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<AttachSecurityProfileOutput, SdkError<AttachSecurityProfileError>>
pub async fn send(
self
) -> Result<AttachSecurityProfileOutput, SdkError<AttachSecurityProfileError>>
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 security_profile_name(self, input: impl Into<String>) -> Self
pub fn security_profile_name(self, input: impl Into<String>) -> Self
The security profile that is attached.
sourcepub fn set_security_profile_name(self, input: Option<String>) -> Self
pub fn set_security_profile_name(self, input: Option<String>) -> Self
The security profile that is attached.
sourcepub fn security_profile_target_arn(self, input: impl Into<String>) -> Self
pub fn security_profile_target_arn(self, input: impl Into<String>) -> Self
The ARN of the target (thing group) to which the security profile is attached.
sourcepub fn set_security_profile_target_arn(self, input: Option<String>) -> Self
pub fn set_security_profile_target_arn(self, input: Option<String>) -> Self
The ARN of the target (thing group) to which the security profile is attached.
Trait Implementations§
source§impl Clone for AttachSecurityProfile
impl Clone for AttachSecurityProfile
source§fn clone(&self) -> AttachSecurityProfile
fn clone(&self) -> AttachSecurityProfile
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more