describeDashboardPermissions method
Describes read and write permissions for a dashboard.
May throw InvalidParameterValueException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw UnsupportedUserEditionException. May throw InternalFailureException.
Parameter awsAccountId
:
The ID of the AWS account that contains the dashboard that you're
describing permissions for.
Parameter dashboardId
:
The ID for the dashboard, also added to the IAM policy.
Implementation
Future<DescribeDashboardPermissionsResponse> describeDashboardPermissions({
required String awsAccountId,
required String dashboardId,
}) async {
ArgumentError.checkNotNull(awsAccountId, 'awsAccountId');
_s.validateStringLength(
'awsAccountId',
awsAccountId,
12,
12,
isRequired: true,
);
ArgumentError.checkNotNull(dashboardId, 'dashboardId');
_s.validateStringLength(
'dashboardId',
dashboardId,
1,
2048,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/accounts/${Uri.encodeComponent(awsAccountId)}/dashboards/${Uri.encodeComponent(dashboardId)}/permissions',
exceptionFnMap: _exceptionFns,
);
return DescribeDashboardPermissionsResponse.fromJson(response);
}