describeTemplatePermissions method

Future<DescribeTemplatePermissionsResponse> describeTemplatePermissions({
  1. required String awsAccountId,
  2. required String templateId,
})

Describes read and write permissions on a template.

May throw ThrottlingException. May throw InvalidParameterValueException. May throw ConflictException. May throw ResourceNotFoundException. May throw UnsupportedUserEditionException. May throw InternalFailureException.

Parameter awsAccountId : The ID of the AWS 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 {
  ArgumentError.checkNotNull(awsAccountId, 'awsAccountId');
  _s.validateStringLength(
    'awsAccountId',
    awsAccountId,
    12,
    12,
    isRequired: true,
  );
  ArgumentError.checkNotNull(templateId, 'templateId');
  _s.validateStringLength(
    'templateId',
    templateId,
    1,
    2048,
    isRequired: true,
  );
  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);
}