Struct aws_sdk_iot::client::fluent_builders::AttachThingPrincipal
source · pub struct AttachThingPrincipal { /* private fields */ }
Expand description
Fluent builder constructing a request to AttachThingPrincipal
.
Attaches the specified principal to the specified thing. A principal can be X.509 certificates, Amazon Cognito identities or federated identities.
Requires permission to access the AttachThingPrincipal action.
Implementations§
source§impl AttachThingPrincipal
impl AttachThingPrincipal
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<AttachThingPrincipal, AwsResponseRetryClassifier>, SdkError<AttachThingPrincipalError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<AttachThingPrincipal, AwsResponseRetryClassifier>, SdkError<AttachThingPrincipalError>>
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<AttachThingPrincipalOutput, SdkError<AttachThingPrincipalError>>
pub async fn send(
self
) -> Result<AttachThingPrincipalOutput, SdkError<AttachThingPrincipalError>>
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 thing_name(self, input: impl Into<String>) -> Self
pub fn thing_name(self, input: impl Into<String>) -> Self
The name of the thing.
sourcepub fn set_thing_name(self, input: Option<String>) -> Self
pub fn set_thing_name(self, input: Option<String>) -> Self
The name of the thing.
sourcepub fn principal(self, input: impl Into<String>) -> Self
pub fn principal(self, input: impl Into<String>) -> Self
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
sourcepub fn set_principal(self, input: Option<String>) -> Self
pub fn set_principal(self, input: Option<String>) -> Self
The principal, which can be a certificate ARN (as returned from the CreateCertificate operation) or an Amazon Cognito ID.
Trait Implementations§
source§impl Clone for AttachThingPrincipal
impl Clone for AttachThingPrincipal
source§fn clone(&self) -> AttachThingPrincipal
fn clone(&self) -> AttachThingPrincipal
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more