putIdentityProviderConfiguration method
- required IdentityProviderAuthenticationMode authenticationMode,
- required IdentityCenterConfiguration identityCenterConfiguration,
- required String organizationId,
- required PersonalAccessTokenConfiguration personalAccessTokenConfiguration,
Enables integration between IAM Identity Center (IdC) and WorkMail to proxy authentication requests for mailbox users. You can connect your IdC directory or your external directory to WorkMail through IdC and manage access to WorkMail mailboxes in a single place. For enhanced protection, you could enable Multifactor Authentication (MFA) and Personal Access Tokens.
May throw InvalidParameterException.
May throw OrganizationNotFoundException.
May throw OrganizationStateException.
May throw ResourceNotFoundException.
Parameter authenticationMode :
The authentication mode used in WorkMail.
Parameter identityCenterConfiguration :
The details of the IAM Identity Center configuration.
Parameter organizationId :
The ID of the WorkMail Organization.
Parameter personalAccessTokenConfiguration :
The details of the Personal Access Token configuration.
Implementation
Future<void> putIdentityProviderConfiguration({
required IdentityProviderAuthenticationMode authenticationMode,
required IdentityCenterConfiguration identityCenterConfiguration,
required String organizationId,
required PersonalAccessTokenConfiguration personalAccessTokenConfiguration,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkMailService.PutIdentityProviderConfiguration'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AuthenticationMode': authenticationMode.value,
'IdentityCenterConfiguration': identityCenterConfiguration,
'OrganizationId': organizationId,
'PersonalAccessTokenConfiguration': personalAccessTokenConfiguration,
},
);
}