describeUserProfile method
Describes a user profile. For more information, see
CreateUserProfile
.
May throw ResourceNotFound.
Parameter domainId
:
The domain ID.
Parameter userProfileName
:
The user profile name.
Implementation
Future<DescribeUserProfileResponse> describeUserProfile({
required String domainId,
required String userProfileName,
}) async {
ArgumentError.checkNotNull(domainId, 'domainId');
_s.validateStringLength(
'domainId',
domainId,
0,
63,
isRequired: true,
);
ArgumentError.checkNotNull(userProfileName, 'userProfileName');
_s.validateStringLength(
'userProfileName',
userProfileName,
0,
63,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.DescribeUserProfile'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DomainId': domainId,
'UserProfileName': userProfileName,
},
);
return DescribeUserProfileResponse.fromJson(jsonResponse.body);
}