aws_sdk_sagemaker/client/
update_workteam.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 [`UpdateWorkteam`](crate::operation::update_workteam::builders::UpdateWorkteamFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`workteam_name(impl Into<String>)`](crate::operation::update_workteam::builders::UpdateWorkteamFluentBuilder::workteam_name) / [`set_workteam_name(Option<String>)`](crate::operation::update_workteam::builders::UpdateWorkteamFluentBuilder::set_workteam_name):<br>required: **true**<br><p>The name of the work team to update.</p><br>
7    ///   - [`member_definitions(MemberDefinition)`](crate::operation::update_workteam::builders::UpdateWorkteamFluentBuilder::member_definitions) / [`set_member_definitions(Option<Vec::<MemberDefinition>>)`](crate::operation::update_workteam::builders::UpdateWorkteamFluentBuilder::set_member_definitions):<br>required: **false**<br><p>A list of <code>MemberDefinition</code> objects that contains objects that identify the workers that make up the work team.</p> <p>Workforces can be created using Amazon Cognito or your own OIDC Identity Provider (IdP). For private workforces created using Amazon Cognito use <code>CognitoMemberDefinition</code>. For workforces created using your own OIDC identity provider (IdP) use <code>OidcMemberDefinition</code>. You should not provide input for both of these parameters in a single request.</p> <p>For workforces created using Amazon Cognito, private work teams correspond to Amazon Cognito <i>user groups</i> within the user pool used to create a workforce. All of the <code>CognitoMemberDefinition</code> objects that make up the member definition must have the same <code>ClientId</code> and <code>UserPool</code> values. To add a Amazon Cognito user group to an existing worker pool, see <code>Adding groups to a User Pool</code>. For more information about user pools, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html">Amazon Cognito User Pools</a>.</p> <p>For workforces created using your own OIDC IdP, specify the user groups that you want to include in your private work team in <code>OidcMemberDefinition</code> by listing those groups in <code>Groups</code>. Be aware that user groups that are already in the work team must also be listed in <code>Groups</code> when you make this request to remain on the work team. If you do not include these user groups, they will no longer be associated with the work team you update.</p><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::update_workteam::builders::UpdateWorkteamFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_workteam::builders::UpdateWorkteamFluentBuilder::set_description):<br>required: **false**<br><p>An updated description for the work team.</p><br>
9    ///   - [`notification_configuration(NotificationConfiguration)`](crate::operation::update_workteam::builders::UpdateWorkteamFluentBuilder::notification_configuration) / [`set_notification_configuration(Option<NotificationConfiguration>)`](crate::operation::update_workteam::builders::UpdateWorkteamFluentBuilder::set_notification_configuration):<br>required: **false**<br><p>Configures SNS topic notifications for available or expiring work items</p><br>
10    ///   - [`worker_access_configuration(WorkerAccessConfiguration)`](crate::operation::update_workteam::builders::UpdateWorkteamFluentBuilder::worker_access_configuration) / [`set_worker_access_configuration(Option<WorkerAccessConfiguration>)`](crate::operation::update_workteam::builders::UpdateWorkteamFluentBuilder::set_worker_access_configuration):<br>required: **false**<br><p>Use this optional parameter to constrain access to an Amazon S3 resource based on the IP address using supported IAM global condition keys. The Amazon S3 resource is accessed in the worker portal using a Amazon S3 presigned URL.</p><br>
11    /// - On success, responds with [`UpdateWorkteamOutput`](crate::operation::update_workteam::UpdateWorkteamOutput) with field(s):
12    ///   - [`workteam(Option<Workteam>)`](crate::operation::update_workteam::UpdateWorkteamOutput::workteam): <p>A <code>Workteam</code> object that describes the updated work team.</p>
13    /// - On failure, responds with [`SdkError<UpdateWorkteamError>`](crate::operation::update_workteam::UpdateWorkteamError)
14    pub fn update_workteam(&self) -> crate::operation::update_workteam::builders::UpdateWorkteamFluentBuilder {
15        crate::operation::update_workteam::builders::UpdateWorkteamFluentBuilder::new(self.handle.clone())
16    }
17}