getSigningProfile method
Returns information on a specific signing profile.
May throw ResourceNotFoundException. May throw AccessDeniedException. May throw TooManyRequestsException. May throw InternalServiceErrorException.
Parameter profileName
:
The name of the target signing profile.
Parameter profileOwner
:
The AWS account ID of the profile owner.
Implementation
Future<GetSigningProfileResponse> getSigningProfile({
required String profileName,
String? profileOwner,
}) async {
ArgumentError.checkNotNull(profileName, 'profileName');
_s.validateStringLength(
'profileName',
profileName,
2,
64,
isRequired: true,
);
_s.validateStringLength(
'profileOwner',
profileOwner,
12,
12,
);
final $query = <String, List<String>>{
if (profileOwner != null) 'profileOwner': [profileOwner],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/signing-profiles/${Uri.encodeComponent(profileName)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetSigningProfileResponse.fromJson(response);
}