updateOauth2CredentialProvider method
Future<UpdateOauth2CredentialProviderResponse>
updateOauth2CredentialProvider({
- required CredentialProviderVendorType credentialProviderVendor,
- required String name,
- required Oauth2ProviderConfigInput oauth2ProviderConfigInput,
Updates an existing OAuth2 credential provider.
May throw AccessDeniedException.
May throw ConflictException.
May throw DecryptionFailure.
May throw EncryptionFailure.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw UnauthorizedException.
May throw ValidationException.
Parameter credentialProviderVendor :
The vendor of the OAuth2 credential provider.
Parameter name :
The name of the OAuth2 credential provider to update.
Parameter oauth2ProviderConfigInput :
The configuration input for the OAuth2 provider.
Implementation
Future<UpdateOauth2CredentialProviderResponse>
updateOauth2CredentialProvider({
required CredentialProviderVendorType credentialProviderVendor,
required String name,
required Oauth2ProviderConfigInput oauth2ProviderConfigInput,
}) async {
final $payload = <String, dynamic>{
'credentialProviderVendor': credentialProviderVendor.value,
'name': name,
'oauth2ProviderConfigInput': oauth2ProviderConfigInput,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/identities/UpdateOauth2CredentialProvider',
exceptionFnMap: _exceptionFns,
);
return UpdateOauth2CredentialProviderResponse.fromJson(response);
}