Struct aws_sdk_redshift::operation::modify_cluster_iam_roles::builders::ModifyClusterIamRolesInputBuilder
source · #[non_exhaustive]pub struct ModifyClusterIamRolesInputBuilder { /* private fields */ }
Expand description
A builder for ModifyClusterIamRolesInput
.
Implementations§
source§impl ModifyClusterIamRolesInputBuilder
impl ModifyClusterIamRolesInputBuilder
sourcepub fn cluster_identifier(self, input: impl Into<String>) -> Self
pub fn cluster_identifier(self, input: impl Into<String>) -> Self
The unique identifier of the cluster for which you want to associate or disassociate IAM roles.
This field is required.sourcepub fn set_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_cluster_identifier(self, input: Option<String>) -> Self
The unique identifier of the cluster for which you want to associate or disassociate IAM roles.
sourcepub fn get_cluster_identifier(&self) -> &Option<String>
pub fn get_cluster_identifier(&self) -> &Option<String>
The unique identifier of the cluster for which you want to associate or disassociate IAM roles.
sourcepub fn add_iam_roles(self, input: impl Into<String>) -> Self
pub fn add_iam_roles(self, input: impl Into<String>) -> Self
Appends an item to add_iam_roles
.
To override the contents of this collection use set_add_iam_roles
.
Zero or more IAM roles to associate with the cluster. The roles must be in their Amazon Resource Name (ARN) format.
sourcepub fn set_add_iam_roles(self, input: Option<Vec<String>>) -> Self
pub fn set_add_iam_roles(self, input: Option<Vec<String>>) -> Self
Zero or more IAM roles to associate with the cluster. The roles must be in their Amazon Resource Name (ARN) format.
sourcepub fn get_add_iam_roles(&self) -> &Option<Vec<String>>
pub fn get_add_iam_roles(&self) -> &Option<Vec<String>>
Zero or more IAM roles to associate with the cluster. The roles must be in their Amazon Resource Name (ARN) format.
sourcepub fn remove_iam_roles(self, input: impl Into<String>) -> Self
pub fn remove_iam_roles(self, input: impl Into<String>) -> Self
Appends an item to remove_iam_roles
.
To override the contents of this collection use set_remove_iam_roles
.
Zero or more IAM roles in ARN format to disassociate from the cluster.
sourcepub fn set_remove_iam_roles(self, input: Option<Vec<String>>) -> Self
pub fn set_remove_iam_roles(self, input: Option<Vec<String>>) -> Self
Zero or more IAM roles in ARN format to disassociate from the cluster.
sourcepub fn get_remove_iam_roles(&self) -> &Option<Vec<String>>
pub fn get_remove_iam_roles(&self) -> &Option<Vec<String>>
Zero or more IAM roles in ARN format to disassociate from the cluster.
sourcepub fn default_iam_role_arn(self, input: impl Into<String>) -> Self
pub fn default_iam_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was last modified.
sourcepub fn set_default_iam_role_arn(self, input: Option<String>) -> Self
pub fn set_default_iam_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was last modified.
sourcepub fn get_default_iam_role_arn(&self) -> &Option<String>
pub fn get_default_iam_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was last modified.
sourcepub fn build(self) -> Result<ModifyClusterIamRolesInput, BuildError>
pub fn build(self) -> Result<ModifyClusterIamRolesInput, BuildError>
Consumes the builder and constructs a ModifyClusterIamRolesInput
.
source§impl ModifyClusterIamRolesInputBuilder
impl ModifyClusterIamRolesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ModifyClusterIamRolesOutput, SdkError<ModifyClusterIamRolesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ModifyClusterIamRolesOutput, SdkError<ModifyClusterIamRolesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifyClusterIamRolesInputBuilder
impl Clone for ModifyClusterIamRolesInputBuilder
source§fn clone(&self) -> ModifyClusterIamRolesInputBuilder
fn clone(&self) -> ModifyClusterIamRolesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ModifyClusterIamRolesInputBuilder
impl Default for ModifyClusterIamRolesInputBuilder
source§fn default() -> ModifyClusterIamRolesInputBuilder
fn default() -> ModifyClusterIamRolesInputBuilder
source§impl PartialEq for ModifyClusterIamRolesInputBuilder
impl PartialEq for ModifyClusterIamRolesInputBuilder
source§fn eq(&self, other: &ModifyClusterIamRolesInputBuilder) -> bool
fn eq(&self, other: &ModifyClusterIamRolesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.