aws_sdk_datazone/client/add_policy_grant.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`AddPolicyGrant`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_identifier(impl Into<String>)`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::domain_identifier) / [`set_domain_identifier(Option<String>)`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::set_domain_identifier):<br>required: **true**<br><p>The ID of the domain where you want to add a policy grant.</p><br>
/// - [`entity_type(TargetEntityType)`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::entity_type) / [`set_entity_type(Option<TargetEntityType>)`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::set_entity_type):<br>required: **true**<br><p>The type of entity (resource) to which the grant is added.</p><br>
/// - [`entity_identifier(impl Into<String>)`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::entity_identifier) / [`set_entity_identifier(Option<String>)`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::set_entity_identifier):<br>required: **true**<br><p>The ID of the entity (resource) to which you want to add a policy grant.</p><br>
/// - [`policy_type(ManagedPolicyType)`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::policy_type) / [`set_policy_type(Option<ManagedPolicyType>)`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::set_policy_type):<br>required: **true**<br><p>The type of policy that you want to grant.</p><br>
/// - [`principal(PolicyGrantPrincipal)`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::principal) / [`set_principal(Option<PolicyGrantPrincipal>)`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::set_principal):<br>required: **true**<br><p>The principal to whom the permissions are granted.</p><br>
/// - [`detail(PolicyGrantDetail)`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::detail) / [`set_detail(Option<PolicyGrantDetail>)`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::set_detail):<br>required: **true**<br><p>The details of the policy grant.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::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 [`AddPolicyGrantOutput`](crate::operation::add_policy_grant::AddPolicyGrantOutput)
/// - On failure, responds with [`SdkError<AddPolicyGrantError>`](crate::operation::add_policy_grant::AddPolicyGrantError)
pub fn add_policy_grant(&self) -> crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder {
crate::operation::add_policy_grant::builders::AddPolicyGrantFluentBuilder::new(self.handle.clone())
}
}