aws_sdk_elasticbeanstalk/client/associate_environment_operations_role.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`AssociateEnvironmentOperationsRole`](crate::operation::associate_environment_operations_role::builders::AssociateEnvironmentOperationsRoleFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`environment_name(impl Into<String>)`](crate::operation::associate_environment_operations_role::builders::AssociateEnvironmentOperationsRoleFluentBuilder::environment_name) / [`set_environment_name(Option<String>)`](crate::operation::associate_environment_operations_role::builders::AssociateEnvironmentOperationsRoleFluentBuilder::set_environment_name):<br>required: **true**<br><p>The name of the environment to which to set the operations role.</p><br>
7 /// - [`operations_role(impl Into<String>)`](crate::operation::associate_environment_operations_role::builders::AssociateEnvironmentOperationsRoleFluentBuilder::operations_role) / [`set_operations_role(Option<String>)`](crate::operation::associate_environment_operations_role::builders::AssociateEnvironmentOperationsRoleFluentBuilder::set_operations_role):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of an existing IAM role to be used as the environment's operations role.</p><br>
8 /// - On success, responds with [`AssociateEnvironmentOperationsRoleOutput`](crate::operation::associate_environment_operations_role::AssociateEnvironmentOperationsRoleOutput)
9 /// - On failure, responds with [`SdkError<AssociateEnvironmentOperationsRoleError>`](crate::operation::associate_environment_operations_role::AssociateEnvironmentOperationsRoleError)
10 pub fn associate_environment_operations_role(
11 &self,
12 ) -> crate::operation::associate_environment_operations_role::builders::AssociateEnvironmentOperationsRoleFluentBuilder {
13 crate::operation::associate_environment_operations_role::builders::AssociateEnvironmentOperationsRoleFluentBuilder::new(self.handle.clone())
14 }
15}