Struct aws_sdk_iot::operation::detach_principal_policy::builders::DetachPrincipalPolicyFluentBuilder
source · pub struct DetachPrincipalPolicyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DetachPrincipalPolicy
.
Removes the specified policy from the specified certificate.
Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use DetachPolicy
instead.
Requires permission to access the DetachPrincipalPolicy action.
Implementations§
source§impl DetachPrincipalPolicyFluentBuilder
impl DetachPrincipalPolicyFluentBuilder
sourcepub fn as_input(&self) -> &DetachPrincipalPolicyInputBuilder
pub fn as_input(&self) -> &DetachPrincipalPolicyInputBuilder
Access the DetachPrincipalPolicy as a reference.
sourcepub async fn send(
self
) -> Result<DetachPrincipalPolicyOutput, SdkError<DetachPrincipalPolicyError, HttpResponse>>
pub async fn send( self ) -> Result<DetachPrincipalPolicyOutput, SdkError<DetachPrincipalPolicyError, 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<DetachPrincipalPolicyOutput, DetachPrincipalPolicyError, Self>
pub fn customize( self ) -> CustomizableOperation<DetachPrincipalPolicyOutput, DetachPrincipalPolicyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
The name of the policy to detach.
sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
The name of the policy to detach.
sourcepub fn get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
The name of the policy to detach.
sourcepub fn principal(self, input: impl Into<String>) -> Self
pub fn principal(self, input: impl Into<String>) -> Self
The principal.
Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
sourcepub fn set_principal(self, input: Option<String>) -> Self
pub fn set_principal(self, input: Option<String>) -> Self
The principal.
Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
sourcepub fn get_principal(&self) -> &Option<String>
pub fn get_principal(&self) -> &Option<String>
The principal.
Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).
Trait Implementations§
source§impl Clone for DetachPrincipalPolicyFluentBuilder
impl Clone for DetachPrincipalPolicyFluentBuilder
source§fn clone(&self) -> DetachPrincipalPolicyFluentBuilder
fn clone(&self) -> DetachPrincipalPolicyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more