Struct aws_sdk_iot::operation::transfer_certificate::builders::TransferCertificateFluentBuilder
source · pub struct TransferCertificateFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to TransferCertificate
.
Transfers the specified certificate to the specified Amazon Web Services account.
Requires permission to access the TransferCertificate action.
You can cancel the transfer until it is acknowledged by the recipient.
No notification is sent to the transfer destination's account. It is up to the caller to notify the transfer target.
The certificate being transferred must not be in the ACTIVE state. You can use the UpdateCertificate
action to deactivate it.
The certificate must not have any policies attached to it. You can use the DetachPolicy
action to detach them.
Implementations§
source§impl TransferCertificateFluentBuilder
impl TransferCertificateFluentBuilder
sourcepub fn as_input(&self) -> &TransferCertificateInputBuilder
pub fn as_input(&self) -> &TransferCertificateInputBuilder
Access the TransferCertificate as a reference.
sourcepub async fn send(
self
) -> Result<TransferCertificateOutput, SdkError<TransferCertificateError, HttpResponse>>
pub async fn send( self ) -> Result<TransferCertificateOutput, SdkError<TransferCertificateError, 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<TransferCertificateOutput, TransferCertificateError, Self>
pub fn customize( self ) -> CustomizableOperation<TransferCertificateOutput, TransferCertificateError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn certificate_id(self, input: impl Into<String>) -> Self
pub fn certificate_id(self, input: impl Into<String>) -> Self
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
sourcepub fn set_certificate_id(self, input: Option<String>) -> Self
pub fn set_certificate_id(self, input: Option<String>) -> Self
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
sourcepub fn get_certificate_id(&self) -> &Option<String>
pub fn get_certificate_id(&self) -> &Option<String>
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
sourcepub fn target_aws_account(self, input: impl Into<String>) -> Self
pub fn target_aws_account(self, input: impl Into<String>) -> Self
The Amazon Web Services account.
sourcepub fn set_target_aws_account(self, input: Option<String>) -> Self
pub fn set_target_aws_account(self, input: Option<String>) -> Self
The Amazon Web Services account.
sourcepub fn get_target_aws_account(&self) -> &Option<String>
pub fn get_target_aws_account(&self) -> &Option<String>
The Amazon Web Services account.
sourcepub fn transfer_message(self, input: impl Into<String>) -> Self
pub fn transfer_message(self, input: impl Into<String>) -> Self
The transfer message.
sourcepub fn set_transfer_message(self, input: Option<String>) -> Self
pub fn set_transfer_message(self, input: Option<String>) -> Self
The transfer message.
sourcepub fn get_transfer_message(&self) -> &Option<String>
pub fn get_transfer_message(&self) -> &Option<String>
The transfer message.
Trait Implementations§
source§impl Clone for TransferCertificateFluentBuilder
impl Clone for TransferCertificateFluentBuilder
source§fn clone(&self) -> TransferCertificateFluentBuilder
fn clone(&self) -> TransferCertificateFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for TransferCertificateFluentBuilder
impl !RefUnwindSafe for TransferCertificateFluentBuilder
impl Send for TransferCertificateFluentBuilder
impl Sync for TransferCertificateFluentBuilder
impl Unpin for TransferCertificateFluentBuilder
impl !UnwindSafe for TransferCertificateFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more