Struct aws_sdk_iot::operation::attach_thing_principal::builders::AttachThingPrincipalFluentBuilder
source · pub struct AttachThingPrincipalFluentBuilder { /* 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 AttachThingPrincipalFluentBuilder
impl AttachThingPrincipalFluentBuilder
sourcepub fn as_input(&self) -> &AttachThingPrincipalInputBuilder
pub fn as_input(&self) -> &AttachThingPrincipalInputBuilder
Access the AttachThingPrincipal as a reference.
sourcepub async fn send(
self
) -> Result<AttachThingPrincipalOutput, SdkError<AttachThingPrincipalError, HttpResponse>>
pub async fn send( self ) -> Result<AttachThingPrincipalOutput, SdkError<AttachThingPrincipalError, 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<AttachThingPrincipalOutput, AttachThingPrincipalError, Self>
pub fn customize( self ) -> CustomizableOperation<AttachThingPrincipalOutput, AttachThingPrincipalError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_thing_name(&self) -> &Option<String>
pub fn get_thing_name(&self) -> &Option<String>
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.
sourcepub fn get_principal(&self) -> &Option<String>
pub fn get_principal(&self) -> &Option<String>
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 AttachThingPrincipalFluentBuilder
impl Clone for AttachThingPrincipalFluentBuilder
source§fn clone(&self) -> AttachThingPrincipalFluentBuilder
fn clone(&self) -> AttachThingPrincipalFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more