Struct aws_sdk_eks::operation::associate_access_policy::builders::AssociateAccessPolicyFluentBuilder
source · pub struct AssociateAccessPolicyFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to AssociateAccessPolicy.
Associates an access policy and its scope to an access entry. For more information about associating access policies, see Associating and disassociating access policies to and from access entries in the Amazon EKS User Guide.
Implementations§
source§impl AssociateAccessPolicyFluentBuilder
impl AssociateAccessPolicyFluentBuilder
sourcepub fn as_input(&self) -> &AssociateAccessPolicyInputBuilder
pub fn as_input(&self) -> &AssociateAccessPolicyInputBuilder
Access the AssociateAccessPolicy as a reference.
sourcepub async fn send(
self,
) -> Result<AssociateAccessPolicyOutput, SdkError<AssociateAccessPolicyError, HttpResponse>>
pub async fn send( self, ) -> Result<AssociateAccessPolicyOutput, SdkError<AssociateAccessPolicyError, 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<AssociateAccessPolicyOutput, AssociateAccessPolicyError, Self>
pub fn customize( self, ) -> CustomizableOperation<AssociateAccessPolicyOutput, AssociateAccessPolicyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn cluster_name(self, input: impl Into<String>) -> Self
pub fn cluster_name(self, input: impl Into<String>) -> Self
The name of your cluster.
sourcepub fn set_cluster_name(self, input: Option<String>) -> Self
pub fn set_cluster_name(self, input: Option<String>) -> Self
The name of your cluster.
sourcepub fn get_cluster_name(&self) -> &Option<String>
pub fn get_cluster_name(&self) -> &Option<String>
The name of your cluster.
sourcepub fn principal_arn(self, input: impl Into<String>) -> Self
pub fn principal_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the IAM user or role for the AccessEntry that you're associating the access policy to.
sourcepub fn set_principal_arn(self, input: Option<String>) -> Self
pub fn set_principal_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the IAM user or role for the AccessEntry that you're associating the access policy to.
sourcepub fn get_principal_arn(&self) -> &Option<String>
pub fn get_principal_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the IAM user or role for the AccessEntry that you're associating the access policy to.
sourcepub fn policy_arn(self, input: impl Into<String>) -> Self
pub fn policy_arn(self, input: impl Into<String>) -> Self
The ARN of the AccessPolicy that you're associating. For a list of ARNs, use ListAccessPolicies.
sourcepub fn set_policy_arn(self, input: Option<String>) -> Self
pub fn set_policy_arn(self, input: Option<String>) -> Self
The ARN of the AccessPolicy that you're associating. For a list of ARNs, use ListAccessPolicies.
sourcepub fn get_policy_arn(&self) -> &Option<String>
pub fn get_policy_arn(&self) -> &Option<String>
The ARN of the AccessPolicy that you're associating. For a list of ARNs, use ListAccessPolicies.
sourcepub fn access_scope(self, input: AccessScope) -> Self
pub fn access_scope(self, input: AccessScope) -> Self
The scope for the AccessPolicy. You can scope access policies to an entire cluster or to specific Kubernetes namespaces.
sourcepub fn set_access_scope(self, input: Option<AccessScope>) -> Self
pub fn set_access_scope(self, input: Option<AccessScope>) -> Self
The scope for the AccessPolicy. You can scope access policies to an entire cluster or to specific Kubernetes namespaces.
sourcepub fn get_access_scope(&self) -> &Option<AccessScope>
pub fn get_access_scope(&self) -> &Option<AccessScope>
The scope for the AccessPolicy. You can scope access policies to an entire cluster or to specific Kubernetes namespaces.
Trait Implementations§
source§impl Clone for AssociateAccessPolicyFluentBuilder
impl Clone for AssociateAccessPolicyFluentBuilder
source§fn clone(&self) -> AssociateAccessPolicyFluentBuilder
fn clone(&self) -> AssociateAccessPolicyFluentBuilder
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 AssociateAccessPolicyFluentBuilder
impl !RefUnwindSafe for AssociateAccessPolicyFluentBuilder
impl Send for AssociateAccessPolicyFluentBuilder
impl Sync for AssociateAccessPolicyFluentBuilder
impl Unpin for AssociateAccessPolicyFluentBuilder
impl !UnwindSafe for AssociateAccessPolicyFluentBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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