getResourcePolicy
inline suspend fun BcmDashboardsClient.getResourcePolicy(crossinline block: GetResourcePolicyRequest.Builder.() -> Unit): GetResourcePolicyResponse
Retrieves the resource-based policy attached to a dashboard, showing sharing configurations and permissions.
Samples
fun main() {
//sampleStart
// Getting resource policy for a resource
val resp = bcmDashboardsClient.getResourcePolicy {
resourceArn = "arn:aws:bcm-dashboards::123456789012:dashboard/abcd1234-ab12-12ab-1ab2-abcd1234efgh"
}
//sampleEnd
}