aws_sdk_datazone/client/
remove_policy_grant.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RemovePolicyGrant`](crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`domain_identifier(impl Into<String>)`](crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The ID of the domain where you want to remove a policy grant.</p><br>
    ///   - [`entity_type(TargetEntityType)`](crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder::entity_type) / [`set_entity_type(Option<TargetEntityType>)`](crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder::set_entity_type):<br>required: **true**<br><p>The type of the entity from which you want to remove a policy grant.</p><br>
    ///   - [`entity_identifier(impl Into<String>)`](crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder::entity_identifier) / [`set_entity_identifier(Option<String>)`](crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder::set_entity_identifier):<br>required: **true**<br><p>The ID of the entity from which you want to remove a policy grant.</p><br>
    ///   - [`policy_type(ManagedPolicyType)`](crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder::policy_type) / [`set_policy_type(Option<ManagedPolicyType>)`](crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder::set_policy_type):<br>required: **true**<br><p>The type of the policy that you want to remove.</p><br>
    ///   - [`principal(PolicyGrantPrincipal)`](crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder::principal) / [`set_principal(Option<PolicyGrantPrincipal>)`](crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder::set_principal):<br>required: **true**<br><p>The principal from which you want to remove a policy grant.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.</p><br>
    /// - On success, responds with [`RemovePolicyGrantOutput`](crate::operation::remove_policy_grant::RemovePolicyGrantOutput)
    /// - On failure, responds with [`SdkError<RemovePolicyGrantError>`](crate::operation::remove_policy_grant::RemovePolicyGrantError)
    pub fn remove_policy_grant(&self) -> crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder {
        crate::operation::remove_policy_grant::builders::RemovePolicyGrantFluentBuilder::new(self.handle.clone())
    }
}