Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates an existing work team with new member definitions or description.
Synopsis
- data UpdateWorkteam = UpdateWorkteam' {}
- newUpdateWorkteam :: Text -> UpdateWorkteam
- updateWorkteam_notificationConfiguration :: Lens' UpdateWorkteam (Maybe NotificationConfiguration)
- updateWorkteam_memberDefinitions :: Lens' UpdateWorkteam (Maybe (NonEmpty MemberDefinition))
- updateWorkteam_description :: Lens' UpdateWorkteam (Maybe Text)
- updateWorkteam_workteamName :: Lens' UpdateWorkteam Text
- data UpdateWorkteamResponse = UpdateWorkteamResponse' {
- httpStatus :: Int
- workteam :: Workteam
- newUpdateWorkteamResponse :: Int -> Workteam -> UpdateWorkteamResponse
- updateWorkteamResponse_httpStatus :: Lens' UpdateWorkteamResponse Int
- updateWorkteamResponse_workteam :: Lens' UpdateWorkteamResponse Workteam
Creating a Request
data UpdateWorkteam Source #
See: newUpdateWorkteam
smart constructor.
UpdateWorkteam' | |
|
Instances
Create a value of UpdateWorkteam
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:notificationConfiguration:UpdateWorkteam'
, updateWorkteam_notificationConfiguration
- Configures SNS topic notifications for available or expiring work items
$sel:memberDefinitions:UpdateWorkteam'
, updateWorkteam_memberDefinitions
- A list of MemberDefinition
objects that contains objects that identify
the workers that make up the work team.
Workforces can be created using Amazon Cognito or your own OIDC Identity
Provider (IdP). For private workforces created using Amazon Cognito use
CognitoMemberDefinition
. For workforces created using your own OIDC
identity provider (IdP) use OidcMemberDefinition
. You should not
provide input for both of these parameters in a single request.
For workforces created using Amazon Cognito, private work teams
correspond to Amazon Cognito user groups within the user pool used to
create a workforce. All of the CognitoMemberDefinition
objects that
make up the member definition must have the same ClientId
and
UserPool
values. To add a Amazon Cognito user group to an existing
worker pool, see groups to a User Pool. For more information
about user pools, see
Amazon Cognito User Pools.
For workforces created using your own OIDC IdP, specify the user groups
that you want to include in your private work team in
OidcMemberDefinition
by listing those groups in Groups
. Be aware
that user groups that are already in the work team must also be listed
in Groups
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.
$sel:description:UpdateWorkteam'
, updateWorkteam_description
- An updated description for the work team.
$sel:workteamName:UpdateWorkteam'
, updateWorkteam_workteamName
- The name of the work team to update.
Request Lenses
updateWorkteam_notificationConfiguration :: Lens' UpdateWorkteam (Maybe NotificationConfiguration) Source #
Configures SNS topic notifications for available or expiring work items
updateWorkteam_memberDefinitions :: Lens' UpdateWorkteam (Maybe (NonEmpty MemberDefinition)) Source #
A list of MemberDefinition
objects that contains objects that identify
the workers that make up the work team.
Workforces can be created using Amazon Cognito or your own OIDC Identity
Provider (IdP). For private workforces created using Amazon Cognito use
CognitoMemberDefinition
. For workforces created using your own OIDC
identity provider (IdP) use OidcMemberDefinition
. You should not
provide input for both of these parameters in a single request.
For workforces created using Amazon Cognito, private work teams
correspond to Amazon Cognito user groups within the user pool used to
create a workforce. All of the CognitoMemberDefinition
objects that
make up the member definition must have the same ClientId
and
UserPool
values. To add a Amazon Cognito user group to an existing
worker pool, see groups to a User Pool. For more information
about user pools, see
Amazon Cognito User Pools.
For workforces created using your own OIDC IdP, specify the user groups
that you want to include in your private work team in
OidcMemberDefinition
by listing those groups in Groups
. Be aware
that user groups that are already in the work team must also be listed
in Groups
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.
updateWorkteam_description :: Lens' UpdateWorkteam (Maybe Text) Source #
An updated description for the work team.
updateWorkteam_workteamName :: Lens' UpdateWorkteam Text Source #
The name of the work team to update.
Destructuring the Response
data UpdateWorkteamResponse Source #
See: newUpdateWorkteamResponse
smart constructor.
UpdateWorkteamResponse' | |
|
Instances
newUpdateWorkteamResponse Source #
:: Int | |
-> Workteam | |
-> UpdateWorkteamResponse |
Create a value of UpdateWorkteamResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UpdateWorkteamResponse'
, updateWorkteamResponse_httpStatus
- The response's http status code.
$sel:workteam:UpdateWorkteamResponse'
, updateWorkteamResponse_workteam
- A Workteam
object that describes the updated work team.
Response Lenses
updateWorkteamResponse_httpStatus :: Lens' UpdateWorkteamResponse Int Source #
The response's http status code.
updateWorkteamResponse_workteam :: Lens' UpdateWorkteamResponse Workteam Source #
A Workteam
object that describes the updated work team.