Struct aws_sdk_eks::operation::associate_access_policy::builders::AssociateAccessPolicyInputBuilder
source · #[non_exhaustive]pub struct AssociateAccessPolicyInputBuilder { /* private fields */ }Expand description
A builder for AssociateAccessPolicyInput.
Implementations§
source§impl AssociateAccessPolicyInputBuilder
impl AssociateAccessPolicyInputBuilder
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.
This field is required.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.
sourcepub fn build(self) -> Result<AssociateAccessPolicyInput, BuildError>
pub fn build(self) -> Result<AssociateAccessPolicyInput, BuildError>
Consumes the builder and constructs a AssociateAccessPolicyInput.
source§impl AssociateAccessPolicyInputBuilder
impl AssociateAccessPolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<AssociateAccessPolicyOutput, SdkError<AssociateAccessPolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<AssociateAccessPolicyOutput, SdkError<AssociateAccessPolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for AssociateAccessPolicyInputBuilder
impl Clone for AssociateAccessPolicyInputBuilder
source§fn clone(&self) -> AssociateAccessPolicyInputBuilder
fn clone(&self) -> AssociateAccessPolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AssociateAccessPolicyInputBuilder
impl Default for AssociateAccessPolicyInputBuilder
source§fn default() -> AssociateAccessPolicyInputBuilder
fn default() -> AssociateAccessPolicyInputBuilder
source§impl PartialEq for AssociateAccessPolicyInputBuilder
impl PartialEq for AssociateAccessPolicyInputBuilder
source§fn eq(&self, other: &AssociateAccessPolicyInputBuilder) -> bool
fn eq(&self, other: &AssociateAccessPolicyInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AssociateAccessPolicyInputBuilder
Auto Trait Implementations§
impl Freeze for AssociateAccessPolicyInputBuilder
impl RefUnwindSafe for AssociateAccessPolicyInputBuilder
impl Send for AssociateAccessPolicyInputBuilder
impl Sync for AssociateAccessPolicyInputBuilder
impl Unpin for AssociateAccessPolicyInputBuilder
impl UnwindSafe for AssociateAccessPolicyInputBuilder
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