describeTemplatePermissions method
Describes read and write permissions on a template.
May throw ConflictException.
May throw InternalFailureException.
May throw InvalidParameterValueException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw UnsupportedUserEditionException.
Parameter awsAccountId :
The ID of the Amazon Web Services account that contains the template that
you're describing.
Parameter templateId :
The ID for the template.
Implementation
Future<DescribeTemplatePermissionsResponse> describeTemplatePermissions({
required String awsAccountId,
required String templateId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/accounts/${Uri.encodeComponent(awsAccountId)}/templates/${Uri.encodeComponent(templateId)}/permissions',
exceptionFnMap: _exceptionFns,
);
return DescribeTemplatePermissionsResponse.fromJson(response);
}